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:
parent
607eebc44b
commit
1df7f3c588
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353990
@ -1209,6 +1209,7 @@
|
||||
SUBDIR += py-zope.tal
|
||||
SUBDIR += py-zpt
|
||||
SUBDIR += py2html
|
||||
SUBDIR += py3-libxml2
|
||||
SUBDIR += pychm
|
||||
SUBDIR += pystemmer
|
||||
SUBDIR += qprint
|
||||
|
37
textproc/py3-libxml2/Makefile
Normal file
37
textproc/py3-libxml2/Makefile
Normal 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"
|
3
textproc/py3-libxml2/pkg-descr
Normal file
3
textproc/py3-libxml2/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Python interface for XML parser library for GNOME
|
||||
|
||||
WWW: http://xmlsoft.org/
|
9
textproc/py3-libxml2/pkg-plist
Normal file
9
textproc/py3-libxml2/pkg-plist
Normal 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__
|
||||
|
Loading…
Reference in New Issue
Block a user