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

37 lines
928 B
Makefile

# $OpenBSD: Makefile,v 1.24 2019/05/15 12:04:38 kmos Exp $
COMMENT = Python interface to sendmail milter API
MODPY_EGG_VERSION = 1.0
DISTNAME = pymilter-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/}
CATEGORIES = mail
HOMEPAGE = http://www.bmsi.com/python/milter.html
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = milter ${MODPY_WANTLIB} pthread
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pymilter/}
MODULES = lang/python
CFLAGS += -I${LOCALBASE}/include
LIB_DEPENDS = mail/sendmail,-libmilter
TEST_DEPENDS = net/py-dns
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-milter
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-milter
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-milter
${INSTALL_DATA} ${WRKSRC}/sample.py ${PREFIX}/share/examples/py-milter
do-test: fake
@cd ${WRKSRC} && ${MAKE_ENV} \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./test.py
.include <bsd.port.mk>