diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-08 09:22:00 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-08 09:22:00 +0000 |
commit | a4fa05b852e378d87026a9cccdfa7db44249bed1 (patch) | |
tree | 3902cd6085c3b1341be666388b93f6d175040e1d | |
parent | Update chewing module. (diff) |
add bg5pdf
Convert Chinese-Big5 encoded files to PDF, using PDFlib
PR: 32473
Submitted by: Statue <statue@softwareliberty.org>
Notes
Notes:
svn path=/head/; revision=51210
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/bg5pdf/Makefile | 29 | ||||
-rw-r--r-- | chinese/bg5pdf/distinfo | 1 | ||||
-rw-r--r-- | chinese/bg5pdf/files/patch-aa | 8 | ||||
-rw-r--r-- | chinese/bg5pdf/files/patch-ab | 5 | ||||
-rw-r--r-- | chinese/bg5pdf/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/bg5pdf/pkg-descr | 9 | ||||
-rw-r--r-- | chinese/bg5pdf/pkg-plist | 6 |
8 files changed, 60 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index c0b216c3eb74..dcccad1c5556 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -11,6 +11,7 @@ SUBDIR += aterm SUBDIR += auto-tw-l10n SUBDIR += autoconvert + SUBDIR += bg5pdf SUBDIR += bg5ps SUBDIR += big5con SUBDIR += big5fs diff --git a/chinese/bg5pdf/Makefile b/chinese/bg5pdf/Makefile new file mode 100644 index 000000000000..8032d73d6ff9 --- /dev/null +++ b/chinese/bg5pdf/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: bg5pdf +# Date created: 17 June 1998 +# Whom: Shen Chuan-Hsing +# +# $FreeBSD$ +# + +PORTNAME= bg5pdf +PORTVERSION= 1.0.0 +CATEGORIES= chinese print +MASTER_SITES= http://students.washington.edu/cschin/bg5ps/bg5pdf/ \ + http://freebsd.sinica.edu.tw/~statue/ + +MAINTAINER= statue@freebsd.sinica.edu.tw + +LIB_DEPENDS= pdf.3:${PORTSDIR}/print/pdflib3 + +USE_PYTHON= yes +WRKSRC= ${WRKDIR}/${PORTNAME} + +do-install: + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bg5pdf ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/bg5pdflib.so ${PREFIX}/lib/python2.1/site-packages + ${INSTALL_DATA} ${WRKSRC}/test.big5 ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test.big5.pdf ${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/genTest.py ${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/chinese/bg5pdf/distinfo b/chinese/bg5pdf/distinfo new file mode 100644 index 000000000000..d464f93da5aa --- /dev/null +++ b/chinese/bg5pdf/distinfo @@ -0,0 +1 @@ +MD5 (bg5pdf-1.0.0.tar.gz) = 4f3cf41bbe90ae1cd06912921fae6234 diff --git a/chinese/bg5pdf/files/patch-aa b/chinese/bg5pdf/files/patch-aa new file mode 100644 index 000000000000..bebffda7f4fd --- /dev/null +++ b/chinese/bg5pdf/files/patch-aa @@ -0,0 +1,8 @@ +--- bg5pdf.orig Mon Dec 3 06:53:10 2001 ++++ bg5pdf Mon Dec 3 06:53:19 2001 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env /usr/bin/python ++#!/usr/bin/env /usr/local/bin/python + + """ + Bg5pdf is a simple wrapper for wrapping big5 encoding text file into diff --git a/chinese/bg5pdf/files/patch-ab b/chinese/bg5pdf/files/patch-ab new file mode 100644 index 000000000000..ee9417fdb399 --- /dev/null +++ b/chinese/bg5pdf/files/patch-ab @@ -0,0 +1,5 @@ +--- Makefile.orig Mon Dec 3 07:46:28 2001 ++++ Makefile Mon Dec 3 07:46:51 2001 +@@ -0,0 +1,2 @@ ++all: ++ gcc -shared bg5pdflib.c -I/usr/local/include -I /usr/local/include/python2.1 -L/usr/local/lib -lpdf -o bg5pdflib.so diff --git a/chinese/bg5pdf/pkg-comment b/chinese/bg5pdf/pkg-comment new file mode 100644 index 000000000000..33babb17bdf1 --- /dev/null +++ b/chinese/bg5pdf/pkg-comment @@ -0,0 +1 @@ +Convert Chinese-Big5 encoded files to PDF, using PDFlib diff --git a/chinese/bg5pdf/pkg-descr b/chinese/bg5pdf/pkg-descr new file mode 100644 index 000000000000..b9e3092a5203 --- /dev/null +++ b/chinese/bg5pdf/pkg-descr @@ -0,0 +1,9 @@ +Bg5pdf is a simple wrapper for wrapping big5 encoding text file into +PDF file by using PDFlib. The output of this program does not contain +embedding fonts. You have to download Acrobat Acroread Asianfont pack +to view and print the output file. This wrapper does not provide any +formatting function except simple line wrapping. If you need +sophisticated formatting, you should try CJK-LaTex or other equivalent +tools. + +WWW: http://students.washington.edu/cschin/ diff --git a/chinese/bg5pdf/pkg-plist b/chinese/bg5pdf/pkg-plist new file mode 100644 index 000000000000..ef57186f0bc4 --- /dev/null +++ b/chinese/bg5pdf/pkg-plist @@ -0,0 +1,6 @@ +bin/bg5pdf +lib/%%PYTHON_VERSION%%/site-packages/bg5pdflib.so +share/examples/bg5pdf/test.big5 +share/examples/bg5pdf/test.big5.pdf +share/examples/bg5pdf/genTest.py +@dirrm share/examples/bg5pdf |