aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/bg5pdf
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-12-08 17:22:00 +0800
committerijliao <ijliao@FreeBSD.org>2001-12-08 17:22:00 +0800
commitd59756c6aad86f4f79ae2015c955f5096b6e8adb (patch)
tree76a73381e18f319a27114cb9bc17718b6dac1a2a /chinese/bg5pdf
parentce24d41202fe23204bc4dc66963df6d298c723b2 (diff)
downloadfreebsd-ports-gnome-d59756c6aad86f4f79ae2015c955f5096b6e8adb.tar.gz
freebsd-ports-gnome-d59756c6aad86f4f79ae2015c955f5096b6e8adb.tar.zst
freebsd-ports-gnome-d59756c6aad86f4f79ae2015c955f5096b6e8adb.zip
add bg5pdf
Convert Chinese-Big5 encoded files to PDF, using PDFlib PR: 32473 Submitted by: Statue <statue@softwareliberty.org>
Diffstat (limited to 'chinese/bg5pdf')
-rw-r--r--chinese/bg5pdf/Makefile29
-rw-r--r--chinese/bg5pdf/distinfo1
-rw-r--r--chinese/bg5pdf/files/patch-aa8
-rw-r--r--chinese/bg5pdf/files/patch-ab5
-rw-r--r--chinese/bg5pdf/pkg-comment1
-rw-r--r--chinese/bg5pdf/pkg-descr9
-rw-r--r--chinese/bg5pdf/pkg-plist6
7 files changed, 59 insertions, 0 deletions
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