pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/py-spf



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Feb 25 17:40:17 UTC 2017

Modified Files:
        pkgsrc/mail/py-spf: Makefile

Log Message:
Fix package to support python-3.x and add missing dependency for 2.x.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/mail/py-spf/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/py-spf/Makefile
diff -u pkgsrc/mail/py-spf/Makefile:1.9 pkgsrc/mail/py-spf/Makefile:1.10
--- pkgsrc/mail/py-spf/Makefile:1.9     Thu Oct 27 12:25:05 2016
+++ pkgsrc/mail/py-spf/Makefile Sat Feb 25 17:40:17 2017
@@ -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"



Home | Main Index | Thread Index | Old Index