diff options
author | shell <shell@pkgsrc.org> | 2002-06-15 08:22:17 +0000 |
---|---|---|
committer | shell <shell@pkgsrc.org> | 2002-06-15 08:22:17 +0000 |
commit | 4cb61f8992b730f01d9c7edd65e0766121de22d6 (patch) | |
tree | e87488676afdffd8a163cac9a248983231f6d028 /print | |
parent | 2e5cc8e3a599aeaba288b0a7a8ad922d34738c91 (diff) | |
download | pkgsrc-4cb61f8992b730f01d9c7edd65e0766121de22d6.tar.gz |
Initial import of bg5ps-1.3.0 (PR#15017)
convert Big5/GB encoded files to postscript
---
bg5ps is a Python script that generates Postscript from Chinese
Big5/GB encoded files, using ttf fonts.
Diffstat (limited to 'print')
-rw-r--r-- | print/bg5ps/DESCR | 2 | ||||
-rw-r--r-- | print/bg5ps/Makefile | 22 | ||||
-rw-r--r-- | print/bg5ps/PLIST | 5 | ||||
-rw-r--r-- | print/bg5ps/distinfo | 7 | ||||
-rw-r--r-- | print/bg5ps/patches/patch-aa | 44 | ||||
-rw-r--r-- | print/bg5ps/patches/patch-ab | 14 | ||||
-rw-r--r-- | print/bg5ps/patches/patch-ac | 34 |
7 files changed, 128 insertions, 0 deletions
diff --git a/print/bg5ps/DESCR b/print/bg5ps/DESCR new file mode 100644 index 00000000000..0c88038f1e3 --- /dev/null +++ b/print/bg5ps/DESCR @@ -0,0 +1,2 @@ +bg5ps is a Python script that generates Postscript from Chinese +Big5/GB encoded files, using ttf fonts. diff --git a/print/bg5ps/Makefile b/print/bg5ps/Makefile new file mode 100644 index 00000000000..cb485bd9387 --- /dev/null +++ b/print/bg5ps/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/06/15 08:22:17 shell Exp $ + +DISTNAME= bg5ps-1.3.0 +CATEGORIES= print converters +MASTER_SITES= ftp://ftp.shellhung.org/pub/OpenBSD/packages/chinese/bg5ps/ \ + ftp://freebsd.sinica.edu.tw/pub/keith/ + +MAINTAINER= shell@netbsd.org +HOMEPAGE= http://students.washington.edu/cschin/bg5ps/ +COMMENT= convert Big5/GB encoded files to postscript + +DEPENDS+= arphicttf-2.11:../../fonts/arphicttf +DEPENDS+= python>=1.5:../../lang/python + +PKG_SYSCONFSUBDIR?= bg5ps + +post-patch: + @${SED} 's|%%ETCDIR%%|${PKG_SYSCONFDIR}|g' \ + ${WRKSRC}/bg5ps > ${WRKSRC}/bg5ps.new + +.include "../../graphics/freetype-lib/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/print/bg5ps/PLIST b/print/bg5ps/PLIST new file mode 100644 index 00000000000..ebfe74577aa --- /dev/null +++ b/print/bg5ps/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/15 08:22:17 shell Exp $ +bin/bg5ps +bin/ttf2psm +etc/bg5ps/bg5ps.conf +@dirrm etc/bg5ps diff --git a/print/bg5ps/distinfo b/print/bg5ps/distinfo new file mode 100644 index 00000000000..0fa44e8a70e --- /dev/null +++ b/print/bg5ps/distinfo @@ -0,0 +1,7 @@ + + +SHA1 (bg5ps-1.3.0.tar.gz) = b7fc700ff1336b74fe447fd4b13bca7ed3604aa8 +Size (bg5ps-1.3.0.tar.gz) = 120390 bytes +SHA1 (patch-aa) = 6d6a8bac44ab4cc17535ab9580beffd0f1102f2d +SHA1 (patch-ab) = 1def7918c5809dc08da8cbc2916cfae5e46f5b41 +SHA1 (patch-ac) = 4f6ec31cd46082d4e9bdaa3431dd2527beb66dde diff --git a/print/bg5ps/patches/patch-aa b/print/bg5ps/patches/patch-aa new file mode 100644 index 00000000000..53110e7115e --- /dev/null +++ b/print/bg5ps/patches/patch-aa @@ -0,0 +1,44 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 08:22:17 shell Exp $ + +--- Makefile.orig Tue Feb 15 04:41:27 2000 ++++ Makefile +@@ -17,15 +17,16 @@ + + OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o + +-CC = gcc ++#CC = gcc + INSTALL = install +-CFLAGS = +-LIBS = -lttf -lm +-INCLUDEDIR = ++#CFLAGS = ++LDFLAGS = -Wl,-R${LOCALBASE}/lib ++LIBS = -lttf -lm -lintl ++INCLUDEDIR = -L/usr/lib -L${LOCALBASE}/lib + +-prefix = /usr +-BINDIR = $(prefix)/bin +-ETCDIR = /etc/chinese/ ++#prefix = /usr ++BINDIR = ${PREFIX}/bin ++ETCDIR = ${PKG_SYSCONFDIR} + + all: ttf2psm + +@@ -33,13 +34,13 @@ + $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@ + + ttf2psm: $(OBJS) +- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS) + + install: all bg5ps bg5ps.conf + mkdir -p $(ETCDIR) + mkdir -p $(BINDIR) + $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf +- $(INSTALL) -m755 bg5ps $(BINDIR) ++ $(INSTALL) -m755 bg5ps.new $(BINDIR)/bg5ps + $(INSTALL) -m755 ttf2psm $(BINDIR) + + clean: diff --git a/print/bg5ps/patches/patch-ab b/print/bg5ps/patches/patch-ab new file mode 100644 index 00000000000..e056c631f85 --- /dev/null +++ b/print/bg5ps/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 08:22:17 shell Exp $ + +--- bg5ps.conf.orig Fri Dec 21 13:39:19 2001 ++++ bg5ps.conf +@@ -4,7 +4,8 @@ + Encoding="big5" + + #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) +-chineseFontPath="/usr/share/fonts/ttf/" ++#chineseFontPath="/usr/share/fonts/ttf/" ++chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType/" + + #modify the above line + diff --git a/print/bg5ps/patches/patch-ac b/print/bg5ps/patches/patch-ac new file mode 100644 index 00000000000..e51f9247b8d --- /dev/null +++ b/print/bg5ps/patches/patch-ac @@ -0,0 +1,34 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/06/15 08:22:18 shell Exp $ + +--- bg5ps.orig Tue Feb 15 04:46:43 2000 ++++ bg5ps +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/env python + ################################################################################ + # bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese # + # text into printable postscript file. Since it uses true type font, the # +@@ -11,7 +11,7 @@ + # + # Revision 1.5 2000/02/14 20:40:04 platin + # +-# Change default config file to /etc/chinese/bg5ps.conf ++# Change default config file to %%ETCDIR%%/bg5ps.conf + # + # Revision 1.4 2000/02/14 20:28:35 platin + # Automatic selection of fontName in echo Encoding. +@@ -443,10 +443,10 @@ + exec l + cf.close() + else: +- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.") +- if os.path.isfile("/etc/chinese/bg5ps.conf"): +- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf") +- cf=open("/etc/chinese/bg5ps.conf","r") ++ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying %%ETCDIR%%/bg5ps.conf.") ++ if os.path.isfile("%%ETCDIR%%/bg5ps.conf"): ++ sys.stderr.write("\n %%ETCDIR%%/bg5ps.conf found. Use configuration file %%ETCDIR%%/bg5ps.conf") ++ cf=open("%%ETCDIR%%/bg5ps.conf","r") + for l in cf.readlines(): + exec l + cf.close() |