Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2000 03:19:54 +0800 (CST)
From:      keith@freebsd.sinica.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22549: Update port: chinese/bg5ps (MAINTAINER)
Message-ID:  <200011021919.DAA72191@freebsd.sinica.edu.tw>

next in thread | raw e-mail | index | archive | help

>Number:         22549
>Category:       ports
>Synopsis:       Update port: chinese/bg5ps (MAINTAINER)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 11:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jing-Tang Keith Jang
>Release:        FreeBSD 4.0-20000406-STABLE i386
>Organization:
>Environment:

FreeBSD 4.1.1-STABLE #0: Thu Oct 26 04:54:00 CST 2000

>Description:

Update chinese/bg5ps to 1.3.0p3.  This version has two new features:

Support both GB2312 and Big5 encodings.
It can now use TTC and TTF fonts.

It's also the final version of bg5ps.

>How-To-Repeat:

Please commit the following patch, thanks.

>Fix:


--- Makefile.orig	Thu Nov  2 23:13:25 2000
+++ Makefile	Fri Nov  3 01:48:14 2000
@@ -1,23 +1,21 @@
 # New ports collection makefile for:	bg5ps
 # Date created:		17 June 1998
-# Whom:			J.T. Jang (keith@freebsd.sinica.edu.tw)
+# Whom:			Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
 #
 # $FreeBSD: ports/chinese/bg5ps/Makefile,v 1.5 2000/04/13 08:27:56 asami Exp $
 #
 
 PORTNAME=	bg5ps
-PORTVERSION=	1.1b2
+PORTVERSION=	1.3.0p3
 CATEGORIES=	chinese print
-MASTER_SITES=	ftp://freebsd.sinica.edu.tw/pub/keith/ \
-		http://students.washington.edu/~cschin/bg5ps/bg5ps-1.1b2/
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	ftp://freebsd.sinica.edu.tw/pub/keith/
+DISTNAME=	bg5ps-1.3.0
 
 MAINTAINER=	keith@freebsd.sinica.edu.tw
 
-RUN_DEPENDS=	python:${PORTSDIR}/lang/python \
-		${X11BASE}/lib/X11/fonts/TrueType/moe_kai.ttf:${PORTSDIR}/chinese/moettf
-
-NO_WRKSUBDIR=	yes
+USE_GMAKE=	yes
+USE_FREETYPE=	yes
+USE_PYTHON=	yes
 
 do-install:
 	@${MKDIR} ${PREFIX}/share/doc/bg5ps
