/[gentoo-x86]/dev-python/beautifulsoup/beautifulsoup-4.1.3-r1.ebuild
Gentoo

Contents of /dev-python/beautifulsoup/beautifulsoup-4.1.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Apr 8 08:05:10 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-4.1.3-r1.ebuild,v 1.10 2014/03/31 20:31:26 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3} pypy )
8
9 inherit distutils-r1
10
11 MY_PN="${PN}4"
12 MY_P="${MY_PN}-${PV}"
13 DESCRIPTION="Provides pythonic idioms for iterating, searching, and modifying an HTML/XML parse tree"
14 HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/
15 http://pypi.python.org/pypi/beautifulsoup4"
16 SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
17
18 LICENSE="MIT"
19 SLOT="4"
20 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
21 # new html5 awaits keywording of html5lib in Bug 471002
22 IUSE="doc test"
23 # pending Bug 471002; html5? ( dev-python/html5lib[$(python_gen_usedep 'python{2_6,2_7}' pypy pypy2_0)] )
24
25 RDEPEND=""
26 DEPEND="${RDEPEND}
27 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
28 test? ( dev-python/nose[${PYTHON_USEDEP}]
29 dev-python/lxml[${PYTHON_USEDEP}] )"
30
31 S="${WORKDIR}/${MY_P}"
32
33 python_compile_all() {
34 if use doc; then
35 emake -C doc html
36 fi
37 }
38
39 python_test() {
40 nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
41 }
42
43 python_install_all() {
44 use doc && local HTML_DOCS=doc/build/html/.
45 distutils-r1_python_install_all
46 }

  ViewVC Help
Powered by ViewVC 1.1.20