1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add python3 version of the libxml2 python bindings.

This commit is contained in:
Koop Mast 2014-05-13 20:35:02 +00:00
parent 607eebc44b
commit 1df7f3c588
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353990
4 changed files with 50 additions and 0 deletions

View File

@ -1209,6 +1209,7 @@
SUBDIR += py-zope.tal
SUBDIR += py-zpt
SUBDIR += py2html
SUBDIR += py3-libxml2
SUBDIR += pychm
SUBDIR += pystemmer
SUBDIR += qprint

View File

@ -0,0 +1,37 @@
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/trunk/textproc/py3-libxml2/Makefile 19293 2014-03-24 20:46:10Z kwm $
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"

View File

@ -0,0 +1,3 @@
Python interface for XML parser library for GNOME
WWW: http://xmlsoft.org/

View File

@ -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__