2017-01-03 19:28:48 +00:00

48 lines
998 B
Makefile

# $OpenBSD: Makefile,v 1.22 2017/01/03 19:28:48 landry Exp $
COMMENT = session and caching library with wsgi middleware
MODPY_EGG_VERSION = 1.6.2
DISTNAME = Beaker-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:L}
REVISION = 5
CATEGORIES = www devel
HOMEPAGE = http://beaker.readthedocs.org/
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODULES = lang/python
FLAVORS= python3
FLAVOR?=
RUN_DEPENDS = security/py-crypto${MODPY_FLAVOR}
# some TDEP are nissing a python3 FLAVOR
.if ${FLAVOR:Mpython3}
NO_TEST = Yes
.else
# https://pypi.python.org/simple/waitress/ is needed
TEST_DEPENDS = databases/py-sqlalchemy \
devel/py-coverage${MODPY_FLAVOR} \
devel/py-mock${MODPY_FLAVOR} \
devel/py-nose${MODPY_FLAVOR} \
misc/py-memcached${MODPY_FLAVOR} \
www/py-webtest \
${RUN_DEPENDS}
.endif
# needs a running memcached instance in 127.0.0.1:11211
TEST_IS_INTERACTIVE = Yes
pre-test:
perl -pi -e 's|pycryptopp,||g' ${WRKSRC}/setup.py
.include <bsd.port.mk>