blob: 2a5e573da7b421e7b00bb3c9d73b80a5e5e1d6ff (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclxml/tclxml-3.0.ebuild,v 1.1 2005/06/26 02:23:31 matsuu Exp $
DESCRIPTION="Pure Tcl implementation of an XML parser."
HOMEPAGE="http://tclxml.sourceforge.net/"
SRC_URI="mirror://sourceforge/tclxml/${P}.tar.gz"
IUSE="expat threads xml2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
DEPEND=">=dev-lang/tcl-8.2
>=dev-tcltk/tcllib-1.2
xml2? ( >=dev-libs/libxml2-2.6.9 )
expat? ( dev-libs/expat )
!dev-tcltk/tclxml-expat"
MAKEOPTS="${MAKEOPTS} -j1"
src_compile() {
local myconf=""
use threads && myconf="${myconf} --enable-threads"
econf ${myconf} || die
emake || die
if use xml2 ; then
cd ${S}/libxml2
econf ${myconf} --with-Tclxml=.. || die
emake || die
fi
if use expat ; then
cd ${S}/expat
econf ${myconf} --with-Tclxml=.. || die
emake || die
fi
}
src_install() {
make DESTDIR=${D} install || die
if use xml2 ; then
cd ${S}/libxml2
make DESTDIR=${D} install || die
fi
if use expat ; then
cd ${S}/expat
make DESTDIR=${D} install || die
fi
cd ${S}
dodoc ANNOUNCE ChangeLog LICENSE README RELNOTES
dohtml doc/*.html
}
|