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

Contents of /dev-python/beautifulsoup/beautifulsoup-4.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Aug 1 07:32:52 2015 UTC (5 years ago) by idella4
Branch: MAIN
CVS Tags: HEAD
bump

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 idella4 1.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.3.2.ebuild,v 1.14 2015/01/02 12:22:09 ago Exp $
4    
5     EAPI=5
6     PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
7    
8     inherit distutils-r1
9    
10     MY_PN=${PN}4
11     MY_P=${MY_PN}-${PV}
12    
13     DESCRIPTION="Provides pythonic idioms for iterating, searching, and modifying an HTML/XML parse tree"
14     HOMEPAGE="https://bugs.launchpad.net/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    
22     IUSE="doc test"
23    
24     # html5lib is optional however hard coding since its use is actively discouraged in the devmanual
25     RDEPEND="$(python_gen_cond_dep 'dev-python/html5lib[${PYTHON_USEDEP}]' python2_7 pypy)
26     $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]' python2_7 'python3*')"
27     DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
28     test? ( dev-python/nose[${PYTHON_USEDEP}]
29     !dev-python/chardet[${PYTHON_USEDEP}] )"
30     # See https://bugs.launchpad.net/beautifulsoup/+bug/1471359 to explain need for blocker
31    
32     S=${WORKDIR}/${MY_P}
33    
34     python_compile_all() {
35     if use doc; then
36     emake -C doc html
37     fi
38     }
39    
40     python_test() {
41     nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
42     }
43    
44     python_install_all() {
45     use doc && local HTML_DOCS=doc/build/html/.
46     distutils-r1_python_install_all
47     }

  ViewVC Help
Powered by ViewVC 1.1.20