From cc6bf04ccfb588fa051de310f4ec6b121bf7cdea Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 16 Dec 2012 14:45:37 +1100 Subject: [PATCH] Initial import from local filesystem --- dev-python/scrapy/Manifest | 2 + dev-python/scrapy/files/.gitkeep | 0 dev-python/scrapy/scrapy-0.16.2.ebuild | 77 ++++++++++++++++++++++++++ profiles/repo_name | 1 + 4 files changed, 80 insertions(+) create mode 100644 dev-python/scrapy/Manifest create mode 100644 dev-python/scrapy/files/.gitkeep create mode 100644 dev-python/scrapy/scrapy-0.16.2.ebuild create mode 100644 profiles/repo_name diff --git a/dev-python/scrapy/Manifest b/dev-python/scrapy/Manifest new file mode 100644 index 0000000..cc29754 --- /dev/null +++ b/dev-python/scrapy/Manifest @@ -0,0 +1,2 @@ +DIST Scrapy-0.16.2.tar.gz 675402 SHA256 8c74a37e5bcc836d1a4ee58104e8bcfe51b7af5ed2595d865d665bb725833fa1 SHA512 40d55230af764207452e2ac4b3b45037a14dc210a896863bac54ba0e2bc0e0606f56c93ca0de95f7a08e69782e69fc996d052378aa7b9d8193d5e8d7864e3670 WHIRLPOOL 0b3b3b39b2769caa3ddfc6f78c6047d78293340a6f80a2eb6266e78440630d3396798a4c1c540b83998a7488a8bd30bca73dc927bc58e07c20c96866112d42d2 +EBUILD scrapy-0.16.2.ebuild 1818 SHA256 10ada230ce3c2a5a494c54e64f6952c8401701e1d8542a35c356e8791dca8f8d SHA512 1cb2943e5ee89649c97b388b21b072cab98c2c33911b28a18e3b2e039886f0d82c2308d57987a018de922492988246162566423def88144c4499ad542607361b WHIRLPOOL 7ee28bfaab38435ecc259b94772df8d05c3a23475468feacbd49ec57a8f243bedc0a8b1a8ebbd58833f97b99b6948e97559c4c69dfb1384cb6f3c2b7fbb73977 diff --git a/dev-python/scrapy/files/.gitkeep b/dev-python/scrapy/files/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/dev-python/scrapy/scrapy-0.16.2.ebuild b/dev-python/scrapy/scrapy-0.16.2.ebuild new file mode 100644 index 0000000..b0c1c04 --- /dev/null +++ b/dev-python/scrapy/scrapy-0.16.2.ebuild @@ -0,0 +1,77 @@ +# 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.4.ebuild,v 1.3 2012/08/09 06:22:27 patrick Exp $ + +EAPI="4" + +PYTHON_DEPEND="2" +PYTHON_USE_WITH="sqlite(+)" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-pypy-*" +PYTHON_TESTS_RESTRICTED_ABIS="2.5" +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 test ssl" +PYTHON_MODNAME="scrapy scrapyd" + +DEPEND="dev-python/setuptools + doc? ( dev-python/sphinx ) + test? ( + dev-python/django + net-ftp/vsftpd + )" +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-1.1" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + distutils_src_compile + + if use doc; then + emake -C docs html || die "emake html failed" + fi +} + +src_test() { + testing() { + # PYTHOPATH should be build-$PYTHON_ABI/lib, but causes a test fail. + # Not all content is copied across to build-$PYTHON_ABI/lib, and + # PYTHONPATH again requires an abs path. + echo PYTHONPATH="${PWD}" bin/runtests.sh + PYTHONPATH="${PWD}"/ bin/runtests.sh + } + 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 +} diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..ae85169 --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +gim