aboutsummaryrefslogtreecommitdiff
path: root/chinese/bg5pdf
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-12-03 07:16:56 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-12-03 07:16:56 +0000
commitf38d3f11126301665579f9ade5ed80cc4ab75565 (patch)
tree6c58998571502beb42336c0ee6e43b3b4a61cd76 /chinese/bg5pdf
parent06ee8d0762ebb863f544851cdde833c28f995ada (diff)
downloadports-f38d3f11126301665579f9ade5ed80cc4ab75565.tar.gz
ports-f38d3f11126301665579f9ade5ed80cc4ab75565.zip
Notes
Diffstat (limited to 'chinese/bg5pdf')
-rw-r--r--chinese/bg5pdf/Makefile13
-rw-r--r--chinese/bg5pdf/files/patch-aa8
-rw-r--r--chinese/bg5pdf/files/patch-ab6
-rw-r--r--chinese/bg5pdf/pkg-descr4
4 files changed, 9 insertions, 22 deletions
diff --git a/chinese/bg5pdf/Makefile b/chinese/bg5pdf/Makefile
index 87ae69a09266..b284e96d005b 100644
--- a/chinese/bg5pdf/Makefile
+++ b/chinese/bg5pdf/Makefile
@@ -9,10 +9,10 @@ PORTNAME= bg5pdf
PORTVERSION= 1.0.0
PORTREVISION= 5
CATEGORIES= chinese print
-MASTER_SITES= http://cschin.yydolphin.net/bg5pdf/ \
- ftp://freebsd.sinica.edu.tw/pub/statue/bg5pdf/
+MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/bg5pdf/ \
+ LOCAL/chinsan
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= chinsan@FreeBSD.org
COMMENT= Convert Chinese-Big5 encoded files to PDF, using PDFlib
LIB_DEPENDS= pdf.8:${PORTSDIR}/print/pdflib
@@ -22,8 +22,11 @@ USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
- ${REINPLACE_CMD} -e 's,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g' \
- ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e 's,/usr/bin/python,python,g' ${WRKSRC}/bg5pdf
+
+do-build:
+ ${CC} ${CFLAGS} -shared ${WRKSRC}/bg5pdflib.c -I${PREFIX}/include \
+ -I${PYTHON_INCLUDEDIR} -L${PREFIX}/lib -lpdf -o ${WRKSRC}/bg5pdflib.so
do-install:
@${MKDIR} ${EXAMPLESDIR}
diff --git a/chinese/bg5pdf/files/patch-aa b/chinese/bg5pdf/files/patch-aa
deleted file mode 100644
index f16e3074ea57..000000000000
--- a/chinese/bg5pdf/files/patch-aa
+++ /dev/null
@@ -1,8 +0,0 @@
---- 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 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
deleted file mode 100644
index ff898e17963e..000000000000
--- a/chinese/bg5pdf/files/patch-ab
+++ /dev/null
@@ -1,6 +0,0 @@
---- Makefile.orig Sat Mar 30 23:01:25 2002
-+++ Makefile Sat Mar 30 23:01:40 2002
-@@ -0,0 +1,3 @@
-+all:
-+ ${CC} ${CFLAGS} -shared bg5pdflib.c -I/usr/local/include -I%%PYTHON_INCLUDEDIR%% -L/usr/local/lib -lpdf -o bg5pdflib.so
-+
diff --git a/chinese/bg5pdf/pkg-descr b/chinese/bg5pdf/pkg-descr
index c9b6bb74a78c..87549108d372 100644
--- a/chinese/bg5pdf/pkg-descr
+++ b/chinese/bg5pdf/pkg-descr
@@ -1,9 +1,7 @@
-Bg5pdf is a simple wrapper for wrapping big5 encoding text file into
+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://cschin.yydolphin.net/bg5pdf/