summaryrefslogtreecommitdiff
path: root/print/bg5ps/patches
diff options
context:
space:
mode:
authorshell <shell>2002-06-15 08:22:17 +0000
committershell <shell>2002-06-15 08:22:17 +0000
commit327b8fe77b7a82e37b038d0da371339db0d0f046 (patch)
treee87488676afdffd8a163cac9a248983231f6d028 /print/bg5ps/patches
parent0991ea2bad978f40eaff989cadbb8699a64ad210 (diff)
downloadpkgsrc-327b8fe77b7a82e37b038d0da371339db0d0f046.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/bg5ps/patches')
-rw-r--r--print/bg5ps/patches/patch-aa44
-rw-r--r--print/bg5ps/patches/patch-ab14
-rw-r--r--print/bg5ps/patches/patch-ac34
3 files changed, 92 insertions, 0 deletions
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()