openbsd-ports/net/py-adns/Makefile
sthen d1c6f80880 use REVISION, checked with before/after make show=PKGNAMES (plus some
extra-careful checking where there are complicated PSEUDO_FLAVORS).
2010-07-12 22:07:37 +00:00

36 lines
704 B
Makefile

# $OpenBSD: Makefile,v 1.4 2010/07/12 22:07:41 sthen Exp $
SHARED_ONLY= Yes
COMMENT= python interface to adns
V= 1.2.1
DISTNAME= adns-python-$V
PKGNAME= py-adns-$V
REVISION= 0
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
CATEGORIES = net
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>