- fix patch name

- hardcoding /usr/local ist verboten!
This commit is contained in:
jasper 2011-07-08 09:35:54 +00:00
parent bd44d3026d
commit 7f31dad9f9
4 changed files with 17 additions and 15 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.24 2011/06/08 17:31:53 jasper Exp $
# $OpenBSD: Makefile,v 1.25 2011/07/08 09:35:54 jasper Exp $
COMMENT= convert Big5/GB encoded files to postscript
DISTNAME= bg5ps-1.3.0
PKGNAME= zh-${DISTNAME}
REVISION= 5
REVISION= 6
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
@ -31,6 +31,7 @@ NO_REGRESS= Yes
pre-configure:
perl -pi -e \
"s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
${SUBST_CMD} ${WRKSRC}/bg5ps.conf
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
LDFLAGS=-L${LOCALBASE}/lib \

View File

@ -1,5 +1,5 @@
--- bg5ps.orig Mon Feb 14 21:46:43 2000
+++ bg5ps Sun Apr 6 15:59:34 2003
+++ bg5ps Fri Jul 8 11:33:55 2011
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/local/bin/python2.1
@ -24,7 +24,7 @@
#Output only even or odd
oddPages=true
@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps
@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps y > test.ps
exec l
cf.close()
else:

View File

@ -1,11 +0,0 @@
--- bg5ps.conf.orig Thu Jan 18 14:15:41 2001
+++ bg5ps.conf Sun Jan 21 20:45:16 2001
@@ -4,7 +4,7 @@
Encoding="big5"
#chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同)
-chineseFontPath="/usr/share/fonts/ttf/"
+chineseFontPath="/usr/local/lib/X11/fonts/TrueType"
#modify the above line

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-bg5ps_conf,v 1.1 2011/07/08 09:35:54 jasper Exp $
--- bg5ps.conf.orig Mon Feb 14 21:28:35 2000
+++ bg5ps.conf Fri Jul 8 11:33:55 2011
@@ -4,7 +4,7 @@
Encoding="big5"
#chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同)
-chineseFontPath="/usr/share/fonts/ttf/"
+chineseFontPath="${LOCALBASE}/lib/X11/fonts/TrueType"
#modify the above line