From owner-svn-ports-head@FreeBSD.ORG Sun Feb 23 12:16:23 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73F65368; Sun, 23 Feb 2014 12:16:23 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5EFD116B6; Sun, 23 Feb 2014 12:16:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1NCGNhM012635; Sun, 23 Feb 2014 12:16:23 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1NCGN3t012634; Sun, 23 Feb 2014 12:16:23 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201402231216.s1NCGN3t012634@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 23 Feb 2014 12:16:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r345700 - head/mail/py-spf X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2014 12:16:23 -0000 Author: sunpoet Date: Sun Feb 23 12:16:22 2014 New Revision: 345700 URL: http://svnweb.freebsd.org/changeset/ports/345700 QAT: https://qat.redports.org/buildarchive/r345700/ Log: - Allow build with Python 3.x - Bump PORTREVISION Modified: head/mail/py-spf/Makefile Modified: head/mail/py-spf/Makefile ============================================================================== --- head/mail/py-spf/Makefile Sun Feb 23 12:13:11 2014 (r345699) +++ head/mail/py-spf/Makefile Sun Feb 23 12:16:22 2014 (r345700) @@ -3,6 +3,7 @@ PORTNAME= spf PORTVERSION= 2.0.8 +PORTREVISION= 1 CATEGORIES= mail python MASTER_SITES= SF/pymilter/py${PORTNAME}/py${PORTNAME}-${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,8 +14,6 @@ COMMENT= Python implementation of the RF LICENSE= PSFL -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns - OPTIONS_DEFINE= DOCS OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options @@ -28,10 +27,18 @@ PORTDOCS= CHANGELOG README SHEBANG_FILES= spf.py +.include + +.if ${PYTHON_REL} < 300 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns +.else +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dns3>=0:${PORTSDIR}/dns/py-dns3 +.endif + post-install: ${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py ${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DOCSDIR}/ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ -.include +.include