/[gentoo-x86]/dev-python/celementtree/celementtree-1.0.5-r2.ebuild
Gentoo

Contents of /dev-python/celementtree/celementtree-1.0.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Apr 8 08:05:20 2015 UTC (3 years, 4 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/celementtree/celementtree-1.0.5-r2.ebuild,v 1.10 2014/03/19 15:22:37 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit distutils-r1
10
11 MY_P="cElementTree-${PV}-20051216"
12
13 DESCRIPTION="The cElementTree module is a C implementation of the ElementTree API"
14 HOMEPAGE="http://effbot.org/zone/celementtree.htm http://pypi.python.org/pypi/cElementTree"
15 SRC_URI="http://effbot.org/downloads/${MY_P}.tar.gz"
16
17 LICENSE="ElementTree"
18 SLOT="0"
19 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris"
20 IUSE="examples"
21
22 RDEPEND=">=dev-python/elementtree-1.2[${PYTHON_USEDEP}]
23 >=dev-libs/expat-1.95.8"
24 DEPEND="${RDEPEND}
25 dev-python/setuptools[${PYTHON_USEDEP}]"
26
27 S="${WORKDIR}/${MY_P}"
28
29 python_prepare_all() {
30 local PATCHES=(
31 "${FILESDIR}/${P}-use_system_expat.patch"
32 "${FILESDIR}/${P}-setuptools.patch"
33 )
34 distutils-r1_python_prepare_all
35 }
36
37 python_test() {
38 "${PYTHON}" selftest.py || die "Tests fail with ${EPYTHON}"
39 }
40
41 python_install_all() {
42 use examples && local EXAMPLES=( samples/. selftest.py )
43
44 distutils-r1_python_install_all
45 }

  ViewVC Help
Powered by ViewVC 1.1.20