Sun Jul 3 20:44:45 2011 UTC ()
check-interpreter fix. Use subst.mk for substitution.


(jym)
diff -r1.18 -r1.19 pkgsrc/print/bg5ps/Makefile
diff -r1.5 -r1.6 pkgsrc/print/bg5ps/distinfo
diff -r1.3 -r1.4 pkgsrc/print/bg5ps/patches/patch-aa
diff -r1.1.1.1 -r1.2 pkgsrc/print/bg5ps/patches/patch-ac

cvs diff -r1.18 -r1.19 pkgsrc/print/bg5ps/Makefile (expand / switch to unified diff)

--- pkgsrc/print/bg5ps/Makefile 2011/04/22 13:44:31 1.18
+++ pkgsrc/print/bg5ps/Makefile 2011/07/03 20:44:45 1.19
@@ -1,24 +1,29 @@ @@ -1,24 +1,29 @@
1# $NetBSD: Makefile,v 1.18 2011/04/22 13:44:31 obache Exp $ 1# $NetBSD: Makefile,v 1.19 2011/07/03 20:44:45 jym Exp $
2 2
3DISTNAME= bg5ps-1.3.0 3DISTNAME= bg5ps-1.3.0
4PKGREVISION= 4 4PKGREVISION= 4
5CATEGORIES= print converters 5CATEGORIES= print converters
6MASTER_SITES= # ftp://freebsd.sinica.edu.tw/pub/keith/ 6MASTER_SITES= # ftp://freebsd.sinica.edu.tw/pub/keith/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9# HOMEPAGE= http://students.washington.edu/cschin/bg5ps/ 9# HOMEPAGE= http://students.washington.edu/cschin/bg5ps/
10COMMENT= Convert Big5/GB encoded files to postscript 10COMMENT= Convert Big5/GB encoded files to postscript
11 11
12PKG_DESTDIR_SUPPORT= user-destdir 12PKG_DESTDIR_SUPPORT= user-destdir
13 13
14DEPENDS+= arphic-ttf>=2.11:../../fonts/arphic-ttf 14DEPENDS+= arphic-ttf>=2.11:../../fonts/arphic-ttf
15 15
16PKG_SYSCONFSUBDIR?= bg5ps 16PKG_SYSCONFSUBDIR?= bg5ps
17 17
18post-patch: 18REPLACE_PYTHON+= bg5ps
19 @${SED} 's|%%ETCDIR%%|${PKG_SYSCONFDIR}|g' \ 
20 ${WRKSRC}/bg5ps > ${WRKSRC}/bg5ps.new 
21 19
 20SUBST_CLASSES+= config
 21SUBST_MESSAGE.config= Fixing configuration files path.
 22SUBST_STAGE.config= post-configure
 23SUBST_FILES.config= bg5ps
 24SUBST_VARS.config= PKG_SYSCONFDIR
 25
 26.include "../../lang/python/application.mk"
22.include "../../lang/python/extension.mk" 27.include "../../lang/python/extension.mk"
23.include "../../graphics/freetype-lib/buildlink3.mk" 28.include "../../graphics/freetype-lib/buildlink3.mk"
24.include "../../mk/bsd.pkg.mk" 29.include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/print/bg5ps/distinfo (expand / switch to unified diff)

