openbsd-ports/net/py-adns/Makefile
jasper ff826033d0 import py-adns 1.2.1
py-adns is a Python interface to the GNU adns asynchronous DNS resolver
library.
2008-04-01 13:50:36 +00:00

34 lines
678 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/04/01 13:50:36 jasper Exp $
SHARED_ONLY= Yes
COMMENT= python interface to adns
V= 1.2.1
DISTNAME= adns-python-$V
PKGNAME= py-adns-$V
HOMEPAGE= http://adns-python.googlecode.com/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/files/
MODULES= lang/python
LIB_DEPENDS= adns::net/adns
NO_REGRESS= Yes
pre-configure:
perl -pi -e 's,!!PREFIX!!,${PREFIX},g' ${WRKSRC}/setup.py
find ${WRKSRC} -name \*.py | \
xargs perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g;' \
-e 's,/usr/bin/python,${MODPY_BIN},g'
.include <bsd.port.mk>