Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2014 02:07:12 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348824 - in head/textproc/py-ltxml: . files
Message-ID:  <201403230207.s2N27C7D029446@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Sun Mar 23 02:07:12 2014
New Revision: 348824
URL: http://svnweb.freebsd.org/changeset/ports/348824
QAT: https://qat.redports.org/buildarchive/r348824/

Log:
  - Bump PORTREVISION for rerolled tarball
  - Take maintainership
  - Change DOCS
  - Add DOCS and EXAMPLES Options
  - Remove obsolete REINPLACE
  - Strip library
  - Change patch, old was rejected

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

Modified: head/textproc/py-ltxml/Makefile
==============================================================================
--- head/textproc/py-ltxml/Makefile	Sun Mar 23 01:34:58 2014	(r348823)
+++ head/textproc/py-ltxml/Makefile	Sun Mar 23 02:07:12 2014	(r348824)
@@ -3,13 +3,13 @@
 
 PORTNAME=	ltxml
 PORTVERSION=	1.3
-PORTREVISION=	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
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Python bindings to the LT XML toolkit
 
 BUILD_DEPENDS=	${LOCALBASE}/include/ltxml12/lt-safe.h:${PORTSDIR}/textproc/ltxml
@@ -22,8 +22,9 @@ USE_LDCONFIG=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
-PORTDOCS=	*
+PORTDOCS=	00README
 PORTEXAMPLES=	*
+OPTIONS_DEFINE= DOCS EXAMPLES
 
 .include <bsd.port.pre.mk>
 
@@ -31,12 +32,11 @@ PORTEXAMPLES=	*
 CFLAGS+=	-fPIC
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|/group/ltg/projects/lcontrib9|${LOCALBASE}|' ${WRKSRC}/setup.py
-
 post-install:
-	${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/00README ${STAGEDIR}${DOCSDIR}
+	${STRIP_CMD} ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/PyLTXML/LTXMLinter.so
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.post.mk>

Modified: head/textproc/py-ltxml/distinfo
==============================================================================
--- head/textproc/py-ltxml/distinfo	Sun Mar 23 01:34:58 2014	(r348823)
+++ head/textproc/py-ltxml/distinfo	Sun Mar 23 02:07:12 2014	(r348824)
@@ -1,2 +1,2 @@
-SHA256 (PyLTXML-1.3.tar.gz) = c44dba379247d02dd16e946f2decc1435e8b9b09b86dc89481a96d510d8bc289
-SIZE (PyLTXML-1.3.tar.gz) = 28117
+SHA256 (PyLTXML-1.3.tar.gz) = 244aad01160825b21a0b9d7f40d79cddb76cc95f7d87ffd11ef0b016c5b1586c
+SIZE (PyLTXML-1.3.tar.gz) = 28129

Modified: head/textproc/py-ltxml/files/patch-setup.py
==============================================================================
--- head/textproc/py-ltxml/files/patch-setup.py	Sun Mar 23 01:34:58 2014	(r348823)
+++ head/textproc/py-ltxml/files/patch-setup.py	Sun Mar 23 02:07:12 2014	(r348824)
@@ -1,14 +1,22 @@
---- setup.py.orig	Mon Nov  4 16:50:20 2002
-+++ setup.py	Fri Jan 31 12:08:31 2003
-@@ -16,10 +16,7 @@
-     self.install_dir = getattr(install_cmd, 'install_lib')
-     return install_data.run(self)
+--- ./setup.py.orig	2008-01-11 15:26:31.000000000 +0100
++++ ./setup.py	2014-03-23 01:17:23.320011401 +0100
+@@ -6,9 +6,7 @@
+ from distutils.core import setup, Extension
+ from distutils import sysconfig
  
--datafiles=[('PyLTXML/example',
--            ['example/small.xml',
+-datafiles= ['example/small.xml',
 -             'example/gscore.dtd',
--             'example/simple.py'])] # only works for bdist and friends
+-             'example/simple.py'] # only works for bdist and friends
 +datafiles=[]
  
  if sys.platform.find("win32",0,5)==0:
-   incldirs=['C:\Program Files\HCRC LTG\LT XML\include']
+   incldirs=['C:\\Program Files\\msys\\1.0\\include\\ltxml12','C:\\Program Files\\msys\\1.0\\include']
+@@ -32,7 +30,7 @@
+   libs=['ltapi12','ltstd12', 'z']
+   macros=[('FOR_LT', '1')] # ,('ALLOC_DEBUG', '1')
+ 
+-  data_files=[( sysconfig.get_python_lib() + "/PyLTXML/example",
++  data_files=[( sysconfig.get_python_lib() + "/PyLTXML/",
+                 datafiles)]
+   if sys.platform.find("sunos",0,5)==0:
+     extra_link_args=['-mimpure-text']



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