summaryrefslogtreecommitdiff
path: root/mail/py-spf
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-04-17 12:02:36 +0000
committeradam <adam@pkgsrc.org>2020-04-17 12:02:36 +0000
commit5d57bb8d4a7d16ca0368f092227580313b3dde0a (patch)
tree38410faa0a2e18982d2bf6e11041d3d5c4607155 /mail/py-spf
parent3f251e6f2e6d7c479df52fa166c9d6cda443cdef (diff)
downloadpkgsrc-5d57bb8d4a7d16ca0368f092227580313b3dde0a.tar.gz
py-spf: fix PKGNAME and DEPENDS for Python 2.7
Diffstat (limited to 'mail/py-spf')
-rw-r--r--mail/py-spf/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/py-spf/Makefile b/mail/py-spf/Makefile
index 3dd78ee70fb..985c7652ec6 100644
--- a/mail/py-spf/Makefile
+++ b/mail/py-spf/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2020/04/17 11:27:36 adam Exp $
+# $NetBSD: Makefile,v 1.12 2020/04/17 12:02:36 adam Exp $
DISTNAME= pyspf-2.0.14
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
CATEGORIES= mail python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/}
@@ -10,11 +10,12 @@ HOMEPAGE= https://github.com/sdgathman/pyspf
COMMENT= SPF (Sender Policy Framework) implemented in Python
LICENSE= python-software-foundation
+DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
+TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
+
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
-DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
-.else
-DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
+DEPENDS+= ${PYPKGPREFIX}-ipaddr-[0-9]*:../../devel/py-ipaddr
.endif
USE_LANGUAGES= # none