On 2009/07/17 17:04, Christian Weisgerber wrote:
> Here are packages-specs(7) fixes to
>
> chinese/bg5ps
this should probably switch to python.port.mk, see below (it has a
minor hack to work around a hack in python.port.mk).
> editors/emacs21
> misc/cbb
> x11/e16keyedit
yes
> Please double check that these make sense.
Index: Makefile
===================================================================
RCS file: /cvs/ports/chinese/bg5ps/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- Makefile 8 Jun 2008 14:27:03 -0000 1.19
+++ Makefile 17 Jul 2009 15:54:29 -0000
@@ -3,7 +3,7 @@
COMMENT= convert Big5/GB encoded files to postscript
DISTNAME= bg5ps-1.3.0
-PKGNAME= zh-${DISTNAME}p1
+PKGNAME= zh-${DISTNAME}p2
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <[email protected]>
@@ -17,17 +17,19 @@ WANTLIB= c m
MASTER_SITES= ${MASTER_SITE_BACKUP}
-PYTHON_VER= 2.4
-RUN_DEPENDS= ::chinese/arphicttf \
- :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
+MODULES= lang/python
+MODPY_VERSION= 2.4
+RUN_DEPENDS= ::chinese/arphicttf
LIB_DEPENDS= ttf.>=1::print/freetype
+# python.port.mk overrides various targets when CONFIGURE_STYLE is empty
+CONFIGURE_STYLE=none
+
NO_REGRESS= Yes
pre-configure:
perl -pi -e \
-
"s|/usr/local/bin/python.*|${LOCALBASE}/bin/python${PYTHON_VER}|" \
- ${WRKSRC}/bg5ps
+ "s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
LDFLAGS=-L${LOCALBASE}/lib \