summaryrefslogtreecommitdiff
path: root/textproc/py-ltxml
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-23 09:00:54 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-23 09:00:54 +0000
commitbd9a350e915fcaaac628e56ffa63c3e39b31cddc (patch)
tree8a3ea18975a8b18462c5d4aa769408bc8898be77 /textproc/py-ltxml
parentUpdate devel/erlang-gpb to version 3.24.0. (diff)
- License
- Switch to options helpers - Cosmetic fixes - Update WWW - Regenerate patches with `make makepatch`
Notes
Notes: svn path=/head/; revision=418950
Diffstat (limited to 'textproc/py-ltxml')
-rw-r--r--textproc/py-ltxml/Makefile13
-rw-r--r--textproc/py-ltxml/files/patch-setup.py10
-rw-r--r--textproc/py-ltxml/pkg-descr2
3 files changed, 16 insertions, 9 deletions
diff --git a/textproc/py-ltxml/Makefile b/textproc/py-ltxml/Makefile
index 757050b87ccb..a0591dbe584f 100644
--- a/textproc/py-ltxml/Makefile
+++ b/textproc/py-ltxml/Makefile
@@ -12,8 +12,10 @@ 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
@@ -23,6 +25,7 @@ DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= 00README
PORTEXAMPLES= *
+
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
@@ -32,11 +35,15 @@ 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 <bsd.port.post.mk>
diff --git a/textproc/py-ltxml/files/patch-setup.py b/textproc/py-ltxml/files/patch-setup.py
index 41613ffb350b..c44be3db3dce 100644
--- a/textproc/py-ltxml/files/patch-setup.py
+++ b/textproc/py-ltxml/files/patch-setup.py
@@ -1,6 +1,6 @@
---- ./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
@@ -11,7 +11,7 @@
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')
@@ -20,7 +20,7 @@
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'],
diff --git a/textproc/py-ltxml/pkg-descr b/textproc/py-ltxml/pkg-descr
index 1a7a95632a98..6fdf2bb76e69 100644
--- a/textproc/py-ltxml/pkg-descr
+++ b/textproc/py-ltxml/pkg-descr
@@ -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/