64d7d11924
martynas@ ok.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2011/03/05 22:32:32 fgsch Exp $
|
|
|
|
COMMENT = libraries for WSGI development
|
|
|
|
MODPY_EGG_VERSION = 0.7
|
|
DISTNAME = WSGIUtils-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME:L}
|
|
REVISION = 2
|
|
|
|
CATEGORIES = devel textproc www
|
|
|
|
HOMEPAGE = http://www.owlfish.com/software/wsgiutils/
|
|
|
|
MAINTAINER = Martynas Venckus <martynas@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES = http://www.owlfish.com/software/wsgiutils/downloads/
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
post-install:
|
|
rm -fr ${WRKSRC}/lib/WSGIUtils.egg-info
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-wsgiutils
|
|
cd ${WRKSRC}/documentation && \
|
|
pax -rw * ${PREFIX}/share/doc/py-wsgiutils/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wsgiutils
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* \
|
|
${PREFIX}/share/examples/py-wsgiutils/
|
|
|
|
do-regress:
|
|
cd ${WRKSRC}/tests && touch __init__.py \
|
|
CookieTests/__init__.py RequestObjectTests/__init__.py
|
|
cd ${WRKSRC} && ${MODPY_BIN} runtests.py
|
|
|
|
.include <bsd.port.mk>
|