forked from Lainports/freebsd-ports
- Update PORTVERSION and distinfo checksum (1.1.0) - Switch to GITHUB for DISTFILES (includes tests) - Add TEST_DEPENDS and test target - Limit Python versions to -3.3. 3.4+ is a noop - Enable NO_ARCH (achitecture independent)
27 lines
522 B
Makefile
27 lines
522 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= shutilwhich
|
|
PORTVERSION= 1.1.0
|
|
CATEGORIES= sysutils python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= shutil.which for those not using Python 3.3
|
|
|
|
LICENSE= PSFL
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
|
|
|
|
USES= python:-3.3
|
|
USE_GITHUB= yes
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
GH_ACCOUNT= mbr
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs
|
|
|
|
.include <bsd.port.mk>
|