aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-pylons/Makefile
blob: 59d143b1c8b2cbeb5011cf4f16bd42f6b922771b (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
# New ports collection makefile for:    py-pylons
# Date created:     Thu Jun 21 16:05:21 MSD 2007
# Whom:         Denis Shaposhnikov <dsh@vlink.ru>
#
# $FreeBSD$
#

PORTNAME=   pylons
PORTVERSION=    0.9.6.2
CATEGORIES= www python
MASTER_SITES=   http://pylonshq.com/download/0.9.6.2/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   Pylons-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Pylons Web Framework

BUILD_DEPENDS=  ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
RUN_DEPENDS=    ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
        ${PYTHON_PKGNAMEPREFIX}Paste>=1.3:${PORTSDIR}/www/py-paste \
        ${PYTHON_PKGNAMEPREFIX}PasteDeploy>=1.3:${PORTSDIR}/www/py-pastedeploy \
        ${PYTHON_PKGNAMEPREFIX}PasteScript>=1.3.2:${PORTSDIR}/www/py-pastescript \
        ${PYTHON_PKGNAMEPREFIX}beaker>=0.6.3:${PORTSDIR}/www/py-beaker \
        ${PYTHON_PKGNAMEPREFIX}decorator>=2.0.1:${PORTSDIR}/devel/py-decorator \
        ${PYTHON_PKGNAMEPREFIX}formencode>=0.7:${PORTSDIR}/www/py-formencode \
        ${PYTHON_PKGNAMEPREFIX}mako>=0.1.5:${PORTSDIR}/textproc/py-mako \
        ${PYTHON_PKGNAMEPREFIX}nose>=0.9.2:${PORTSDIR}/devel/py-nose \
        ${PYTHON_PKGNAMEPREFIX}routes>=1.6.3:${PORTSDIR}/www/py-routes \
        ${PYTHON_PKGNAMEPREFIX}simplejson>=1.7.1:${PORTSDIR}/devel/py-simplejson \
        ${PYTHON_PKGNAMEPREFIX}webhelpers>=0.3.2:${PORTSDIR}/www/py-webhelpers \
        myghty>=1.1:${PORTSDIR}/www/myghty

USE_PYTHON= 2.5
USE_PYDISTUTILS=    yes
PYDISTUTILS_NOEGGINFO=1

PYPYLONS_EGG=   Pylons-${PORTVERSION}-py${PYTHON_VER}.egg

PLIST_SUB=  EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
        PYPYLONS_EGG=${PYPYLONS_EGG}

EASY_INSTALL_CMD?=  easy_install-${PYTHON_VER}

post-install:
    ${FIND} ${PYTHON_SITELIBDIR}/${PYPYLONS_EGG} \
        -type d -exec ${CHMOD} 755 {} +
    ${FIND} ${PYTHON_SITELIBDIR}/${PYPYLONS_EGG} \
        -type f -exec ${CHMOD} ${SHAREMODE} {} +

.include <bsd.port.mk>