@@ -25,10 +23,11 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
 	${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
-	${RM} ${PREFIX}/share/doc/bg5ps/COPYING.txt
-	${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/share/doc/bg5ps/bg5ps.conf
+	${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample
 	${INSTALL_DATA} ${WRKSRC}/examples/netscape.ps ${PREFIX}/share/examples/bg5ps
 	${INSTALL_DATA} ${WRKSRC}/examples/test.big5 ${PREFIX}/share/examples/bg5ps
+	${INSTALL_DATA} ${WRKSRC}/examples/test.gb2312 ${PREFIX}/share/examples/bg5ps
 	${INSTALL_SCRIPT} ${WRKSRC}/examples/test.sh ${PREFIX}/share/examples/bg5ps
 
 post-install:
--- distinfo.orig	Thu Nov  2 23:30:30 2000
+++ distinfo	Thu Nov  2 23:30:53 2000
@@ -1 +1 @@
-MD5 (bg5ps-1.1b2.tgz) = 2fac1a44f57a7dfb67f974af4484a2aa
+MD5 (bg5ps-1.3.0.tar.gz) = b28d32a2c9072a9efc6ee59f9441e22b
--- pkg-comment.orig	Fri Nov  3 02:58:24 2000
+++ pkg-comment	Fri Nov  3 02:59:40 2000
@@ -1 +1 @@
-Convert Chinese-Big5 encoded file to Postscript, using TTF fonts
+Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
--- pkg-descr.orig	Fri Nov  3 01:45:34 2000
+++ pkg-descr	Fri Nov  3 01:45:45 2000
@@ -1,2 +1,2 @@
-bg5ps is a Python script that generates Postscript from a Chinese Big5
-encoded file. You have to specify the TTF font path (default: ~/.bg5ps.conf).
+bg5ps is a Python script that generates Postscript from a Chinese Big5/GB
+encoded file.
--- pkg-message.orig	Thu Nov  2 23:30:18 2000
+++ pkg-message	Fri Nov  3 01:46:05 2000
@@ -1,6 +1,9 @@
+--------------------------------------------------------------------
+Please check the following files:
 
-------------------------------------------------------------
-Copy /usr/local/share/doc/bg5ps/bg5ps.conf to ~/.bg5ps.conf.
-Then modify it to suit your needs.
-------------------------------------------------------------
+/usr/local/share/doc/bg5ps/bg5ps.conf.sample
+/usr/local/share/doc/bg5ps/gb2312-bg5ps.conf.sample
 
+Copy one of them to ~/.bg5ps.conf(depend on which encoding you use),
+then modify it to suit your needs.  Type `bg5ps -h` for help.
+--------------------------------------------------------------------
--- pkg-plist.orig	Thu Nov  2 23:31:27 2000
+++ pkg-plist	Thu Nov  2 23:39:18 2000
@@ -1,6 +1,8 @@
 bin/bg5ps
 bin/ttf2psm
-share/doc/bg5ps/bg5ps.conf
+etc/bg5ps.conf.sample
+etc/gb2312-bg5ps.conf.sample
+share/doc/bg5ps/COPYING.txt
 share/doc/bg5ps/bg5ps.sgml
 share/doc/bg5ps/bg5ps.txt
 share/doc/bg5ps/html/bg5ps.html
@@ -15,6 +17,7 @@
 share/doc/bg5ps/ttf2ps.doc
 share/examples/bg5ps/netscape.ps
 share/examples/bg5ps/test.big5
+share/examples/bg5ps/test.gb2312
 share/examples/bg5ps/test.sh
 @dirrm share/doc/bg5ps/html
 @dirrm share/doc/bg5ps
--- files/patch-aa.orig	Thu Nov  2 23:13:13 2000
+++ files/patch-aa	Fri Nov  3 01:03:35 2000
@@ -1,56 +1,34 @@
---- bg5ps.orig	Fri Oct  2 08:35:41 1998
-+++ bg5ps	Fri Dec 17 17:01:21 1999
-@@ -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      #
-@@ -418,10 +418,10 @@
-                 exec l
-             cf.close()
-         else:
--            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/bg5ps.conf.")
--            if os.path.isfile("/etc/bg5ps.conf"):
--                sys.stderr.write("\n /etc/bg5ps.conf found. Use configuration file /etc/bg5ps.conf")
--                cf=open("/etc/bg5ps.conf","r")
-+            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/chinese/bg5ps.conf.")
-+            if os.path.isfile("/usr/local/etc/chinese/bg5ps.conf"):
-+                sys.stderr.write("\n /usr/local/etc/chinese/bg5ps.conf found. Use configuration file /usr/local/etc/chinese/bg5ps.conf")
-+                cf=open("/usr/local/etc/chinese/bg5ps.conf","r")
-                 for l in cf.readlines():
-                     exec l
-                 cf.close()
---- bg5ps.conf.orig	Fri Dec 17 16:58:30 1999
-+++ bg5ps.conf	Fri Dec 17 17:07:48 1999
-@@ -1,9 +1,9 @@
- #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) 
--chineseFontPath=""
-+chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType"
- #modify the above line
- 
- #fontName: 指定中文字型的檔案名稱(預設值: ntu_kai) 
--fontName="ntu_kai"
-+fontName="moe_kai"
- 
- #oddPages: 0 不輸出奇數頁,1 輸出奇數頁(預設值: 1) 
- #true=1, false=0 
---- ttf2psm.c.orig	Wed Aug 26 21:50:26 1998
-+++ ttf2psm.c	Fri Dec 17 17:03:31 1999
-@@ -10,7 +10,6 @@
- #include <math.h>
- #include <stdlib.h>
- #include <string.h>
--#include <malloc.h>
- #include <memory.h>
- #include <time.h>
- 
-@@ -96,7 +95,7 @@
- void Beg();
- void End();
- 
--void main(int argc, char *argv[]){
-+int main(int argc, char *argv[]){
-   FILE *fn;
-   short cidx, i;
-   time_t t1, t2;
+--- Makefile.orig	Thu Nov  2 22:44:32 2000
++++ Makefile	Thu Nov  2 22:47:11 2000
+@@ -21,11 +21,13 @@
+ INSTALL = install
+ CFLAGS =
+ LIBS = -lttf -lm
+-INCLUDEDIR = 
++LIBSDIR = -L/usr/local/lib
++INCLUDEDIR = -I/usr/local/include
+ 
+-prefix = /usr
++
++prefix = /usr/local
+ BINDIR = $(prefix)/bin
+-ETCDIR = /etc/chinese/
++ETCDIR = /usr/local/etc/etc
+ 
+ all: ttf2psm
+ 
+@@ -33,12 +35,12 @@
+ 	$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
+ 
+ ttf2psm: $(OBJS)
+-	$(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
++	$(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
+ 
+ install: all bg5ps bg5ps.conf
+ 	mkdir -p $(ETCDIR)
+ 	mkdir -p $(BINDIR)
+-	$(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf
++	$(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf.sample
+ 	$(INSTALL) -m755 bg5ps $(BINDIR)
+ 	$(INSTALL) -m755 ttf2psm $(BINDIR)
+ 
--- files/patch-ab.orig	Fri Nov  3 01:20:41 2000
+++ files/patch-ab	Fri Nov  3 01:03:42 2000
@@ -0,0 +1,11 @@
+--- bg5ps.conf.orig	Thu Nov  2 23:47:35 2000
++++ bg5ps.conf	Thu Nov  2 23:50:27 2000
+@@ -4,7 +4,7 @@
+ Encoding="big5"
+ 
+ #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) 
+-chineseFontPath="/usr/share/fonts/ttf/"
++chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType"
+ 
+ #modify the above line
+ 
--- files/patch-ac.orig	Fri Nov  3 01:20:41 2000
+++ files/patch-ac	Fri Nov  3 01:03:48 2000
@@ -0,0 +1,23 @@
+--- bg5ps.orig	Thu Nov  2 23:50:38 2000
++++ bg5ps	Thu Nov  2 23:55:25 2000
+@@ -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      #
+@@ -443,10 +443,10 @@
+                 exec l
+             cf.close()
+         else:
+-            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.")
+-            if os.path.isfile("/etc/chinese/bg5ps.conf"):
+-                sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf")
+-                cf=open("/etc/chinese/bg5ps.conf","r")
++            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/bg5ps.conf.")
++            if os.path.isfile("/usr/local/etc/bg5ps.conf"):
++                sys.stderr.write("\n /usr/local/etc/bg5ps.conf found. Use configuration file /usr/local/etc/bg5ps.conf")
++                cf=open("/usr/local/etc/bg5ps.conf","r")
+                 for l in cf.readlines():
+                     exec l
+                 cf.close()
--- files/patch-ad.orig	Fri Nov  3 01:20:42 2000
+++ files/patch-ad	Fri Nov  3 01:03:56 2000
@@ -0,0 +1,11 @@
+--- ttf2psm.c.orig	Thu Nov  2 22:47:32 2000
++++ ttf2psm.c	Thu Nov  2 22:47:35 2000
+@@ -19,7 +19,7 @@
+  */
+ 
+ #include<stdio.h>
+-#include<freetype/freetype.h>
++#include<freetype.h>
+ #include<string.h>
+ #include<ctype.h>
+ 
--- files/patch-ae.orig	Fri Nov  3 01:32:03 2000
+++ files/patch-ae	Fri Nov  3 01:31:59 2000
@@ -0,0 +1,9 @@
+--- gb2312-bg5ps.conf.orig	Fri Nov  3 01:31:43 2000
++++ gb2312-bg5ps.conf	Fri Nov  3 01:31:49 2000
+@@ -1,5 +1,5 @@
+ #chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同) 
+-chineseFontPath="/usr/share/fonts/ttf/"
++chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType"
+ 
+ #modify the above line
+ 

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011021919.DAA72191>