openbsd-ports/www/py-paste/Makefile
martynas 97f2e1cbc9 - update to py-paste-1.6
- fix cgi regression tests (noticed by simon@)
ok simon@
2008-01-13 17:04:07 +00:00

46 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2008/01/13 17:04:07 martynas Exp $
COMMENT= tools for using web server gateway interface stack
VERSION= 1.6
DISTNAME= Paste-${VERSION}
PKGNAME= py-paste-${VERSION}
CATEGORIES= www
HOMEPAGE= http://pythonpaste.org/
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://cheeseshop.python.org/packages/source/P/Paste/
MODULES= lang/python
RUN_DEPENDS= ::www/py-flup
REGRESS_DEPENDS= ::devel/py-py \
::www/py-flup
SUBST_VARS= VERSION
MODPY_SETUPTOOLS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-paste
cd ${WRKSRC}/docs && \
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-paste/{} \; && \
find . ! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/py-paste/{} \;
pre-regress:
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' \
${WRKSRC}/tests/cgiapp_data/*.cgi
do-regress:
cd ${WRKSRC} && py.test .
.include <bsd.port.mk>