--- pkgsrc/print/bg5ps/distinfo 2008/06/20 01:09:32 1.5
+++ pkgsrc/print/bg5ps/distinfo 2011/07/03 20:44:45 1.6
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.5 2008/06/20 01:09:32 joerg Exp $ 1$NetBSD: distinfo,v 1.6 2011/07/03 20:44:45 jym Exp $
2 2
3SHA1 (bg5ps-1.3.0.tar.gz) = b7fc700ff1336b74fe447fd4b13bca7ed3604aa8 3SHA1 (bg5ps-1.3.0.tar.gz) = b7fc700ff1336b74fe447fd4b13bca7ed3604aa8
4RMD160 (bg5ps-1.3.0.tar.gz) = c35fcd17eedf4fb85db4bb53b6f0ea44a185ba6d 4RMD160 (bg5ps-1.3.0.tar.gz) = c35fcd17eedf4fb85db4bb53b6f0ea44a185ba6d
5Size (bg5ps-1.3.0.tar.gz) = 120390 bytes 5Size (bg5ps-1.3.0.tar.gz) = 120390 bytes
6SHA1 (patch-aa) = d435845acda2363af9389cbccccc783073735d38 6SHA1 (patch-aa) = 07b7bcfd6475e57c448d3e9db11ac7837a96269b
7SHA1 (patch-ab) = 1def7918c5809dc08da8cbc2916cfae5e46f5b41 7SHA1 (patch-ab) = 1def7918c5809dc08da8cbc2916cfae5e46f5b41
8SHA1 (patch-ac) = 4f6ec31cd46082d4e9bdaa3431dd2527beb66dde 8SHA1 (patch-ac) = b27f8ecfdfbf700416f7e6cfcec36044cadc7014

cvs diff -r1.3 -r1.4 pkgsrc/print/bg5ps/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/print/bg5ps/patches/patch-aa 2008/06/20 01:09:32 1.3
+++ pkgsrc/print/bg5ps/patches/patch-aa 2011/07/03 20:44:45 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:32 joerg Exp $ 1$NetBSD: patch-aa,v 1.4 2011/07/03 20:44:45 jym Exp $
2 2
3--- Makefile.orig 2000-02-14 20:41:27.000000000 +0000 3--- Makefile.orig 2000-02-14 20:41:27.000000000 +0000
4+++ Makefile 4+++ Makefile
5@@ -17,15 +17,16 @@ 5@@ -17,15 +17,16 @@
6  6
7 OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o 7 OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o
8  8
9-CC = gcc 9-CC = gcc
10+#CC = gcc 10+#CC = gcc
11 INSTALL = install 11 INSTALL = install
12-CFLAGS = 12-CFLAGS =
13-LIBS = -lttf -lm 13-LIBS = -lttf -lm
14-INCLUDEDIR =  14-INCLUDEDIR =
@@ -33,18 +33,18 @@ $NetBSD: patch-aa,v 1.3 2008/06/20 01:09 @@ -33,18 +33,18 @@ $NetBSD: patch-aa,v 1.3 2008/06/20 01:09
33 ttf2psm: $(OBJS) 33 ttf2psm: $(OBJS)
34- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS) 34- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
35+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEDIR) -o ttf2psm $(OBJS) $(LIBS) 35+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEDIR) -o ttf2psm $(OBJS) $(LIBS)
36  36
37 install: all bg5ps bg5ps.conf 37 install: all bg5ps bg5ps.conf
38- mkdir -p $(ETCDIR) 38- mkdir -p $(ETCDIR)
39- mkdir -p $(BINDIR) 39- mkdir -p $(BINDIR)
40- $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf 40- $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf
41- $(INSTALL) -m755 bg5ps $(BINDIR) 41- $(INSTALL) -m755 bg5ps $(BINDIR)
42- $(INSTALL) -m755 ttf2psm $(BINDIR) 42- $(INSTALL) -m755 ttf2psm $(BINDIR)
43+ mkdir -p ${DESTDIR}$(ETCDIR) 43+ mkdir -p ${DESTDIR}$(ETCDIR)
44+ mkdir -p ${DESTDIR}$(BINDIR) 44+ mkdir -p ${DESTDIR}$(BINDIR)
45+ $(INSTALL) -m644 bg5ps.conf ${DESTDIR}$(ETCDIR)/bg5ps.conf 45+ $(INSTALL) -m644 bg5ps.conf ${DESTDIR}$(ETCDIR)/bg5ps.conf
46+ $(INSTALL) -m755 bg5ps.new ${DESTDIR}$(BINDIR)/bg5ps 46+ $(INSTALL) -m755 bg5ps ${DESTDIR}$(BINDIR)/bg5ps
47+ $(INSTALL) -m755 ttf2psm ${DESTDIR}$(BINDIR) 47+ $(INSTALL) -m755 ttf2psm ${DESTDIR}$(BINDIR)
48  48
49 clean: 49 clean:
50 rm -rf *.o core ttf2psm *~ 50 rm -rf *.o core ttf2psm *~

