summaryrefslogtreecommitdiff
path: root/print/gp
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1998-02-14 18:13:09 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1998-02-14 18:13:09 +0000
commit59af00b29416d3d45c25b188746dfe802c668f05 (patch)
tree7bd51d9c8230c289a2bc192c2b9b4c8b0f11eb93 /print/gp
parentUpdate the port to the new 0.12beta version. (diff)
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.
Notes
Notes: svn path=/head/; revision=9720
Diffstat (limited to 'print/gp')
-rw-r--r--print/gp/Makefile65
-rw-r--r--print/gp/distinfo1
-rw-r--r--print/gp/files/patch-aa24
-rw-r--r--print/gp/files/patch-ab15
-rw-r--r--print/gp/pkg-comment1
-rw-r--r--print/gp/pkg-descr18
-rw-r--r--print/gp/pkg-plist43
-rw-r--r--print/gp/scripts/configure34
8 files changed, 201 insertions, 0 deletions
diff --git a/print/gp/Makefile b/print/gp/Makefile
new file mode 100644
index 000000000000..24d8f0995c8f
--- /dev/null
+++ b/print/gp/Makefile
@@ -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>
diff --git a/print/gp/distinfo b/print/gp/distinfo
new file mode 100644
index 000000000000..50cb000a91a0
--- /dev/null
+++ b/print/gp/distinfo
@@ -0,0 +1 @@
+MD5 (GP-2.5.tar.gz) = 8dad10aed6e8b6c7ea0563dbaeeb42c9
diff --git a/print/gp/files/patch-aa b/print/gp/files/patch-aa
new file mode 100644
index 000000000000..7c8f0b5c1bf2
--- /dev/null
+++ b/print/gp/files/patch-aa
@@ -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
diff --git a/print/gp/files/patch-ab b/print/gp/files/patch-ab
new file mode 100644
index 000000000000..482b5bb0d602
--- /dev/null
+++ b/print/gp/files/patch-ab
@@ -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
diff --git a/print/gp/pkg-comment b/print/gp/pkg-comment
new file mode 100644
index 000000000000..44ea22a1c5b1
--- /dev/null
+++ b/print/gp/pkg-comment
@@ -0,0 +1 @@
+A GUI Printer manager written with Tcl/Tk.
diff --git a/print/gp/pkg-descr b/print/gp/pkg-descr
new file mode 100644
index 000000000000..8c13ae816aee
--- /dev/null
+++ b/print/gp/pkg-descr
@@ -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
diff --git a/print/gp/pkg-plist b/print/gp/pkg-plist
new file mode 100644
index 000000000000..99298ced89b7
--- /dev/null
+++ b/print/gp/pkg-plist
@@ -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
diff --git a/print/gp/scripts/configure b/print/gp/scripts/configure
new file mode 100644
index 000000000000..e96764f28b7a
--- /dev/null
+++ b/print/gp/scripts/configure
@@ -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