aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-werkzeug/Makefile
blob: adb122532a24f40818d6cd266a3485fc13caff67 (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
# Ports collection makefile for:    py-werkzeug
# Date created:             12 January 2010
# Whom:                 Moggie <moggie@elasticmind.net>
#
# $FreeBSD$
#

PORTNAME=   werkzeug
PORTVERSION=    0.8.3
CATEGORIES= www python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   Werkzeug-${DISTVERSION}

MAINTAINER= moggie@elasticmind.net
COMMENT=    Python utilities collection for building WSGI applications

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/LICENSE

USE_PYTHON= 2.6+
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    Werkzeug
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
PYDISTUTILS_NOEGGINFO=  yes

EXAMPLESDIR=    ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}

.include <bsd.port.pre.mk>

# Avoid to install patch files backup
post-patch:
    @cd ${WRKSRC} && \
        ${FIND} . -type f -name '*.orig' -exec ${RM} -f \{\} \; 

.if !defined(NOPORTEXAMPLES)
post-build:
# Bytecode
    ${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \
    ${PYTHON_CMD} -O -m compileall ${WRKSRC}/examples

post-install:
    ${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>