openbsd-ports/www/py-django/Makefile
2013-03-11 11:35:43 +00:00

33 lines
759 B
Makefile

# $OpenBSD: Makefile,v 1.27 2013/03/11 11:44:48 espie Exp $
COMMENT = high-level Python web framework
MODPY_EGG_VERSION = 1.4.5
LNAME = django
DISTNAME = Django-${MODPY_EGG_VERSION}
PKGNAME = py-${LNAME}-${MODPY_EGG_VERSION}
CATEGORIES = www
HOMEPAGE = http://www.djangoproject.com/
MAINTAINER = Ryan Boggs <rmboggs@gmail.com>
# BSD License
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${HOMEPAGE}/m/releases/${MODPY_EGG_VERSION:R}/
MODULES = lang/python
SUBST_VARS += LNAME
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${LNAME}
cd ${WRKSRC}/docs && pax -rw * ${PREFIX}/share/doc/${LNAME}
do-test:
cd ${WRKSRC} && env LC_CTYPE=en_US.UTF-8 PYTHONPATH=. \
${MODPY_BIN} tests/runtests.py --settings=test_sqlite
.include <bsd.port.mk>