3af2b2e115
thanks and ok sthen@
36 lines
832 B
Makefile
36 lines
832 B
Makefile
# $OpenBSD: Makefile,v 1.8 2009/06/04 09:53:56 benoit Exp $
|
|
|
|
COMMENT= DNS toolkit for Python
|
|
|
|
MODPY_EGG_VERSION= 1.6.0
|
|
DISTNAME= dnspython-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}p0
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.dnspython.org/
|
|
|
|
MAINTAINER= Will Maier <wcmaier@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/kits/${MODPY_EGG_VERSION}/
|
|
|
|
MODULES= lang/python
|
|
|
|
post-install:
|
|
@perl -pi -e "s,/usr/bin/env python,${MODPY_BIN}," \
|
|
${WRKSRC}/examples/*.py
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-dnspython
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
|
|
${PREFIX}/share/examples/py-dnspython
|
|
|
|
do-regress:
|
|
@cd ${WRKSRC}/tests && env PYTHONPATH=../ \
|
|
make check PYTHON=${MODPY_BIN}
|
|
|
|
.include <bsd.port.mk>
|