aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-pytz/Makefile
blob: a398573914a97462f9215d8701762d4b1cb51dff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for:    py-tz
# Date created:         Mar 22, 2006
# Whom:             Khairil Yusof <kaeru@inigo-tech.com>
#
# $FreeBSD$
#

PORTNAME=   pytz
PORTVERSION=    2007c
CATEGORIES= devel python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        http://cheeseshop.python.org/packages/source/p/pytz/
MASTER_SITE_SUBDIR= pytz
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= python@FreeBSD.org
COMMENT=    World Timezone Definitions for Python

BUILD_DEPENDS=  ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_BZIP2=  yes
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>