d634d241fb
- Update PORTVERSION and distinfo checksum (0.3.6) - Update dateutil RUN_DEPENDS version to match that in setup.py - Add mock to TEST_DEPENDS (requirements.txt) - post-extract: Remove binary files and cache dirs from WRKSRC [1] - Patch setup.py to add test depends and add support for test command - Update test target, using canonical setuptools test command - Enable NO_ARCH (architecture independent) Changes: https://github.com/spulec/freezegun/blob/0.3.6/CHANGELOG [1] https://github.com/spulec/freezegun/pull/139 [2] https://github.com/spulec/freezegun/issues/134
33 lines
924 B
Makefile
33 lines
924 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= freezegun
|
|
PORTVERSION= 0.3.6
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Let your Python tests travel through time
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=2.0:${PORTSDIR}/devel/py-dateutil
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
post-extract:
|
|
${FIND} ${WRKSRC} -type d -name __pycache__ -or -type f -name '*.py[co]' -exec ${RM} -rf {} +
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|