lang/python port module. I've not yet come up with a port that would not need this and one can always set MODPY_TESTDEP to "no" to prevent the module from touching TEST_DEPENDS. Idea from afresh1 who pointed out the cpan module already does this. aja "I support this move." OK sthen@
34 lines
685 B
Makefile
34 lines
685 B
Makefile
# $OpenBSD: Makefile,v 1.5 2019/05/15 12:04:38 kmos Exp $
|
|
|
|
COMMENT = capture c-level output in context managers
|
|
|
|
MODPY_EGG_VERSION = 1.0.2
|
|
DISTNAME = wurlitzer-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
REVISION = 1
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/minrk/wurlitzer
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
MODPY_PYTEST_ARGS = test.py
|
|
|
|
TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR}
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
pre-configure:
|
|
cd ${WRKDIR}; ${CC} ${CFLAGS} ${FILESDIR}/getsize.c -o getsize; \
|
|
sed -i "s,SIZE_OF_FILE,$$(./getsize),g" ${WRKSRC}/wurlitzer.py
|
|
|
|
.include <bsd.port.mk>
|