aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-pastescript/Makefile
blob: 5bca48dc765df70be5e3938caaa16fd2e18d2293 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    py-pastescript
# Date created:     15 December 2006
# Whom:         Dryice Liu  <dryice@dryice.name>
#
# $FreeBSD$
#

PORTNAME=   PasteScript
PORTVERSION=    1.6.2
PORTREVISION=   1
CATEGORIES= www python
MASTER_SITES=   http://pypi.python.org/packages/source/P/PasteScript/ \
        ${MASTER_SITE_LOCAL} \
        http://dryice.name/computer/FreeBSD/distfiles/
MASTER_SITE_SUBDIR= dryice
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= dryice@FreeBSD.org
COMMENT=    A pluggable command-line frontend

BUILD_DEPENDS=  easy_install:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS=    ${BUILD_DEPENDS}
RUN_DEPENDS+=   cheetah:${PORTSDIR}/devel/py-cheetah \
        ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup \
        ${PYTHON_SITELIBDIR}/${PYPASTE_EGG}/paste/__init__.py:${PORTSDIR}/www/py-paste \
        ${PYTHON_SITELIBDIR}/${PYPASTEDEPLOY_EGG}/paste/deploy/__init__.py:${PORTSDIR}/www/py-pastedeploy \
        ${PYTHON_SITELIBDIR}/${PYWSGIUTILS_EGG}:${PORTSDIR}/devel/py-wsgiutils \
        ${PYTHON_SITELIBDIR}/twisted/plugins/twisted_web2.py:${PORTSDIR}/www/py-twistedWeb2

# due to devel/py-cheetah
NO_PACKAGE= no, not yet

USE_PYTHON= 2.3+
USE_PYDISTUTILS=    yes
PYDISTUTILS_NOEGGINFO=  yes # XXX convert easy_install support to bsd.python.mk's

SUB_FILES+= pkg-deinstall pkg-install
SUB_LIST+=  PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
        EGG="${PORTNAME}==${PORTVERSION}"

PLIST_SUB=  PYPASTESCRIPT_EGG=${PYPASTESCRIPT_EGG}

PYPASTESCRIPT_EGG=  ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg

.include <bsd.port.pre.mk>

PYPASTE_EGG!=   ${MAKE} -f ${PORTSDIR}/www/py-paste/Makefile -V PYPASTE_EGG
PYPASTEDEPLOY_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-pastedeploy/Makefile -V PYPASTEDEPLOY_EGG
PYWSGIUTILS_EGG!=   ${MAKE} -f ${PORTSDIR}/devel/py-wsgiutils/Makefile -V PYWSGIUTILS_EGG

.include <bsd.port.post.mk>