summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2013-12-06 05:44:16 +0000
committerPatrick Lauer <patrick@gentoo.org>2013-12-06 05:44:16 +0000
commit824141db5af83e4dffee138799db175645cf0b16 (patch)
tree7ae766eb13493f7d6760c553a6cdb2e7f110f102 /dev-python/scrapy
parentSimplification of the ebuild (diff)
downloadgentoo-2-824141db5af83e4dffee138799db175645cf0b16.tar.gz
gentoo-2-824141db5af83e4dffee138799db175645cf0b16.tar.bz2
gentoo-2-824141db5af83e4dffee138799db175645cf0b16.zip
Fixing test phase and dependencies, thanks to likewhoa for reporting it
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-python/scrapy')
-rw-r--r--dev-python/scrapy/ChangeLog7
-rw-r--r--dev-python/scrapy/scrapy-0.18.0-r1.ebuild68
2 files changed, 74 insertions, 1 deletions
diff --git a/dev-python/scrapy/ChangeLog b/dev-python/scrapy/ChangeLog
index 0cc2d2599db1..e45a483a359c 100644
--- a/dev-python/scrapy/ChangeLog
+++ b/dev-python/scrapy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/scrapy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/ChangeLog,v 1.15 2013/11/22 07:51:55 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/ChangeLog,v 1.16 2013/12/06 05:44:16 patrick Exp $
+
+*scrapy-0.18.0-r1 (06 Dec 2013)
+
+ 06 Dec 2013; Patrick Lauer <patrick@gentoo.org> +scrapy-0.18.0-r1.ebuild:
+ Fixing test phase and dependencies, thanks to likewhoa for reporting it
*scrapy-0.18.0 (22 Nov 2013)
diff --git a/dev-python/scrapy/scrapy-0.18.0-r1.ebuild b/dev-python/scrapy/scrapy-0.18.0-r1.ebuild
new file mode 100644
index 000000000000..996cb59872cf
--- /dev/null
+++ b/dev-python/scrapy/scrapy-0.18.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/scrapy-0.18.0-r1.ebuild,v 1.1 2013/12/06 05:44:16 patrick Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit vcs-snapshot distutils-r1
+
+DESCRIPTION="A high-level Python Screen Scraping framework"
+HOMEPAGE="http://scrapy.org http://pypi.python.org/pypi/Scrapy/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boto doc examples ibl test ssl"
+PYTHON_MODNAME="scrapy scrapyd"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? (
+ dev-python/boto[${PYTHON_USEDEP}]
+ dev-python/queuelib[${PYTHON_USEDEP}]
+ dev-python/django[${PYTHON_USEDEP}]
+ net-ftp/vsftpd
+ )"
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-libs/libxml2[python,${PYTHON_USEDEP}]
+ boto? ( dev-python/boto[${PYTHON_USEDEP}] )
+ virtual/python-imaging[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ ibl? ( dev-python/numpy[${PYTHON_USEDEP}] )
+ ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/twisted-core
+ dev-python/twisted-conch
+ dev-python/twisted-mail
+ dev-python/twisted-web
+ >=dev-python/w3lib-1.1[${PYTHON_USEDEP}]
+ "
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ emake -C docs html || die "emake html failed"
+ fi
+}
+
+python_test() {
+ PYTHONPATH="${PWD}" bin/runtests.sh || die
+}
+
+src_install() {
+ distutils-r1_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
+}