pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/py-spf Fix package to support python-3.x and add ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ccdc0db18a05
branches:  trunk
changeset: 359035:ccdc0db18a05
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Feb 25 17:40:17 2017 +0000

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

Bump PKGREVISION.

diffstat:

 mail/py-spf/Makefile |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 88a468437020 -r ccdc0db18a05 mail/py-spf/Makefile
--- a/mail/py-spf/Makefile      Sat Feb 25 17:39:36 2017 +0000
+++ b/mail/py-spf/Makefile      Sat Feb 25 17:40:17 2017 +0000
@@ -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 @@
 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