diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-04-05 08:31:58 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-04-05 08:31:58 +0000 |
commit | 7db9197832d628b5c3885aab4f6af1d839d3c49f (patch) | |
tree | 9f45597d5bf2e33a1ddf0eaddcad78cd2a063e8b /dev-python/pyspf | |
parent | Version bump. Add graph use flag for enabling entropy graphing support. (diff) | |
download | gentoo-2-7db9197832d628b5c3885aab4f6af1d839d3c49f.tar.gz gentoo-2-7db9197832d628b5c3885aab4f6af1d839d3c49f.tar.bz2 gentoo-2-7db9197832d628b5c3885aab4f6af1d839d3c49f.zip |
Patch acquired from bugs.launchpad.net/pypolicyd-spf/+bug/832480, fixes Bug #463892 + migration of eclass
(Portage version: 2.1.11.60/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/pyspf')
-rw-r--r-- | dev-python/pyspf/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/pyspf/files/pyspf-2.0.7-catch_unicode.patch | 22 | ||||
-rw-r--r-- | dev-python/pyspf/pyspf-2.0.7-r1.ebuild | 30 |
3 files changed, 60 insertions, 1 deletions
diff --git a/dev-python/pyspf/ChangeLog b/dev-python/pyspf/ChangeLog index 3f086e14c0b5..f5422346f0b0 100644 --- a/dev-python/pyspf/ChangeLog +++ b/dev-python/pyspf/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/pyspf # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/ChangeLog,v 1.21 2013/03/23 11:25:15 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/ChangeLog,v 1.22 2013/04/05 08:31:58 idella4 Exp $ + +*pyspf-2.0.7-r1 (05 Apr 2013) + + 05 Apr 2013; Ian Delaney <idella4@gentoo.org> + +files/pyspf-2.0.7-catch_unicode.patch, +pyspf-2.0.7-r1.ebuild: + Patch acquired from bugs.launchpad.net/pypolicyd-spf/+bug/832480, fixes Bug + #463892 + migration of eclass 23 Mar 2013; Agostino Sarubbo <ago@gentoo.org> pyspf-2.0.7.ebuild: Stable for x86, wrt bug #459542 diff --git a/dev-python/pyspf/files/pyspf-2.0.7-catch_unicode.patch b/dev-python/pyspf/files/pyspf-2.0.7-catch_unicode.patch new file mode 100644 index 000000000000..eb56594260c2 --- /dev/null +++ b/dev-python/pyspf/files/pyspf-2.0.7-catch_unicode.patch @@ -0,0 +1,22 @@ +See https://bugs.launchpad.net/pypolicyd-spf/+bug/832480 +diff -ur pyspf-2.0.7.orig/spf.py pyspf-2.0.7/spf.py +--- spf.py 2012-02-03 10:26:20.000000000 +0800 ++++ spf.py 2013-04-05 15:56:53.370995142 +0800 +@@ -1129,7 +1129,7 @@ + try: + return [''.join(s.decode("ascii") for s in a) + for a in self.dns(domainname, 'TXT')] +- except UnicodeEncodeError: ++ except UnicodeError: + raise PermError('Non-ascii character in SPF TXT record.') + return [] + def dns_99(self, domainname): +@@ -1138,7 +1138,7 @@ + try: + return [''.join(s.decode("ascii") for s in a) + for a in self.dns(domainname, 'SPF')] +- except UnicodeEncodeError: ++ except UnicodeError: + raise PermError('Non-ascii character in SPF record.') + return [] + diff --git a/dev-python/pyspf/pyspf-2.0.7-r1.ebuild b/dev-python/pyspf/pyspf-2.0.7-r1.ebuild new file mode 100644 index 000000000000..623901e5ce9a --- /dev/null +++ b/dev-python/pyspf/pyspf-2.0.7-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/pyspf-2.0.7-r1.ebuild,v 1.1 2013/04/05 08:31:58 idella4 Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit distutils-r1 + +DESCRIPTION="Python implementation of the Sender Policy Framework (SPF) protocol" +HOMEPAGE="http://pypi.python.org/pypi/pyspf" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/authres[${PYTHON_USEDEP}] + || ( dev-python/pydns:2 dev-python/pydns:0 )" +DEPEND="${DEPEND} + test? ( dev-python/pyyaml[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${P}-catch_unicode.patch ) + +python_test() { + pushd test &> /dev/null + "${PYTHON}" testspf.py || die + popd &> /dev/null +} |