ports/devel/py-entrypoints/Makefile
Antoine Brodin 84c2e6cac5 New port: devel/py-entrypoints
Discover and load entry points from installed packages.
WWW: https://github.com/takluyver/entrypoints
2017-01-09 18:49:17 +00:00

35 lines
722 B
Makefile

# $FreeBSD$
PORTNAME= entrypoints
PORTVERSION= 0.2.2
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Discover and load entry points from installed packages
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest
USE_GITHUB= yes
GH_ACCOUNT= takluyver
USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}configparser>=3.5:devel/py-configparser
.endif
post-extract:
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
do-test:
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYTHON_VER})
.include <bsd.port.post.mk>