From 53b6ed2f9906aa2f72ce4bb1b338466e2de33f72 Mon Sep 17 00:00:00 2001 From: ijliao Date: Thu, 3 Jan 2002 20:04:23 +0000 Subject: correct _xmlplus path --- textproc/py-xmltools/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'textproc') diff --git a/textproc/py-xmltools/Makefile b/textproc/py-xmltools/Makefile index e0ef6b26e4f6..989a80f7035b 100644 --- a/textproc/py-xmltools/Makefile +++ b/textproc/py-xmltools/Makefile @@ -14,11 +14,19 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org +USE_PYTHON= yes + +.include + +.if ${PYTHON_VERSION} == "python1.5" || ${PYTHON_VERSION} == "python1.6" +XMLDIR= xml +.else +XMLDIR= _xmlplus +.endif + RUN_DEPENDS= ${PYXML} \ ${PYTHON_SITELIBDIR}/GDK.py:${PORTSDIR}/x11-toolkits/py-gtk \ - ${PYTHON_SITELIBDIR}/xml/xpath/__init__.py:${PORTSDIR}/textproc/py-4suite - -USE_PYTHON= yes + ${PYTHON_SITELIBDIR}/${XMLDIR}/xpath/__init__.py:${PORTSDIR}/textproc/py-4suite SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py @@ -28,4 +36,4 @@ do-build: do-install: @${SETUP_CMD} install -.include +.include -- cgit