kmos c45cd79fc7 Add RUN_DEPENDS to TEST_DEPENDS automatically for ports using the
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@
2019-05-15 12:04:34 +00:00

32 lines
702 B
Makefile

# $OpenBSD: Makefile,v 1.4 2019/05/15 12:04:38 kmos Exp $
COMMENT = QR Code image generator
MODPY_EGG_VERSION = 6.1
DISTNAME = qrcode-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
CATEGORIES = graphics textproc
MAINTAINER = Ingo Feinerer <feinerer@logic.at>
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS = devel/py-six${MODPY_FLAVOR} \
graphics/py-Pillow${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
post-install:
mv ${PREFIX}/bin/qr ${PREFIX}/bin/qr${MODPY_BIN_SUFFIX}
mv ${PREFIX}/man/man1/qr.1 ${PREFIX}/man/man1/qr${MODPY_BIN_SUFFIX}.1
.include <bsd.port.mk>