Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyquery/
Date: Fri, 25 Sep 2015 11:46:34
Message-Id: 1443181590.89d2dc56fb10aeb53f33019cb6892e5627769142.jlec@gentoo
1 commit: 89d2dc56fb10aeb53f33019cb6892e5627769142
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 11:46:21 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 11:46:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89d2dc56
7
8 dev-python/pyquery: Add dropped version back
9
10 Package-Manager: portage-2.2.22
11 RepoMan-Options: --force
12 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
13
14 dev-python/pyquery/Manifest | 1 +
15 dev-python/pyquery/pyquery-1.2.4.ebuild | 52 +++++++++++++++++++++++++++++++++
16 2 files changed, 53 insertions(+)
17
18 diff --git a/dev-python/pyquery/Manifest b/dev-python/pyquery/Manifest
19 index 91ab6dc..739b3fd 100644
20 --- a/dev-python/pyquery/Manifest
21 +++ b/dev-python/pyquery/Manifest
22 @@ -1,2 +1,3 @@
23 +DIST pyquery-1.2.4.tar.gz 23999 SHA256 1c39f786c42430279eadf787f1ef06873f15c9acba2698c23dfd925ac7b169d7 SHA512 77ec2efab157f693361e1dcbeabd7cac0709d3a8a25b6c47eb333be49c1485c7fa50b4fd9238bfff69657368130c2886cf6e0705415bdf1b48dc434365539c29 WHIRLPOOL 3fece4f710d69a0b57ab858f759196b269984a38af568003f7280215763c67b1e229feaf80f27b359a5da923248a11335026af4de85806ea6fc969c61c197685
24 DIST pyquery-1.2.8.zip 42552 SHA256 59af39301bad397e085e5080987f94ef30672f1cf8e73d19d3307b3b63c3cb4b SHA512 9d344a5c4b0dd565e31c803ceecb217c71f9a70badbc65f9fcfb4a2cccb725a1bf938ed0b1697dcfdf0ec967321dccc1916a884ffdb0af9828a65005f63c47d7 WHIRLPOOL 5c98c3e7584d429a7c9bca564aac04e5dc6f579265aa9b8b768e167cdfcc57758b0d728b3102a56af75fa6ea838a6c1927e733a5171d3266574ba2b34ee85209
25 DIST pyquery-1.2.9.zip 45289 SHA256 46c51eb878b787e814ee8f9737b0a62111034aeb4d1c06450ac5a8ea5a70e602 SHA512 f5152b471c896b39032add6a7f0e6ce63f426b4903bc7cf9eef12723c73453b40c310dd1497a7c4189fc6faaf804690fd91fb6d2f97fb6c4d6314682de4b8d05 WHIRLPOOL a57bb04402a3a8af98e7073d2b4e415a3e455bb67b4dc946831832f24339fe29fcd560123651abb3ae38c4ee9da3973638d27e064122702c0d1dd63d971fb67b
26
27 diff --git a/dev-python/pyquery/pyquery-1.2.4.ebuild b/dev-python/pyquery/pyquery-1.2.4.ebuild
28 new file mode 100644
29 index 0000000..6505fe5
30 --- /dev/null
31 +++ b/dev-python/pyquery/pyquery-1.2.4.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2015 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +PYTHON_COMPAT=( python{2_7,3_3} )
40 +
41 +inherit distutils-r1 eutils
42 +
43 +DESCRIPTION="A jQuery-like library for python"
44 +HOMEPAGE="https://pypi.python.org/pypi/pyquery"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ~ppc64 s390 sh sparc x86 ~x86-fbsd"
50 +IUSE="beautifulsoup3 test"
51 +
52 +RDEPEND="
53 + >=dev-python/lxml-2.1[${PYTHON_USEDEP}]
54 + dev-python/cssselect[${PYTHON_USEDEP}]
55 + >=dev-python/webob-1.2_rc1[${PYTHON_USEDEP}]"
56 +DEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + app-arch/unzip
59 + test? ( ${RDEPEND}
60 + dev-python/beautifulsoup:python-2[$(python_gen_usedep 'python2*')]
61 + dev-python/beautifulsoup:python-3[$(python_gen_usedep 'python3*')]
62 + dev-python/nose[${PYTHON_USEDEP}] )"
63 +
64 +DOCS=( CHANGES.rst README.rst )
65 +
66 +python_prepare_all() {
67 + # Disable tests that access the net
68 + for file in docs/{ajax.txt,manipulating.txt,scrap.txt,tips.txt}
69 + do
70 + mv ${file} ${file/.txt/} || die
71 + done
72 + sed -e 's:>>> d = pq(url:>>> # d = pq(url:' -i README.rst || die
73 + sed -e 's:class TestWebScrapping:class _TestWebScrapping:' -i ${PN}/test.py || die
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_test() {
79 + nosetests || die "Tests fail with ${EPYTHON}"
80 +}
81 +
82 +pkg_postinst() {
83 + optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup
84 +}