import of new port GP.

A GUI printer manager written with TCL/TK.
Is able to preview and convert file types before print.
Looks nice.
This commit is contained in:
Andreas Klemm 1998-02-14 18:13:09 +00:00
parent cd85c810c7
commit 59af00b294
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9720
8 changed files with 201 additions and 0 deletions

65
print/gp/Makefile Normal file
View file

@ -0,0 +1,65 @@
# New ports collection makefile for: GP
# Version required: 2.5
# Date created: 15 April 1997
# Whom: Kiriyama Kazuhiko<kiri@kiri.toba-cmt.ac.jp>
#
# $Id$
#
DISTNAME= GP-2.5
PKGNAME= gp-2.5
CATEGORIES= print
MASTER_SITES= http://www.kamome.or.jp/hueda/GP/ \
ftp://www.neosoft.com/pub/tcl/sorted/print/GP-2.5/
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
RUN_DEPENDS= psbook:${PORTSDIR}/print/psutils \
gv:${PORTSDIR}/print/gv \
${WITH_DEPENDS}
PATCHDIR= ${.CURDIR}/../../print/gp/patches
FILESDIR= ${.CURDIR}/../../print/gp/files
SCRIPTDIR= ${.CURDIR}/../../print/gp/scripts
LANGUAGE?= English
.if (${LANGUAGE} == "Japanese")
ALL_TARGET= ja filters
.else
ALL_TARGET= filters
.endif
MAKE_ENV= LANGUAGE=${LANGUAGE}
SCRIPTS_ENV= MV=${MV} RM=${RM} SED=${SED} LANGUAGE=${LANGUAGE}
PORTDOCDIR= ${PREFIX}/share/doc/GP
.if (${LANGUAGE} == "Japanese")
DOCDIRNAME= Doc.ja
DOCEXT= .euc
WITH_DEPENDS= wish4.2jp:${PORTSDIR}/japanese/tk42 \
a2ps-j:${PORTSDIR}/japanese/a2ps \
xdvi:${PORTSDIR}/japanese/vfxdvi \
nup:${PORTSDIR}/japanese/dvi2ps
.else
DOCDIRNAME= Doc
DOCEXT=
WITH_DEPENDS?= wish4.2:${PORTSDIR}/x11/tk42 \
a2ps:${PORTSDIR}/print/a2ps \
xdvi:${PORTSDIR}/print/xdvi \
dvips:${PORTSDIR}/print/dvips
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PORTDOCDIR}/Manual/${LANGUAGE}/image
@(cd ${WRKSRC}; \
${INSTALL_DATA} ${DOCDIRNAME}/*${DOCEXT} ${PORTDOCDIR}; \
)
@(cd ${WRKSRC}/Manual; \
${INSTALL_DATA} GP.gif README${DOCEXT} index.html ${PORTDOCDIR}/Manual; \
${INSTALL_DATA} ${LANGUAGE}/*.html ${PORTDOCDIR}/Manual/${LANGUAGE}; \
${INSTALL_DATA} ${LANGUAGE}/image/*.gif ${PORTDOCDIR}/Manual/${LANGUAGE}/image; \
)
.endif
.include <bsd.port.mk>

1
print/gp/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (GP-2.5.tar.gz) = 8dad10aed6e8b6c7ea0563dbaeeb42c9

24
print/gp/files/patch-aa Normal file
View file

@ -0,0 +1,24 @@
*** Makefile~ Sun Feb 1 20:48:49 1998
--- Makefile Mon Feb 2 16:47:20 1998
***************
*** 13,19 ****
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib/GP
! FILTERS = `ls filters`
FILTERS.SAMPLE = `ls filters.sample`
ICONS = printer.xbm exit.xbm
--- 13,24 ----
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib/GP
! .if (${LANGUAGE} == "Japanese")
! FILTERS =a2ps-j dvi2ps-j ImageMagick
! .else
! FILTERS =a2ps dvips ImageMagick
! .endif
!
FILTERS.SAMPLE = `ls filters.sample`
ICONS = printer.xbm exit.xbm

15
print/gp/files/patch-ab Normal file
View file

@ -0,0 +1,15 @@
*** lib/printer~ Sun Jan 25 17:27:33 1998
--- lib/printer Mon Jan 26 23:21:33 1998
***************
*** 13,17 ****
#
# Sample Entries :
#
! # ps # Monochrome
# color # Full Color
--- 13,17 ----
#
# Sample Entries :
#
! ps # Monochrome
# color # Full Color

1
print/gp/pkg-comment Normal file
View file

@ -0,0 +1 @@
A GUI Printer manager written with Tcl/Tk.

18
print/gp/pkg-descr Normal file
View file

@ -0,0 +1,18 @@
GP (GUI Printer) is a printing tool on X-Window with Tcl/Tk
interactively without any attention to the filetypes or the
printernames in the printcap.
Using a PostScript printer on GP, you have to name the
printer "ps" in the printcap.
To change the printer information or the associated printer
with filetypes, edit the following two files:
/usr/local/lib/GP/printer
/usr/local/lib/GP/filetype
For more information, see the files in the
"/usr/local/share/doc/GP" directory.
Written by UEDA Hiroyuki (hueda@kamome.or.jp),
KAMOME Internet, JAPAN

43
print/gp/pkg-plist Normal file
View file

@ -0,0 +1,43 @@
bin/GP
lib/GP/filters/DVI-Direct
lib/GP/filters/Image-Direct
lib/GP/filters/ImageMagick
lib/GP/filters/TEXT-Direct
lib/GP/filters/a2ps
lib/GP/filters/a2ps-j
lib/GP/filters/dvips
lib/GP/filters/dvi2ps-j
lib/GP/filters/jdvi2kps
lib/GP/icons/printer.xbm
lib/GP/icons/exit.xbm
lib/GP/filetype
lib/GP/printer
share/doc/GP/README
share/doc/GP/COPYING
share/doc/GP/Config
share/doc/GP/Filters_conf
share/doc/GP/History
share/doc/GP/Install
share/doc/GP/Manual/GP.gif
share/doc/GP/Manual/index.html
share/doc/GP/Manual/README
share/doc/GP/Manual/English/bug_info.html
share/doc/GP/Manual/English/future.html
share/doc/GP/Manual/English/intro.html
share/doc/GP/Manual/English/option.html
share/doc/GP/Manual/English/print.html
share/doc/GP/Manual/English/queue.html
share/doc/GP/Manual/English/queue_remove.html
share/doc/GP/Manual/English/start.html
share/doc/GP/Manual/English/image/Remove.gif
share/doc/GP/Manual/English/image/Queue.gif
share/doc/GP/Manual/English/image/Print.gif
share/doc/GP/Manual/English/image/Option.gif
share/doc/GP/Manual/English/image/GPicon.gif
@dirrm lib/GP/filters
@dirrm lib/GP/icons
@dirrm lib/GP
@dirrm share/doc/GP/Manual/English/image
@dirrm share/doc/GP/Manual/English
@dirrm share/doc/GP/Manual
@dirrm share/doc/GP

34
print/gp/scripts/configure vendored Normal file
View file

@ -0,0 +1,34 @@
#!/bin/sh
cd ${WRKSRC}
${MV} Makefile Makefile.bak
${SED} -e 's@^PREFIX[ ]*=.*$@#&@' < Makefile.bak > Makefile
${MV} GP GP.bak
${SED} \
-e '/^set[ ]*PRINTER_LIST[ ]/s@/usr/local@%%PREFIX%%@' \
-e '/^set[ ]*FILETYPE_LIST[ ]/s@/usr/local@%%PREFIX%%@' \
-e '/^set[ ]*FILTERS_DIR[ ]/s@/usr/local@%%PREFIX%%@' \
-e '/^set[ ]*ICONS_PATH[ ]/s@/usr/local@%%PREFIX%%@' \
< GP.bak > GP
${MV} GP GP.bak
${SED} \
-e "s@%%PREFIX%%@${PREFIX}@g" \
< GP.bak > GP
cd ${WRKSRC}/filters.sample
if [ X"${LANGUAGE}" = "XJapanese" ]; then
for f in a2ps-j dvi2ps-j; do
${MV} ${f} ${f}.bak
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
${RM} -f ${f}.bak
done
else
for f in a2ps dvips; do
${MV} ${f} ${f}.bak
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
${RM} -f ${f}.bak
done
fi