diff options
author | James E. Housley <jeh@FreeBSD.org> | 2001-05-11 12:24:20 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2001-05-11 12:24:20 +0000 |
commit | fba7eacd8b6caab3554fcdd8f533a69aac0e71b8 (patch) | |
tree | 0512bcdb56803c6bd58581b1a04b8e3cbf06dc8f /textproc/py-4suite/Makefile | |
parent | Update to xf-19. UTF-8 supported added. (diff) |
- Update 4Suite (textproc/py-4suite) to version 0.11
- This is a major rewrite of 4Suite. From a ports point of view, things are
simplified since the interdependency between 4Suite and PyXML has been
somewhat simplified.
- Tested with Python 2.1 on -CURRENT, and (more briefly) with Python 1.5.2 on
-CURRENT.
PR: 27173
Submitted by: Johann Visagie <johann@egenetics.com> MAINTAINER
Diffstat (limited to 'textproc/py-4suite/Makefile')
-rw-r--r-- | textproc/py-4suite/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/textproc/py-4suite/Makefile b/textproc/py-4suite/Makefile index 1b92acd65cdc..0f263b55f069 100644 --- a/textproc/py-4suite/Makefile +++ b/textproc/py-4suite/Makefile @@ -6,7 +6,7 @@ # PORTNAME= 4suite -PORTVERSION= 0.10.2 +PORTVERSION= 0.11 CATEGORIES= textproc python MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,22 +14,26 @@ DISTNAME= 4Suite-${PORTVERSION} MAINTAINER= johann@egenetics.com -BUILD_DEPENDS= ${PYDISTUTILS} -RUN_DEPENDS= ${PYXML} +BUILD_DEPENDS= ${PYDISTUTILS} \ + ${PYXML} USE_PYTHON= yes -INSTALLS_SHLIB= yes .include <bsd.port.pre.mk> -.if ${PYTHON_VERSION} == "python1.5" +.if ${PYTHON_VERSION} == "python1.5" || ${PYTHON_VERSION} == "python1.6" PLIST_SUB+= PACKAGE_DIR=xml PYTHON2_ONLY="@comment " .else PLIST_SUB+= PACKAGE_DIR=_xmlplus PYTHON2_ONLY="" .endif post-patch: + @ ${PERL} -pi -e \ + 's#(copy_to=.)docs#$$1doc/py-${PORTNAME}#; \ + s#(copy_to=.)(test_suite|demo)#$$1examples/py-${PORTNAME}/$$2#' \ + ${WRKSRC}/setup.py .if defined(NOPORTDOCS) - @ ${PERL} -pi -e '/^data_files\.extend/ && s/^/#/' ${WRKSRC}/setup.py + @ ${PERL} -pi -e 's/(data_files=)data_files + /$$1/' \ + ${WRKSRC}/setup.py .endif do-build: @@ -37,6 +41,6 @@ do-build: do-install: @ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \ - --prefix=${PREFIX} + --prefix=${PREFIX} --install-data=${PREFIX}/share .include <bsd.port.post.mk> |