sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

33 lines
581 B
Makefile

# $OpenBSD: Makefile,v 1.2 2019/04/28 20:51:44 sthen Exp $
COMMENT= enumerate IP addresses on the local network adapters
MODPY_EGG_VERSION= 0.1.6
DISTNAME= ifaddr-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION= 0
CATEGORIES= net
# MIT
PERMIT_PACKAGE_CDROM= Yes
MODULES= lang/python
MODPY_PI= Yes
MODPY_SETUPTOOLS= Yes
TEST_DEPENDS= devel/py-nose${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
.if ! ${FLAVOR:Mpython3}
RUN_DEPENDS += net/py-ipaddress
.endif
do-test:
cd ${WRKSRC} && nosetests${MODPY_BIN_SUFFIX} ifaddr/test_ifaddr.py
.include <bsd.port.mk>