aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-cherrypy-devel/Makefile
blob: 5982c3c329fdc7efe396f52001977a2779a77ef4 (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
# New ports collection makefile for:    py-cherrypy
# Date created:     2006-01-11
# Whom:         Nicola Vitale   <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=   cherrypy
PORTVERSION=    2.2.0
CATEGORIES= www python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   CherryPy-${PORTVERSION:C/\.b$/beta/}

MAINTAINER= nivit@email.it
COMMENT=    A pythonic, object-oriented web development framework

USE_PYTHON= 2.3+
USE_PYDISTUTILS=    yes

LN_OPTS=    -sf
RM_OPTS=    -r

EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
CPEXAMPLES= ${PYTHON_SITELIBDIR}/${PORTNAME}/tutorial

.if !defined(WITH_EXAMPLES)
PLIST_SUB=  PORTEXAMPLES="@comment "
.else
PLIST_SUB=  PORTEXAMPLES=""
.endif

post-install:
.if !defined(WITH_EXAMPLES)
    @${RM} ${RM_OPTS} ${CPEXAMPLES}
.else
    @${MV} ${CPEXAMPLES} ${EXAMPLESDIR} && \
    ${LN} ${LN_OPTS} ${EXAMPLESDIR} ${CPEXAMPLES}
.endif

.include <bsd.port.mk>