freebsd-ports/devel/py-sanetime/Makefile
Kubilay Kocak 8b5096dd43 - Update to 4.2.3
- Add TEST_DEPENDS and regression-test target
- Add OPTIONS (TESTS)
- Limit USE_PYTHON version
- Tweak setup.py to allow use with dateutil > 2.0 (with comment)

Approved by:    rm (mentor)
2013-02-12 12:24:28 +00:00

35 lines
884 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= sanetime
PORTVERSION= 4.2.3
CATEGORIES= devel python astro
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= A sane date/time Python interface, with Django support
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:${PORTSDIR}/devel/py-dateutil \
${PYTHON_PKGNAMEPREFIX}pytz>=2010:${PORTSDIR}/devel/py-pytz
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2:${PORTSDIR}/devel/py-unittest2
OPTIONS_DEFINE= TESTS
TESTS_DESC= Include tools for unit tests
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTESTS}
BUILD_DEPENDS:= ${TEST_DEPENDS}
.endif
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
regression-test: build
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>