summaryrefslogtreecommitdiffstats
path: root/textproc/py-libxml2
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-11-24 17:21:11 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-11-24 17:21:11 +0800
commit9b959c56e0113847df58e604e7fa92c699acd94b (patch)
tree6531c0f652c3487cbadb18c445f78d195c9a7ca2 /textproc/py-libxml2
parent408f50829980d4b17cfee2f9796324fd55d6ed58 (diff)
downloadmarcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar.gz
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar.bz2
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar.lz
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar.xz
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.tar.zst
marcuscom-ports-9b959c56e0113847df58e604e7fa92c699acd94b.zip
Update to 2.9.1. (long overdue)
Stageify, use pydistutils to build python bindings, thanks for koobs@ for helping with that. Use ltverhack to sanitize library version. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18920 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc/py-libxml2')
-rw-r--r--textproc/py-libxml2/Makefile10
-rw-r--r--textproc/py-libxml2/pkg-plist55
2 files changed, 6 insertions, 59 deletions
diff --git a/textproc/py-libxml2/Makefile b/textproc/py-libxml2/Makefile
index 4063e5ceb..e7be0bb30 100644
--- a/textproc/py-libxml2/Makefile
+++ b/textproc/py-libxml2/Makefile
@@ -1,6 +1,6 @@
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$
-# $MCom: ports/trunk/textproc/py-libxml2/Makefile 18396 2013-04-27 14:52:06Z kwm $
+# $MCom$
PORTREVISION= 0
CATEGORIES= textproc gnome python
@@ -17,9 +17,12 @@ PLIST= ${.CURDIR}/pkg-plist
USE_GNOME+= libxml2
USE_PYTHON= -2.7
+USE_PYDISTUTILS=yes
+PYDISTUTILS_EGGINFO= libxml2_python-${PORTVERSION}-py${PYTHON_VER}.egg-info
+
CPPFLAGS+= `${PYTHON_VERSION}-config --cflags`
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_VERSION}-config --libs`
-CONFIGURE_ARGS= --with-iconv=${LOCALBASE} \
+CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \
--with-html-dir=${PREFIX}/share/doc \
--with-html-subdir=${PORTNAME} \
--with-python=${PYTHON_CMD}
@@ -28,7 +31,6 @@ DOCSDIR= ${PREFIX}/share/doc/py-libxml2
EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2
post-install:
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so
.include "${MASTERDIR}/Makefile"
diff --git a/textproc/py-libxml2/pkg-plist b/textproc/py-libxml2/pkg-plist
index bfa1da59c..9c9155aa2 100644
--- a/textproc/py-libxml2/pkg-plist
+++ b/textproc/py-libxml2/pkg-plist
@@ -4,59 +4,4 @@
%%PYTHON_SITELIBDIR%%/libxml2.py
%%PYTHON_SITELIBDIR%%/libxml2.pyc
%%PYTHON_SITELIBDIR%%/libxml2.pyo
-%%PYTHON_SITELIBDIR%%/libxml2mod.a
-%%PYTHON_SITELIBDIR%%/libxml2mod.la
%%PYTHON_SITELIBDIR%%/libxml2mod.so
-%%DOCSDIR%%/TODO
-%%EXAMPLESDIR%%/attribs.py
-%%EXAMPLESDIR%%/build.py
-%%EXAMPLESDIR%%/compareNodes.py
-%%EXAMPLESDIR%%/ctxterror.py
-%%EXAMPLESDIR%%/cutnpaste.py
-%%EXAMPLESDIR%%/dtdvalid.py
-%%EXAMPLESDIR%%/error.py
-%%EXAMPLESDIR%%/inbuf.py
-%%EXAMPLESDIR%%/indexes.py
-%%EXAMPLESDIR%%/invalid.xml
-%%EXAMPLESDIR%%/nsdel.py
-%%EXAMPLESDIR%%/outbuf.py
-%%EXAMPLESDIR%%/push.py
-%%EXAMPLESDIR%%/pushSAX.py
-%%EXAMPLESDIR%%/pushSAXhtml.py
-%%EXAMPLESDIR%%/reader.py
-%%EXAMPLESDIR%%/reader2.py
-%%EXAMPLESDIR%%/reader3.py
-%%EXAMPLESDIR%%/reader4.py
-%%EXAMPLESDIR%%/reader5.py
-%%EXAMPLESDIR%%/reader6.py
-%%EXAMPLESDIR%%/reader7.py
-%%EXAMPLESDIR%%/reader8.py
-%%EXAMPLESDIR%%/readererr.py
-%%EXAMPLESDIR%%/readernext.py
-%%EXAMPLESDIR%%/regexp.py
-%%EXAMPLESDIR%%/relaxng.py
-%%EXAMPLESDIR%%/resolver.py
-%%EXAMPLESDIR%%/schema.py
-%%EXAMPLESDIR%%/serialize.py
-%%EXAMPLESDIR%%/sync.py
-%%EXAMPLESDIR%%/test.dtd
-%%EXAMPLESDIR%%/thread2.py
-%%EXAMPLESDIR%%/tst.py
-%%EXAMPLESDIR%%/tst.xml
-%%EXAMPLESDIR%%/tstLastError.py
-%%EXAMPLESDIR%%/tstURI.py
-%%EXAMPLESDIR%%/tstmem.py
-%%EXAMPLESDIR%%/tstxpath.py
-%%EXAMPLESDIR%%/valid.xml
-%%EXAMPLESDIR%%/validDTD.py
-%%EXAMPLESDIR%%/validRNG.py
-%%EXAMPLESDIR%%/validSchemas.py
-%%EXAMPLESDIR%%/validate.py
-%%EXAMPLESDIR%%/walker.py
-%%EXAMPLESDIR%%/xpath.py
-%%EXAMPLESDIR%%/xpathext.py
-%%EXAMPLESDIR%%/xpathleak.py
-%%EXAMPLESDIR%%/xpathns.py
-%%EXAMPLESDIR%%/xpathret.py
-@dirrm %%EXAMPLESDIR%%
-@dirrm %%DOCSDIR%%