summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorwiz <wiz>2017-02-25 17:40:17 +0000
committerwiz <wiz>2017-02-25 17:40:17 +0000
commit44575f1e35796c8eabd20f029bf383f4644aa0b3 (patch)
treed64478e7b131b2bbe0c4d5411fee0d9866163ea7 /mail
parent4e4f90dff7763456b61a4a0ad87cc5d4fa785853 (diff)
downloadpkgsrc-44575f1e35796c8eabd20f029bf383f4644aa0b3.tar.gz
Fix package to support python-3.x and add missing dependency for 2.x.
Bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/py-spf/Makefile12
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"