2011-09-16 05:24:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2011/09/16 09:24:56 espie Exp $
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
COMMENT = libraries for WSGI development
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
MODPY_EGG_VERSION = 0.7
|
|
|
|
DISTNAME = WSGIUtils-${MODPY_EGG_VERSION}
|
|
|
|
PKGNAME = py-${DISTNAME:L}
|
2011-09-16 05:24:48 -04:00
|
|
|
REVISION = 4
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
CATEGORIES = devel textproc www
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
HOMEPAGE = http://www.owlfish.com/software/wsgiutils/
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
MAINTAINER = Martynas Venckus <martynas@openbsd.org>
|
2007-06-24 17:54:42 -04:00
|
|
|
|
|
|
|
# BSD
|
2011-03-05 17:32:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
MASTER_SITES = http://www.owlfish.com/software/wsgiutils/downloads/
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
MODULES = lang/python
|
2007-06-24 17:54:42 -04:00
|
|
|
|
2011-03-05 17:32:32 -05:00
|
|
|
MODPY_SETUPTOOLS = Yes
|
2007-06-24 17:54:42 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
rm -fr ${WRKSRC}/lib/WSGIUtils.egg-info
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-wsgiutils
|
|
|
|
cd ${WRKSRC}/documentation && \
|
2011-03-05 17:32:32 -05:00
|
|
|
pax -rw * ${PREFIX}/share/doc/py-wsgiutils/
|
2007-06-24 17:54:42 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wsgiutils
|
2011-03-05 17:32:32 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* \
|
|
|
|
${PREFIX}/share/examples/py-wsgiutils/
|
2007-06-24 17:54:42 -04:00
|
|
|
|
|
|
|
do-regress:
|
2011-03-05 17:32:32 -05:00
|
|
|
cd ${WRKSRC}/tests && touch __init__.py \
|
|
|
|
CookieTests/__init__.py RequestObjectTests/__init__.py
|
2007-06-24 17:54:42 -04:00
|
|
|
cd ${WRKSRC} && ${MODPY_BIN} runtests.py
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|