diff options
author | wiz <wiz@pkgsrc.org> | 2017-02-25 17:40:17 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2017-02-25 17:40:17 +0000 |
commit | d6438259637af3ec8b9e51c04c2fdb7b79544621 (patch) | |
tree | d64478e7b131b2bbe0c4d5411fee0d9866163ea7 | |
parent | 18b1bfb9780c215b4198f3a78bf5e7edc26a53dd (diff) | |
download | pkgsrc-d6438259637af3ec8b9e51c04c2fdb7b79544621.tar.gz |
Fix package to support python-3.x and add missing dependency for 2.x.
Bump PKGREVISION.
-rw-r--r-- | mail/py-spf/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/py-spf/Makefile b/mail/py-spf/Makefile index ce770d00fce..f34cda902b7 100644 --- a/mail/py-spf/Makefile +++ b/mail/py-spf/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.9 2016/10/27 12:25:05 jperkin Exp $ +# $NetBSD: Makefile,v 1.10 2017/02/25 17:40:17 wiz Exp $ VERSION= 2.0.12 DISTNAME= pyspf-${VERSION}t PKGNAME= ${PYPKGPREFIX}-spf-${VERSION} +PKGREVISION= 1 CATEGORIES= mail python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/} @@ -14,9 +15,14 @@ LICENSE= python-software-foundation EGG_NAME= ${DISTNAME:S/t$//} WRKSRC= ${WRKDIR}/${DISTNAME:S/t$//} -DEPENDS+= ${PYPKGPREFIX}-pydns-[0-9]*:../../net/py-pydns +.include "../../lang/python/pyversion.mk" -PYTHON_VERSIONS_ACCEPTED= 27 # py-pydns +.if ${PYVERSSUFFIX} == "2.7" +DEPENDS+= ${PYPKGPREFIX}-pydns-[0-9]*:../../net/py-pydns +DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress +.else +DEPENDS+= ${PYPKGPREFIX}-py3dns-[0-9]*:../../net/py-py3dns +.endif .include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk" |