summaryrefslogtreecommitdiff
path: root/print/bg5pdf
diff options
context:
space:
mode:
authorwiz <wiz>2002-07-12 20:13:39 +0000
committerwiz <wiz>2002-07-12 20:13:39 +0000
commit562f010d09de42e92e6a78df78f7ebf28c9bdd01 (patch)
treec40b2a0a2fc75adea755d9032dac9e8868eac767 /print/bg5pdf
parentab4d334f065b07ea393dc9016fe1e5ae8407928d (diff)
downloadpkgsrc-562f010d09de42e92e6a78df78f7ebf28c9bdd01.tar.gz
Initial import of bg5pdf, provided by rxg in pkg/16265.
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 embedded fonts. You have to download the Acrobat Acroread Asianfont pack to view and print the output file or use TrueType fonts with Xpdf. This wrapper does not provide any formatting functions except simple line wrapping. If you need sophisticated formatting, you should try CJK-LaTex or other equivalent tools.
Diffstat (limited to 'print/bg5pdf')
-rw-r--r--print/bg5pdf/DESCR12
-rw-r--r--print/bg5pdf/Makefile27
-rw-r--r--print/bg5pdf/PLIST7
-rw-r--r--print/bg5pdf/distinfo5
-rw-r--r--print/bg5pdf/patches/patch-aa15
5 files changed, 66 insertions, 0 deletions
diff --git a/print/bg5pdf/DESCR b/print/bg5pdf/DESCR
new file mode 100644
index 00000000000..a79ab435e9e
--- /dev/null
+++ b/print/bg5pdf/DESCR
@@ -0,0 +1,12 @@
+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
+embedded fonts. You have to download the Acrobat Acroread Asianfont pack
+to view and print the output file or use TrueType fonts with Xpdf.
+This wrapper does not provide any formatting functions except simple
+line wrapping. If you need sophisticated formatting, you should try
+CJK-LaTex or other equivalent tools.
+
+The Python script "bg5pdf" is released under the Gnu Public License.
+
+bg5pdflib.c and bg5pdflib.so are released under the Aladdin Free Public
+License, because the work is based on PDFlib.
diff --git a/print/bg5pdf/Makefile b/print/bg5pdf/Makefile
new file mode 100644
index 00000000000..6e62df5a64d
--- /dev/null
+++ b/print/bg5pdf/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/07/12 20:13:39 wiz Exp $
+#
+
+DISTNAME= bg5pdf-1.0.0
+CATEGORIES= print chinese
+MASTER_SITES= http://students.washington.edu/cschin/bg5ps/bg5pdf/
+
+MAINTAINER= rxg@netbsd.org
+HOMEPAGE= http://students.washington.edu/cschin/bg5ps/bg5pdf/
+COMMENT= wrap big5 encoding text file into PDF file by using PDFlib
+
+PYTHON_VERSIONS_ACCEPTED= 21
+PYBINMODULE= # defined
+PY_PATCHPLIST= yes
+PYTHON_PATCH_SCRIPTS= bg5pdf
+
+MAKE_ENV+= PYINC=${PYINC} PYSITELIB=${PYSITELIB}
+
+WRKSRC= ${WRKDIR}/bg5pdf
+
+post-extract:
+ ${RM} -f ${WRKSRC}/bg5pdflib.so
+
+.include "../../lang/python/application.buildlink.mk"
+.include "../../lang/python/extension.buildlink.mk"
+.include "../../print/pdflib/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/bg5pdf/PLIST b/print/bg5pdf/PLIST
new file mode 100644
index 00000000000..7e425c5bc1f
--- /dev/null
+++ b/print/bg5pdf/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/12 20:13:39 wiz Exp $
+bin/bg5pdf
+${PYSITELIB}/bg5pdflib.so
+share/examples/bg5pdf/genTest.py
+share/examples/bg5pdf/test.big5
+share/examples/bg5pdf/test.big5.pdf
+@dirrm share/examples/bg5pdf
diff --git a/print/bg5pdf/distinfo b/print/bg5pdf/distinfo
new file mode 100644
index 00000000000..6ca09b7b70f
--- /dev/null
+++ b/print/bg5pdf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/07/12 20:13:39 wiz Exp $
+
+SHA1 (bg5pdf-1.0.0.tar.gz) = f050a1995c0a40f0578dffb04055bab6195b032e
+Size (bg5pdf-1.0.0.tar.gz) = 55208 bytes
+SHA1 (patch-aa) = 20c5b83cf1ee0b6ba2514a00b0a307ca93a99aa9
diff --git a/print/bg5pdf/patches/patch-aa b/print/bg5pdf/patches/patch-aa
new file mode 100644
index 00000000000..35570e12a94
--- /dev/null
+++ b/print/bg5pdf/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/07/12 20:13:39 wiz Exp $
+
+--- Makefile.orig Thu Apr 4 11:15:01 2002
++++ Makefile
+@@ -0,0 +1,10 @@
++all:
++ $(CC) -shared bg5pdflib.c -I$(LOCALBASE)/include -I$(LOCALBASE)/$(PYINC) -L$(LOCALBASE)/lib -lpdf -Wl,-R$(LOCALBASE)/lib -o bg5pdflib.so
++
++install:
++ ${BSD_INSTALL_SCRIPT} bg5pdf ${PREFIX}/bin
++ ${BSD_INSTALL_DATA} bg5pdflib.so ${PREFIX}/${PYSITELIB}
++ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_DATA} test.big5 ${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_DATA} test.big5.pdf ${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_SCRIPT} genTest.py ${PREFIX}/share/examples/bg5pdf