summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2010-07-18 08:40:36 +0000
committerDaniel Black <dragonheart@gentoo.org>2010-07-18 08:40:36 +0000
commit42b5164a4d8640808bc95cc3d53017305476467c (patch)
tree4a92c70fe3e65fb851a7c9067f73aedfc2e6c07f /dev-python/pyspf
parentNew Addition (diff)
downloadgentoo-2-42b5164a4d8640808bc95cc3d53017305476467c.tar.gz
gentoo-2-42b5164a4d8640808bc95cc3d53017305476467c.tar.bz2
gentoo-2-42b5164a4d8640808bc95cc3d53017305476467c.zip
python version 3 friendlyness
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyspf')
-rw-r--r--dev-python/pyspf/ChangeLog10
-rw-r--r--dev-python/pyspf/files/2.0.5-deprecated.patch16
-rw-r--r--dev-python/pyspf/pyspf-2.0.5-r1.ebuild25
3 files changed, 49 insertions, 2 deletions
diff --git a/dev-python/pyspf/ChangeLog b/dev-python/pyspf/ChangeLog
index 19b55504d679..b7522c05e2ba 100644
--- a/dev-python/pyspf/ChangeLog
+++ b/dev-python/pyspf/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pyspf
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/ChangeLog,v 1.7 2009/11/19 16:18:20 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/ChangeLog,v 1.8 2010/07/18 08:40:36 dragonheart Exp $
+
+*pyspf-2.0.5-r1 (18 Jul 2010)
+
+ 18 Jul 2010; Daniel Black <dragonheart@gentoo.org>
+ +files/2.0.5-deprecated.patch, +pyspf-2.0.5-r1.ebuild:
+ python version 3 friendlyness
19 Nov 2009; Markus Meier <maekke@gentoo.org> pyspf-2.0.5.ebuild:
amd64/x86 stable, bug #293032
diff --git a/dev-python/pyspf/files/2.0.5-deprecated.patch b/dev-python/pyspf/files/2.0.5-deprecated.patch
new file mode 100644
index 000000000000..2b5c344c9310
--- /dev/null
+++ b/dev-python/pyspf/files/2.0.5-deprecated.patch
@@ -0,0 +1,16 @@
+--- /tmp/spf.py 2010-07-18 18:15:57.000000000 +1000
++++ spf.py 2010-07-18 18:16:22.000000000 +1000
+@@ -209,13 +209,6 @@
+ 'ambiguous': 'No error, but results may vary'
+ }
+
+-# support pre 2.2.1....
+-try:
+- bool, True, False = bool, True, False
+-except NameError:
+- False, True = 0, 1
+- def bool(x): return not not x
+-# ...pre 2.2.1
+
+ DELEGATE = None
+
diff --git a/dev-python/pyspf/pyspf-2.0.5-r1.ebuild b/dev-python/pyspf/pyspf-2.0.5-r1.ebuild
new file mode 100644
index 000000000000..4c2f7aec2ac6
--- /dev/null
+++ b/dev-python/pyspf/pyspf-2.0.5-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyspf/pyspf-2.0.5-r1.ebuild,v 1.1 2010/07/18 08:40:36 dragonheart Exp $
+
+EAPI="2"
+inherit distutils eutils
+
+DESCRIPTION="Python implementation of the Sender Policy Framework (SPF) protocol"
+SRC_URI="mirror://sourceforge/pymilter/${P}.tar.gz
+ mirror://gentoo/${P}-2to3.patch.gz"
+HOMEPAGE="http://cheeseshop.python.org/pypi/pyspf"
+
+IUSE=""
+SLOT="0"
+LICENSE="PSF-2.4"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-python/pydns"
+RDEPEND="dev-python/pydns"
+
+src_prepare() {
+ epatch "${DISTDIR}"/${P}-2to3.patch.gz \
+ "${FILESDIR}"/2.0.5-deprecated.patch
+ distutils_src_prepare
+}