summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2012-05-03 19:13:49 +0000
committerSebastian Pipping <sping@gentoo.org>2012-05-03 19:13:49 +0000
commit133a4f11495c8bebfb59ec5a191181ffa46743d9 (patch)
tree338557473cd42ad7216b4e8708ebac4e049bbac8 /dev-python
parentFix by jk3064 for mingw headers #409801. (diff)
downloadgentoo-2-133a4f11495c8bebfb59ec5a191181ffa46743d9.tar.gz
gentoo-2-133a4f11495c8bebfb59ec5a191181ffa46743d9.tar.bz2
gentoo-2-133a4f11495c8bebfb59ec5a191181ffa46743d9.zip
dev-python/feedparser: 5.1.2
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/feedparser/ChangeLog7
-rw-r--r--dev-python/feedparser/feedparser-5.1.2.ebuild53
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-python/feedparser/ChangeLog b/dev-python/feedparser/ChangeLog
index 280200daa4eb..f28d38f72cb7 100644
--- a/dev-python/feedparser/ChangeLog
+++ b/dev-python/feedparser/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/feedparser
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/ChangeLog,v 1.34 2012/03/20 17:54:19 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/ChangeLog,v 1.35 2012/05/03 19:13:49 sping Exp $
+
+*feedparser-5.1.2 (03 May 2012)
+
+ 03 May 2012; Sebastian Pipping <sping@gentoo.org> +feedparser-5.1.2.ebuild:
+ Bump to 5.1.2
*feedparser-5.1.1 (20 Mar 2012)
diff --git a/dev-python/feedparser/feedparser-5.1.2.ebuild b/dev-python/feedparser/feedparser-5.1.2.ebuild
new file mode 100644
index 000000000000..26e40c36f108
--- /dev/null
+++ b/dev-python/feedparser/feedparser-5.1.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/feedparser-5.1.2.ebuild,v 1.1 2012/05/03 19:13:49 sping Exp $
+
+EAPI="4"
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_TESTS_RESTRICTED_ABIS="*-jython"
+PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*"
+
+inherit distutils eutils
+
+DESCRIPTION="Parse RSS and Atom feeds in Python"
+HOMEPAGE="http://code.google.com/p/feedparser/ http://pypi.python.org/pypi/feedparser"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+# sgmllib is licensed under PSF-2.
+LICENSE="BSD-2 PSF-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND=""
+
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
+PYTHON_MODNAME="feedparser.py _feedparser_sgmllib.py"
+
+src_prepare() {
+ mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die "Renaming sgmllib3.py failed"
+ epatch "${FILESDIR}/${PN}-5.1-sgmllib.patch"
+
+ sed -e "/import feedparser/isys.path.insert(0, '../build/lib')" -i feedparser/feedparsertest.py
+
+ distutils_src_prepare
+
+ preparation() {
+ if [[ "${PYTHON_ABI}" == 3.* ]]; then
+ 2to3-${PYTHON_ABI} -nw --no-diffs feedparser/feedparsertest.py
+ else
+ # Avoid SyntaxErrors with Python 2.
+ echo "raise ImportError" > feedparser/_feedparser_sgmllib.py
+ fi
+ }
+ python_execute_function -s preparation
+}
+
+src_test() {
+ testing() {
+ cd feedparser || return 1
+ "$(PYTHON)" feedparsertest.py
+ }
+ python_execute_function -s testing
+}