aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2009-06-05 05:41:22 +0800
committernivit <nivit@FreeBSD.org>2009-06-05 05:41:22 +0800
commite5c85615f0a37e268c198e71b247502ed8c1d53c (patch)
treea1d18cef712c30d36efbb6b0139628d3169582ab /devel
parent4a4c1b8685a3e4ed06b661f9844562a6c63719df (diff)
downloadfreebsd-ports-gnome-e5c85615f0a37e268c198e71b247502ed8c1d53c.tar.gz
freebsd-ports-gnome-e5c85615f0a37e268c198e71b247502ed8c1d53c.tar.zst
freebsd-ports-gnome-e5c85615f0a37e268c198e71b247502ed8c1d53c.zip
- Add devel/py-elementtree to *_DEPENDS only if Python < 2.5 [*]
- Bump PORTREVISION - Fix URL of the download site PR: ports/134735 Submitted by: Wen Heping <wenheping at gmail dot com> [*]
Diffstat (limited to 'devel')
-rw-r--r--devel/py-kid/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/devel/py-kid/Makefile b/devel/py-kid/Makefile
index b00eb67312d2..4311187058dc 100644
--- a/devel/py-kid/Makefile
+++ b/devel/py-kid/Makefile
@@ -7,18 +7,15 @@
PORTNAME= kid
PORTVERSION= 0.9.6
-#PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= devel python
-MASTER_SITES= http://www.kid-templating.org/dist/${PORTVERSION}/dist/ \
+MASTER_SITES= http://www.kid-templating.org/dist/${PORTVERSION}/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A simple template language for XML based written in Python
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
@@ -38,4 +35,11 @@ post-install:
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if $(PYTHON_REL) < 250
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
+RUN_DEPENDS= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>