openbsd-ports/chinese/bg5ps/patches/patch-bg5ps
jasper 7f31dad9f9 - fix patch name
- hardcoding /usr/local ist verboten!
2011-07-08 09:35:54 +00:00

42 lines
1.8 KiB
Plaintext

--- bg5ps.orig Mon Feb 14 21:46:43 2000
+++ bg5ps Fri Jul 8 11:33:55 2011
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/local/bin/python2.1
################################################################################
# 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 /usr/local/lib/bg5ps/bg5ps.conf
#
# Revision 1.4 2000/02/14 20:28:35 platin
# Automatic selection of fontName in echo Encoding.
@@ -55,7 +55,7 @@ if wd=="": wd="."
#start default config file segment
#Font and font path
chineseFontPath=wd
-fontName="ntu_kai"
+fontName="bsmi00lp"
#Output only even or odd
oddPages=true
@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps y > test.ps
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 /usr/local/lib/bg5ps/bg5ps.conf.")
+ if os.path.isfile("/usr/local/lib/g5ps/bg5ps.conf"):
+ sys.stderr.write("\n /usr/local/lib/bg5ps/bg5ps.conf found. Use configuration file /usr/local/lib/bg5ps/bg5ps.conf")
+ cf=open("/usr/local/lib/bg5ps/bg5ps.conf","r")
for l in cf.readlines():
exec l
cf.close()