aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-pytz/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-pytz/Makefile')
-rw-r--r--devel/py-pytz/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/devel/py-pytz/Makefile b/devel/py-pytz/Makefile
index 9178448f7f6f..11e4f65bed1a 100644
--- a/devel/py-pytz/Makefile
+++ b/devel/py-pytz/Makefile
@@ -6,18 +6,33 @@
#
PORTNAME= pytz
-PORTVERSION= 2006g
+PORTVERSION= 2006p
CATEGORIES= devel python
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://cheeseshop.python.org/packages/source/p/pytz/
MASTER_SITE_SUBDIR= pytz
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= pytz-${PORTVERSION}
MAINTAINER= kaeru@inigo-tech.com
COMMENT= World Timezone Definitions for Python
+BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+
USE_BZIP2= yes
-USE_PYTHON= 2.3+
+USE_PYTHON= yes
USE_PYDISTUTILS= yes
+EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
+
+PYDISTUTILS_BUILD_TARGET= bdist_egg
+PYDISTUTILS_INSTALL_TARGET= easy_install
+PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYPYTZ_EGG}
+
+PYPYTZ_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
+
+PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+ PYPYTZ_EGG=${PYPYTZ_EGG} \
+ PYPYTZ_EGG_VER="${PORTNAME}==${PORTVERSION}"
+
.include <bsd.port.mk>