aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-12-03 18:50:22 +0800
committerrafan <rafan@FreeBSD.org>2006-12-03 18:50:22 +0800
commit646e3a98daf3957856b76e3914dd9712463f0409 (patch)
treebe3b74bece83be6d8fdc0050572f92118e80c049 /chinese
parent4906166d360b8875090b6fbde45bd7291b20a877 (diff)
downloadfreebsd-ports-gnome-646e3a98daf3957856b76e3914dd9712463f0409.tar.gz
freebsd-ports-gnome-646e3a98daf3957856b76e3914dd9712463f0409.tar.zst
freebsd-ports-gnome-646e3a98daf3957856b76e3914dd9712463f0409.zip
- Remove bad site
- Some cosmetic changes - Pass maintainership to submitter PR: ports/106202 Submitted by: chinsan
Diffstat (limited to 'chinese')
-rw-r--r--chinese/cnprint/Makefile30
-rw-r--r--chinese/cnprint/files/patch-cnprint330b.c11
2 files changed, 15 insertions, 26 deletions
diff --git a/chinese/cnprint/Makefile b/chinese/cnprint/Makefile
index 89e3c76d376a..f973589ac43f 100644
--- a/chinese/cnprint/Makefile
+++ b/chinese/cnprint/Makefile
@@ -16,10 +16,12 @@ DISTFILES= cnprint330b.c cnprint330b.readme ttfb330b.c cnprint330b.hlp \
mshei.ttf.gz mshei.htf cc48s.hbf cc48.sym.gz cc48s.1.gz \
cc48s.2.gz hbf.tar.gz ntu_kai48.hbf ntu_kai48.bin.gz
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
+MAINTAINER= chinsan@FreeBSD.org
+COMMENT= Print CJK text (or convert to PostScript)
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+FILES= ${WRKSRC}/*.sym ${WRKSRC}/*.htf ${WRKSRC}/*.hbf \
+ ${WRKSRC}/*.bin ${WRKSRC}/*.ttf
do-extract:
${MKDIR} ${WRKSRC}
@@ -31,23 +33,21 @@ do-extract:
${RM} -fr hbf ; \
${GUNZIP_CMD} *.gz || ${TRUE}
+post-patch:
+ @${REINPLACE_CMD} -e 's,/usr/local/src,${PREFIX}/share,' \
+ ${WRKSRC}/cnprint330b.c
+ @${REINPLACE_CMD} -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/; \
+ s/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/; \
+ s/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' ${WRKSRC}/cnprint33.cmd
+
do-build:
cd ${WRKSRC} ; \
- ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" ; \
- ${SED} \
- -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/' \
- -e 's/\(DEFAULT_BIG5FONT\):.*$$/\1: ntu_kai48.hbf/' \
- -e 's/\(DEFAULT_ENCODING\):.*$$/\1: BIG5/' \
- >cnprint.cmd <cnprint33.cmd
+ ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\"
do-install:
- ${MKDIR} ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/cnprint.cmd ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/*.sym ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/*.htf ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/*.hbf ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/*.bin ${PREFIX}/share/cnprint
- ${INSTALL_DATA} ${WRKSRC}/*.ttf ${PREFIX}/share/cnprint
+ ${MKDIR} ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}33.cmd ${DATADIR}/${PORTNAME}.cmd
+ ${INSTALL_DATA} ${FILES} ${DATADIR}
.include <bsd.port.mk>
diff --git a/chinese/cnprint/files/patch-cnprint330b.c b/chinese/cnprint/files/patch-cnprint330b.c
deleted file mode 100644
index 2054eb736032..000000000000
--- a/chinese/cnprint/files/patch-cnprint330b.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- cnprint330b.c.orig Tue Jul 2 01:22:08 2002
-+++ cnprint330b.c
-@@ -6216,7 +6216,7 @@
- if (s==NULL) {
- defpath[0]='\0';
- #ifdef unix
-- strcpy(defpath, "/usr/local/src/cnprint");
-+ strcpy(defpath, PREFIX "/share/cnprint");
- #endif
- s=defpath;
- }