diff options
Diffstat (limited to 'textproc/py3-libxml2')
-rw-r--r-- | textproc/py3-libxml2/Makefile | 37 | ||||
-rw-r--r-- | textproc/py3-libxml2/pkg-descr | 3 | ||||
-rw-r--r-- | textproc/py3-libxml2/pkg-plist | 9 |
3 files changed, 49 insertions, 0 deletions
diff --git a/textproc/py3-libxml2/Makefile b/textproc/py3-libxml2/Makefile new file mode 100644 index 000000000..53dba1635 --- /dev/null +++ b/textproc/py3-libxml2/Makefile @@ -0,0 +1,37 @@ +# Created by: Alexander Nedotsukov <bland@FreeBSD.org> +# $FreeBSD$ +# $MCom$ + +PORTREVISION= 0 +CATEGORIES= textproc gnome python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Python interface for XML parser library for GNOME + +MASTERDIR= ${.CURDIR}/../libxml2 +BUILD_WRKSRC= ${WRKSRC}/python +INSTALL_WRKSRC= ${BUILD_WRKSRC} +DESCR= ${.CURDIR}/pkg-descr +PLIST= ${.CURDIR}/pkg-plist + +USE_GNOME+= libxml2 +USE_PYTHON= 3 +USE_PYDISTUTILS=yes +PYDISTUTILS_EGGINFO= libxml2_python-${PORTVERSION}-py${PYTHON_VER}.egg-info +PLIST_SUB+= PYTVER=${PYTHON_VER:S/.//} + +CPPFLAGS+= `${PYTHON_VERSION}-config --cflags` +LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_VERSION}-config --libs` +CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \ + --with-html-dir=${PREFIX}/share/doc \ + --with-html-subdir=${PORTNAME} \ + --with-python=${PYTHON_CMD} + +DOCSDIR= ${PREFIX}/share/doc/py-libxml2 +EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2 + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so + +.include "${MASTERDIR}/Makefile" diff --git a/textproc/py3-libxml2/pkg-descr b/textproc/py3-libxml2/pkg-descr new file mode 100644 index 000000000..afb7cf4dd --- /dev/null +++ b/textproc/py3-libxml2/pkg-descr @@ -0,0 +1,3 @@ +Python interface for XML parser library for GNOME + +WWW: http://xmlsoft.org/ diff --git a/textproc/py3-libxml2/pkg-plist b/textproc/py3-libxml2/pkg-plist new file mode 100644 index 000000000..bbda20c6d --- /dev/null +++ b/textproc/py3-libxml2/pkg-plist @@ -0,0 +1,9 @@ +%%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.cpython-%%PYTVER%%.pyc +%%PYTHON_SITELIBDIR%%/__pycache__/drv_libxml2.cpython-%%PYTVER%%.pyo +%%PYTHON_SITELIBDIR%%/__pycache__/libxml2.cpython-%%PYTVER%%.pyc +%%PYTHON_SITELIBDIR%%/__pycache__/libxml2.cpython-%%PYTVER%%.pyo +%%PYTHON_SITELIBDIR%%/drv_libxml2.py +%%PYTHON_SITELIBDIR%%/libxml2.py +%%PYTHON_SITELIBDIR%%/libxml2mod.so +@dirrmtry %%PYTHON_SITELIBDIR%%/__pycache__ + |