Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2016 09:00:54 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r418950 - in head/textproc/py-ltxml: . files
Message-ID:  <201607230900.u6N90s8T048214@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Jul 23 09:00:54 2016
New Revision: 418950
URL: https://svnweb.freebsd.org/changeset/ports/418950

Log:
  - License
  - Switch to options helpers
  - Cosmetic fixes
  - Update WWW
  - Regenerate patches with `make makepatch`

Modified:
  head/textproc/py-ltxml/Makefile
  head/textproc/py-ltxml/files/patch-setup.py
  head/textproc/py-ltxml/pkg-descr

Modified: head/textproc/py-ltxml/Makefile
==============================================================================
--- head/textproc/py-ltxml/Makefile	Sat Jul 23 08:54:20 2016	(r418949)
+++ head/textproc/py-ltxml/Makefile	Sat Jul 23 09:00:54 2016	(r418950)
@@ -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-${PORTNA
 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>

Modified: head/textproc/py-ltxml/files/patch-setup.py
==============================================================================
--- head/textproc/py-ltxml/files/patch-setup.py	Sat Jul 23 08:54:20 2016	(r418949)
+++ head/textproc/py-ltxml/files/patch-setup.py	Sat Jul 23 09:00:54 2016	(r418950)
@@ -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'],

Modified: head/textproc/py-ltxml/pkg-descr
==============================================================================
--- head/textproc/py-ltxml/pkg-descr	Sat Jul 23 08:54:20 2016	(r418949)
+++ head/textproc/py-ltxml/pkg-descr	Sat Jul 23 09:00:54 2016	(r418950)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607230900.u6N90s8T048214>