aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2008-01-11 01:59:03 +0800
committerbsam <bsam@FreeBSD.org>2008-01-11 01:59:03 +0800
commitb107b8eb16015eca31cb7c3765de8fccdae32139 (patch)
treed6c7b30463a45ce7650fd1bc391de57dfe54eaf9 /devel
parent2333d5b208af0e874f6e771d81cb06f953d35b49 (diff)
downloadfreebsd-ports-gnome-b107b8eb16015eca31cb7c3765de8fccdae32139.tar.gz
freebsd-ports-gnome-b107b8eb16015eca31cb7c3765de8fccdae32139.tar.zst
freebsd-ports-gnome-b107b8eb16015eca31cb7c3765de8fccdae32139.zip
Unbreak a package building for FreeBSD-5 (convert easy_install
support to bsd.python.mk). PR: 119531 Submitted by: bsam (me) Suggested by: nivit (thanks!) Approved by: Robert Gogolok <gogo at cs.uni-sb.de> (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/py-lxml/Makefile22
-rw-r--r--devel/py-lxml/pkg-plist60
2 files changed, 35 insertions, 47 deletions
diff --git a/devel/py-lxml/Makefile b/devel/py-lxml/Makefile
index 07c2552ca8a1..a898e3c18d5a 100644
--- a/devel/py-lxml/Makefile
+++ b/devel/py-lxml/Makefile
@@ -17,13 +17,13 @@ EXTRACT_SUFX= .tgz
MAINTAINER= gogo@cs.uni-sb.de
COMMENT= Pythonic binding for the libxml2 and libxslt libraries
-BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
LIB_DEPENDS= xslt.2:${PORTSDIR}/textproc/libxslt
-RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
USE_PYTHON= 2.4+
-USE_PYDISTUTILS= yes
-PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
+USE_PYDISTUTILS= easy_install
+PYEASYINSTALL_INSTALLARGS= -N ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
+PYEASYINSTALL_UNINSTALLARGS= -q -m -N ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
+PYEASYINSTALL_ARCHDEP= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
@@ -33,13 +33,7 @@ BASEDOCS= CHANGES.txt \
TODO.txt \
README.txt
-EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
-
-PYLXML_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OPSYS:L}-${OSRELEASE}-${ARCH}.egg
-
-PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
- PYLXML_EGG=${PYLXML_EGG} \
- PYLXML_EGG_VER="${PORTNAME}==${PORTVERSION}"
+PYLXML_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}${PYEASYINSTALL_OSARCH}.egg
post-install:
.if !defined(NOPORTDOCS)
@@ -51,8 +45,4 @@ post-install:
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}/doc
.endif
-.include <bsd.port.pre.mk>
-
-OSRELEASE!= /usr/bin/uname -r
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/py-lxml/pkg-plist b/devel/py-lxml/pkg-plist
index 0043af7669a7..404f932527ad 100644
--- a/devel/py-lxml/pkg-plist
+++ b/devel/py-lxml/pkg-plist
@@ -1,34 +1,32 @@
-@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYLXML_EGG_VER%%
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/PKG-INFO
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/SOURCES.txt
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/dependency_links.txt
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/native_libs.txt
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/not-zip-safe
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO/top_level.txt
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/ElementInclude.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/ElementInclude.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/ElementInclude.pyo
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/__init__.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/__init__.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/__init__.pyo
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/_elementpath.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/_elementpath.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/_elementpath.pyo
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/etree.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/etree.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/etree.pyo
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/etree.so
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/objectify.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/objectify.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/objectify.pyo
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/objectify.so
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/sax.py
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/sax.pyc
-%%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml/sax.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/lxml
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%/EGG-INFO
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYLXML_EGG%%
-@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYLXML_EGG_VER%%
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/native_libs.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/ElementInclude.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/ElementInclude.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/ElementInclude.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/_elementpath.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/_elementpath.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/_elementpath.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/etree.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/etree.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/etree.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/etree.so
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/objectify.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/objectify.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/objectify.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/objectify.so
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/sax.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/sax.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml/sax.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/lxml
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
%%PORTDOCS%%%%DOCSDIR%%/CREDITS.txt
%%PORTDOCS%%%%DOCSDIR%%/LICENSES.txt