Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/beautifulsoup/
Date: Thu, 29 Jun 2017 22:04:56
Message-Id: 1498773800.4fe5577526780a5c44910894fef2464fbcfda032.bicatali@gentoo
1 commit: 4fe5577526780a5c44910894fef2464fbcfda032
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 29 22:01:58 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 29 22:03:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe55775
7
8 dev-python/beautifulsoup: shorter description
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-python/beautifulsoup/Manifest | 1 +
13 .../beautifulsoup/beautifulsoup-4.6.0.ebuild | 45 ++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-python/beautifulsoup/Manifest b/dev-python/beautifulsoup/Manifest
17 index f77e427a34b..a87f7f747d9 100644
18 --- a/dev-python/beautifulsoup/Manifest
19 +++ b/dev-python/beautifulsoup/Manifest
20 @@ -2,3 +2,4 @@ DIST BeautifulSoup-3.1.0.1.tar.gz 71460 SHA256 820a80f473240d9d30047f36c959d530a
21 DIST BeautifulSoup-3.2.1.tar.gz 31224 SHA256 f5ba85e907e7dfd78e44e4000b3eaef3a650aefc57831e8a645702db2e5b50db SHA512 365b7b045a2069cf437877543577bc0aa99256a6dc4c9743670b46bfceab5494a06628012d6eccecfe99c25d5c9e0c65814964b47026f15ba1a538444cfb7789 WHIRLPOOL c2f84b29421d0153fb1fecc87d63e00a61182e03bc0683132babca5d6c94143b4875a60a19124a36e4e6e78ce80bff9e1e81b37335700efc14084da933307e26
22 DIST beautifulsoup4-4.5.1.tar.gz 158039 SHA256 3c9474036afda9136aac6463def733f81017bf9ef3510d25634f335b0c87f5e1 SHA512 d560d7f743507084ec546708d29bb3764512f5b2c380004280dde813350bf48d1697fddce3bd3f95186407bf5142941d7adc7d0de8e7962eb5ca1278dbc7e93f WHIRLPOOL bf971596707c2ff69e93528164be01254258aa45601763c543246b67c5d31024b0e4de618382775a3cf313d255d8d1d6268a47542773531aacee9a2643412661
23 DIST beautifulsoup4-4.5.3.tar.gz 159185 SHA256 b21ca09366fa596043578fd4188b052b46634d22059e68dd0077d9ee77e08a3e SHA512 d31db0e3bb778a78c37882fcd55dc580eb5eeadfd48744eae6e2e0d0ef5983b216a4682af84a4971611b05fb99c45012ce094475f2d7c39a5b90dad99906ec84 WHIRLPOOL f8dbffd8e4a1dbee0a7ad8a4bcbe22a984f524474f0241a4c03ef5c37b291f9834a6ff1d076421c0cf1087588df1e49f5b99cd9afd7e81591c9063d92d4d097d
24 +DIST beautifulsoup4-4.6.0.tar.gz 160846 SHA256 808b6ac932dccb0a4126558f7dfdcf41710dd44a4ef497a0bb59a77f9f078e89 SHA512 1a7eee4218e58cc3852e71fe4f0892f673bb46a851941264766a38eff8ef05d612d88b4641fcb478ce8f66ac50dc987ca039923c4bbb11867c74813289f7e578 WHIRLPOOL 46809fd612cd90533fbf4252d1c2ee19c571301306c549526b355b4a7ad17090aa1e505268f25a521ed0d2c90c7686a6a2c1144a934a16823754aac5f599ac2c
25
26 diff --git a/dev-python/beautifulsoup/beautifulsoup-4.6.0.ebuild b/dev-python/beautifulsoup/beautifulsoup-4.6.0.ebuild
27 new file mode 100644
28 index 00000000000..d321b00e57a
29 --- /dev/null
30 +++ b/dev-python/beautifulsoup/beautifulsoup-4.6.0.ebuild
31 @@ -0,0 +1,45 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
38 +
39 +inherit distutils-r1
40 +
41 +MY_PN=${PN}4
42 +MY_P=${MY_PN}-${PV}
43 +
44 +DESCRIPTION="Pythonic idioms for iterating, searching, and modifying an HTML/XML parse tree"
45 +HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/bs4/"
46 +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="4"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
51 +
52 +IUSE="doc test"
53 +
54 +# html5lib is optional however hard coding since its use is actively discouraged in the devmanual
55 +RDEPEND="
56 + $(python_gen_cond_dep 'dev-python/html5lib[${PYTHON_USEDEP}]' python2_7 pypy)
57 + $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]' python2_7 'python3*')"
58 +DEPEND="
59 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
60 + test? ( dev-python/nose[${PYTHON_USEDEP}] )
61 + "
62 +
63 +S="${WORKDIR}/${MY_P}"
64 +
65 +python_compile_all() {
66 + use doc && emake -C doc html
67 +}
68 +
69 +python_test() {
70 + nosetests --verbose -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
71 +}
72 +
73 +python_install_all() {
74 + use doc && local HTML_DOCS=( doc/build/html/. )
75 + distutils-r1_python_install_all
76 +}