summaryrefslogtreecommitdiff
blob: 7380c8d1e7e0f9553318daaec05c2c0683169f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyXML-py21/PyXML-py21-0.8.2.ebuild,v 1.1 2003/06/22 22:25:54 kutsuya Exp $

PYTHON_SLOT_VERSION=2.1

inherit distutils
P_NEW="${PN%-py21}-${PV}"
S="${WORKDIR}/${P_NEW}"

DESCRIPTION="A collection of libraries to process XML with Python."
SRC_URI="mirror://sourceforge/pyxml/${P_NEW}.tar.gz"
HOMEPAGE="http://pyxml.sourceforge.net/"

DEPEND="${DEPEND}
	>=dev-libs/expat-1.95.6"

SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
LICENSE="PYTHON"
IUSE=""

src_compile() 
{
	local myconf
	
	# if you want to use 4Suite, then their XSLT/XPATH is
	# better according to the docs
	if has_version "dev-python/4Suite"; then
		myconf="--without-xslt --without-xpath"
	fi
	
	distutils_src_compile ${myconf}
}

src_install() 
{
	mydoc="ANNOUNCE CREDITS PKG-INFO doc/*.tex"
	distutils_src_install

	dohtml -r doc/*
}