/[gentoo-x86]/dev-python/celementtree/celementtree-1.0.2-r1.ebuild
Gentoo

Contents of /dev-python/celementtree/celementtree-1.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 3 07:25:16 2007 UTC (11 years, 1 month ago) by hawking
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Reverted version 1.0.2, removed 1.0.2-r1
(Portage version: 2.1.3_rc6)

1 # Copyright 1999-2007 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.2-r1.ebuild,v 1.1 2007/07/03 06:41:17 hawking Exp $
4
5 inherit eutils distutils
6
7 MY_P="cElementTree-${PV}-20050302"
8 DESCRIPTION="The cElementTree module is a C implementation of the ElementTree API"
9 HOMEPAGE="http://effbot.org/zone/celementtree.htm"
10 SRC_URI="http://effbot.org/downloads/${MY_P}.tar.gz"
11
12 LICENSE="ElementTree"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc x86"
15
16 IUSE="doc"
17 DEPEND=">=dev-lang/python-2.1.3-r1
18 >=dev-python/elementtree-1.2
19 >=dev-libs/expat-1.95.8"
20 S=${WORKDIR}/${MY_P}
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25
26 epatch "${FILESDIR}/${P}-use_system_expat.patch"
27 }
28
29 src_install() {
30 distutils_src_install
31 if use doc; then
32 insinto /usr/share/doc/${PF}/samples
33 doins samples/*
34 doins selftest.py
35 fi
36 }
37
38 src_test() {
39 PYTHONPATH="$(ls -d build/lib.*)" "${python}" selftest.py \
40 || die "tests failed"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20