4fd8df0293
PR: 164794 Submitted by: Olivier Duchateau <duchateau.olivier@gmail.com> Approved by: maintainer timeout
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# 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>
|