summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2012-04-19 06:32:57 +0000
committerPatrick Lauer <patrick@gentoo.org>2012-04-19 06:32:57 +0000
commit6c9bd19a828d4bbddbdcc5f796b9491cb4ab72a3 (patch)
tree92b8d914c5f698efec8f52759c111a97ad758132 /dev-python/scrapy
parentVersion bump. (diff)
downloadgentoo-2-6c9bd19a828d4bbddbdcc5f796b9491cb4ab72a3.tar.gz
gentoo-2-6c9bd19a828d4bbddbdcc5f796b9491cb4ab72a3.tar.bz2
gentoo-2-6c9bd19a828d4bbddbdcc5f796b9491cb4ab72a3.zip
Bump for #412315
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/scrapy')
-rw-r--r--dev-python/scrapy/ChangeLog7
-rw-r--r--dev-python/scrapy/scrapy-0.14.2.ebuild76
2 files changed, 82 insertions, 1 deletions
diff --git a/dev-python/scrapy/ChangeLog b/dev-python/scrapy/ChangeLog
index 7eb545e18b91..3d4ac2ddae48 100644
--- a/dev-python/scrapy/ChangeLog
+++ b/dev-python/scrapy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/scrapy
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/ChangeLog,v 1.5 2012/02/21 13:01:03 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/ChangeLog,v 1.6 2012/04/19 06:32:57 patrick Exp $
+
+*scrapy-0.14.2 (19 Apr 2012)
+
+ 19 Apr 2012; Patrick Lauer <patrick@gentoo.org> +scrapy-0.14.2.ebuild:
+ Bump for #412315
*scrapy-0.14.1 (21 Feb 2012)
diff --git a/dev-python/scrapy/scrapy-0.14.2.ebuild b/dev-python/scrapy/scrapy-0.14.2.ebuild
new file mode 100644
index 000000000000..865a01dbbad2
--- /dev/null
+++ b/dev-python/scrapy/scrapy-0.14.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/scrapy-0.14.2.ebuild,v 1.1 2012/04/19 06:32:57 patrick Exp $
+
+EAPI="4"
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-pypy-*"
+DISTUTILS_SRC_TEST="setup.py"
+inherit distutils
+
+MY_PN="Scrapy"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A high-level Python Screen Scraping framework"
+HOMEPAGE="http://scrapy.org http://pypi.python.org/pypi/Scrapy/"
+SRC_URI="mirror://pypi/S/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boto doc examples ibl ssl"
+# New found test script has failures
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools
+ doc? ( dev-python/sphinx )"
+RDEPEND="dev-libs/libxml2[python]
+ boto? ( dev-python/boto )
+ dev-python/imaging
+ dev-python/lxml
+ ibl? ( dev-python/numpy )
+ ssl? ( dev-python/pyopenssl )
+ dev-python/setuptools
+ dev-python/simplejson
+ dev-python/twisted
+ dev-python/twisted-conch
+ dev-python/twisted-mail
+ dev-python/twisted-web
+ dev-python/w3lib
+ test? ( dev-python/django )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -e s':decs = "1000.12":decs = 1000.12:' \
+ -i scrapy/tests/test_utils_serialize.py || die
+}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ emake -C docs html || die "emake html failed"
+ fi
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" bin/runtests.sh || die
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ if use doc; then
+ dohtml -r "${S}"/docs/build/html/
+ fi
+ if use examples; then
+ insinto /usr/share/doc/"${PF}"/examples
+ doins -r "${S}"/examples/*
+ fi
+}