2e7ecebeec
Based on a diff from Wen Heping (wenheping-at-gmail-dot-com) to ports@
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2011/09/18 17:58:07 fgsch Exp $
|
|
|
|
COMMENT = wsgi request and response object
|
|
|
|
MODPY_EGG_VERSION = 1.1.1
|
|
DISTNAME = WebOb-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME:L}
|
|
|
|
CATEGORIES = www devel
|
|
|
|
HOMEPAGE = http://webob.org/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_PYPI:=W/WebOb/}
|
|
EXTRACT_SUFX = .zip
|
|
|
|
MODULES = lang/python
|
|
|
|
REGRESS_DEPENDS = devel/py-nose \
|
|
www/py-webtest
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
DOCS = differences.txt do-it-yourself.txt index.txt news.txt \
|
|
reference.txt
|
|
EXAMPLES = comment-example.txt file-example.txt jsonrpc-example.txt \
|
|
wiki-example.txt
|
|
|
|
post-extract:
|
|
find ${WRKSRC} -perm 0666 -exec chmod 0644 {} \;
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-webob
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-webob
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${DOCS} \
|
|
${PREFIX}/share/doc/py-webob
|
|
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${EXAMPLES} \
|
|
${PREFIX}/share/examples/py-webob
|
|
|
|
do-regress:
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests lib tests
|
|
|
|
.include <bsd.port.mk>
|