cvs diff -r1.1.1.1 -r1.2 pkgsrc/print/bg5ps/patches/patch-ac (expand / switch to unified diff)

--- pkgsrc/print/bg5ps/patches/patch-ac 2002/06/15 08:22:18 1.1.1.1
+++ pkgsrc/print/bg5ps/patches/patch-ac 2011/07/03 20:44:45 1.2
@@ -1,34 +1,28 @@ @@ -1,34 +1,28 @@
1$NetBSD: patch-ac,v 1.1.1.1 2002/06/15 08:22:18 shell Exp $ 1$NetBSD: patch-ac,v 1.2 2011/07/03 20:44:45 jym Exp $
2 2
3--- bg5ps.orig Tue Feb 15 04:46:43 2000 3--- bg5ps.orig 2000-02-14 20:46:43.000000000 +0000
4+++ bg5ps 4+++ bg5ps
5@@ -1,4 +1,4 @@ 
6-#!/usr/bin/python 
7+#!/usr/bin/env python 
8 ################################################################################ 
9 # bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese # 
10 # text into printable postscript file. Since it uses true type font, the # 
11@@ -11,7 +11,7 @@ 5@@ -11,7 +11,7 @@
12 # 6 #
13 # Revision 1.5 2000/02/14 20:40:04 platin 7 # Revision 1.5 2000/02/14 20:40:04 platin
14 # 8 #
15-# Change default config file to /etc/chinese/bg5ps.conf 9-# Change default config file to /etc/chinese/bg5ps.conf
16+# Change default config file to %%ETCDIR%%/bg5ps.conf 10+# Change default config file to @PKG_SYSCONFDIR@/bg5ps.conf
17 # 11 #
18 # Revision 1.4 2000/02/14 20:28:35 platin 12 # Revision 1.4 2000/02/14 20:28:35 platin
19 # Automatic selection of fontName in echo Encoding. 13 # Automatic selection of fontName in echo Encoding.
20@@ -443,10 +443,10 @@ 14@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps
21 exec l 15 exec l
22 cf.close() 16 cf.close()
23 else: 17 else:
24- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.") 18- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.")
25- if os.path.isfile("/etc/chinese/bg5ps.conf"): 19- if os.path.isfile("/etc/chinese/bg5ps.conf"):
26- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf") 20- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf")
27- cf=open("/etc/chinese/bg5ps.conf","r") 21- cf=open("/etc/chinese/bg5ps.conf","r")
28+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying %%ETCDIR%%/bg5ps.conf.") 22+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying @PKG_SYSCONFDIR@/bg5ps.conf.")
29+ if os.path.isfile("%%ETCDIR%%/bg5ps.conf"): 23+ if os.path.isfile("@PKG_SYSCONFDIR@/bg5ps.conf"):
30+ sys.stderr.write("\n %%ETCDIR%%/bg5ps.conf found. Use configuration file %%ETCDIR%%/bg5ps.conf") 24+ sys.stderr.write("\n @PKG_SYSCONFDIR@/bg5ps.conf found. Use configuration file @PKG_SYSCONFDIR@/bg5ps.conf")
31+ cf=open("%%ETCDIR%%/bg5ps.conf","r") 25+ cf=open("@PKG_SYSCONFDIR@/bg5ps.conf","r")
32 for l in cf.readlines(): 26 for l in cf.readlines():
33 exec l 27 exec l
34 cf.close() 28 cf.close()