aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/bg5ps
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>1998-06-26 22:19:47 +0800
committervanilla <vanilla@FreeBSD.org>1998-06-26 22:19:47 +0800
commit7308b2577f237c66208b93d6eafc46c757f4b7d1 (patch)
treea95e372c195f904a677706c61ca6cdf308328c37 /chinese/bg5ps
parente06d79fbd0b6b18fe30e79d0333ab2bd44b12eee (diff)
downloadfreebsd-ports-gnome-7308b2577f237c66208b93d6eafc46c757f4b7d1.tar.gz
freebsd-ports-gnome-7308b2577f237c66208b93d6eafc46c757f4b7d1.tar.zst
freebsd-ports-gnome-7308b2577f237c66208b93d6eafc46c757f4b7d1.zip
bg5ps is a python script that generates Postscript from BIG5 encoded file.
PR: ports/6973 Submitted by: J. T. Jang <keith.email.gcn.net.tw>
Diffstat (limited to 'chinese/bg5ps')
-rw-r--r--chinese/bg5ps/Makefile35
-rw-r--r--chinese/bg5ps/distinfo1
-rw-r--r--chinese/bg5ps/files/patch-aa26
-rw-r--r--chinese/bg5ps/pkg-comment1
-rw-r--r--chinese/bg5ps/pkg-descr17
-rw-r--r--chinese/bg5ps/pkg-plist8
6 files changed, 88 insertions, 0 deletions
diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile
new file mode 100644
index 000000000000..6bb3133fd648
--- /dev/null
+++ b/chinese/bg5ps/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: bg5ps
+# Version required: 1.1b
+# Date created: 17 June 1998
+# Whom: J.T. Jang (keith@email.gcn.net.tw)
+#
+# $Id$
+#
+
+DISTNAME= bg5ps-1.1b
+PKGNAME= zh-bg5ps-1.1b
+CATEGORIES= chinese print
+MASTER_SITES= http://weber.u.washington.edu/~cschin/bg5ps/bg5ps-1.1b/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= keith@email.gcn.net.tw
+
+RUN_DEPENDS= python:${PORTSDIR}/lang/python
+
+NO_WRKSUBDIR= yes
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/doc/bg5ps
+ ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
+.for doc in README bg5ps.conf test.big5 test.sh ttf2ps.doc
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/bg5ps
+.endfor
+
+post-install:
+ @echo -----------------------------------------------------------
+ @echo Copy ${PREFIX}/share/doc/bg5ps/bg5ps.conf to ~/.bg5ps.conf.
+ @echo Then run "bg5ps -h" for help.
+ @echo -----------------------------------------------------------
+
+.include <bsd.port.mk>
diff --git a/chinese/bg5ps/distinfo b/chinese/bg5ps/distinfo
new file mode 100644
index 000000000000..15ec800d477c
--- /dev/null
+++ b/chinese/bg5ps/distinfo
@@ -0,0 +1 @@
+MD5 (bg5ps-1.1b.tgz) = 45fb86c924887249c2970446e62098b4
diff --git a/chinese/bg5ps/files/patch-aa b/chinese/bg5ps/files/patch-aa
new file mode 100644
index 000000000000..751404c47047
--- /dev/null
+++ b/chinese/bg5ps/files/patch-aa
@@ -0,0 +1,26 @@
+--- Makefile.orig Fri Jun 26 22:05:28 1998
++++ Makefile Fri Jun 26 22:06:00 1998
+@@ -0,0 +1,5 @@
++all:
++ $(CC) $(CFLAGS) -o ttf2psm ttf2psm.c
++
++clean:
++ -@rm ttf2psm
+--- bg5ps.orig Mon Dec 8 15:28:30 1997
++++ bg5ps Wed Jun 17 13:08:09 1998
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ ################################################################################
+ # 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 #
+--- ttf2psm.c.orig Mon Dec 8 03:57:58 1997
++++ ttf2psm.c Wed Jun 17 13:35:48 1998
+@@ -6,7 +6,6 @@
+ #include <math.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
+ #include <memory.h>
+ #include <time.h>
+
diff --git a/chinese/bg5ps/pkg-comment b/chinese/bg5ps/pkg-comment
new file mode 100644
index 000000000000..5b0a66c31e18
--- /dev/null
+++ b/chinese/bg5ps/pkg-comment
@@ -0,0 +1 @@
+Convert Chinese-Big5 encoded file to Postscript, using TTF fonts.
diff --git a/chinese/bg5ps/pkg-descr b/chinese/bg5ps/pkg-descr
new file mode 100644
index 000000000000..771d73d82a12
--- /dev/null
+++ b/chinese/bg5ps/pkg-descr
@@ -0,0 +1,17 @@
+bg5ps is a Python script that generates Postscript from Chinese Big5 encoded
+file. You have to specify the TTF font path (default: ~/.bg5ps.conf).
+
+bg5ps -fp fontpath -fn fontname
+ -o [1|0] -e [1|0]
+ -s size -ls linespacing -cs charspacing
+ -tm topMargin -bm bottomMargin -lm leftMargin -rm rightMargin
+ -if inputfile -of outputfile
+ -cp configFilePath
+Size, linespacing, charspacing, and margins are numbers in unit of pt=1/72 in.
+
+bg5ps -h: print this help
+or
+cat big5text | bg5ps options > outputfile
+
+Example:
+bg5ps -fn kai -o 1 -e 0 -s 15 -ls 10 -cs 2 -tm 72 -bm 72 -if test -of test.ps
diff --git a/chinese/bg5ps/pkg-plist b/chinese/bg5ps/pkg-plist
new file mode 100644
index 000000000000..a4f6d0e23a86
--- /dev/null
+++ b/chinese/bg5ps/pkg-plist
@@ -0,0 +1,8 @@
+bin/bg5ps
+bin/ttf2psm
+share/doc/bg5ps/README
+share/doc/bg5ps/bg5ps.conf
+share/doc/bg5ps/test.big5
+share/doc/bg5ps/test.sh
+share/doc/bg5ps/ttf2ps.doc
+@dirrm share/doc/bg5ps