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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Dec 27 10:57:06 2012 UTC (7 years, 6 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
alpha/s390/sh/sparc stable wrt #441272

(Portage version: 2.1.11.38/cvs/Linux ia64, signed Manifest commit with key F6AD3240)

1 # Copyright 1999-2012 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.ebuild,v 1.8 2012/12/13 22:16:56 ago Exp $
4
5 EAPI="4"
6
7 PYTHON_DEPEND="*:2.6"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="2.5"
10 PYTHON_TESTS_RESTRICTED_ABIS="*-pypy-*"
11 DISTUTILS_SRC_TEST="nosetests"
12
13 inherit distutils
14
15 MY_PN="${PN}4"
16 MY_P="${MY_PN}-${PV}"
17 DESCRIPTION="Provides pythonic idioms for iterating, searching, and modifying an HTML/XML parse tree"
18 HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/
19 http://pypi.python.org/pypi/beautifulsoup4"
20 SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
21
22 LICENSE="MIT"
23 SLOT="4"
24 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"
25 IUSE="doc test"
26
27 DEPEND="doc? ( dev-python/sphinx )
28 test? ( dev-python/lxml )"
29 RDEPEND=""
30
31 PYTHON_MODNAME="bs4"
32 S="${WORKDIR}/${MY_P}"
33
34 src_compile() {
35 distutils_src_compile
36 if use doc; then
37 emake -C doc html
38 fi
39 }
40
41 src_test() {
42 testing() {
43 cd "build-${PYTHON_ABI}/lib"
44 nosetests --verbosity="${PYTHON_TEST_VERBOSITY}"
45 }
46 python_execute_function testing
47 }
48
49 src_install() {
50 distutils_src_install
51 if use doc; then
52 dohtml -r doc/build/html/*
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20