Index: head/textproc/py-ltxml/Makefile =================================================================== --- head/textproc/py-ltxml/Makefile (revision 418949) +++ head/textproc/py-ltxml/Makefile (revision 418950) @@ -1,42 +1,49 @@ # Created by: Johann Visagie # $FreeBSD$ PORTNAME= ltxml PORTVERSION= 1.3 PORTREVISION= 4 CATEGORIES= textproc python MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyLTXML-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Python bindings to the LT XML toolkit +LICENSE= GPLv2 # only `GPL' is mentioned, assuming v2 + BUILD_DEPENDS= ${LOCALBASE}/include/ltxml12/lt-safe.h:textproc/ltxml -RUN_DEPENDS:= ${BUILD_DEPENDS} +RUN_DEPENDS= ${LOCALBASE}/include/ltxml12/lt-safe.h:textproc/ltxml USES= python USE_PYTHON= distutils autoplist USE_LDCONFIG= yes DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} PORTDOCS= 00README PORTEXAMPLES= * + OPTIONS_DEFINE= DOCS EXAMPLES .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC .endif post-install: - ${STRIP_CMD} \ + @${STRIP_CMD} \ ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/PyLTXML/LTXMLinter.so - @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR} .include Index: head/textproc/py-ltxml/files/patch-setup.py =================================================================== --- head/textproc/py-ltxml/files/patch-setup.py (revision 418949) +++ head/textproc/py-ltxml/files/patch-setup.py (revision 418950) @@ -1,28 +1,28 @@ ---- ./setup.py.orig 2008-01-11 15:26:31.000000000 +0100 -+++ ./setup.py 2014-03-24 17:33:02.100042933 +0100 -@@ -6,9 +6,7 @@ +--- setup.py.orig 2008-01-11 14:26:31 UTC ++++ setup.py +@@ -6,9 +6,7 @@ import sys from distutils.core import setup, Extension from distutils import sysconfig -datafiles= ['example/small.xml', - 'example/gscore.dtd', - 'example/simple.py'] # only works for bdist and friends +datafiles=[] if sys.platform.find("win32",0,5)==0: incldirs=['C:\\Program Files\\msys\\1.0\\include\\ltxml12','C:\\Program Files\\msys\\1.0\\include'] -@@ -32,8 +30,6 @@ +@@ -32,8 +30,6 @@ else: libs=['ltapi12','ltstd12', 'z'] macros=[('FOR_LT', '1')] # ,('ALLOC_DEBUG', '1') - data_files=[( sysconfig.get_python_lib() + "/PyLTXML/example", - datafiles)] if sys.platform.find("sunos",0,5)==0: extra_link_args=['-mimpure-text'] extra_compile_args=['-mimpure-text'] -@@ -65,5 +61,4 @@ +@@ -65,5 +61,4 @@ setup(name='PyLTXML', See 00README for details""", platforms=[platform], packages=['PyLTXML'], - data_files=data_files, ext_modules=[pyltxml]) Index: head/textproc/py-ltxml/pkg-descr =================================================================== --- head/textproc/py-ltxml/pkg-descr (revision 418949) +++ head/textproc/py-ltxml/pkg-descr (revision 418950) @@ -1,3 +1,3 @@ Python bindings for the LT XML API and toolkit. -WWW: http://www.ltg.ed.ac.uk/software/xml/ +WWW: https://www.ltg.ed.ac.uk/software/ltxml/