blob: 68a4866d17a09a64f2912aac42392c9272018dc1 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmetadom/gmetadom-0.2.3.ebuild,v 1.11 2006/10/14 16:36:27 kloeri Exp $
inherit flag-o-matic eutils
DESCRIPTION="A library providing bindings for multiple languages of multiple C DOM implementations"
HOMEPAGE="http://gmetadom.sourceforge.net/"
SRC_URI="mirror://sourceforge/gmetadom/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
IUSE="ocaml"
RDEPEND=">=dev-libs/gdome2-0.8.0"
DEPEND="${RDEPEND}
>=dev-libs/libxslt-1.0.0
ocaml? ( >=dev-lang/ocaml-3.05
>=dev-ml/findlib-0.8 )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gentoo.patch
# Fix gcc 4.1 problems
epatch ${FILESDIR}/${P}-gcc41.patch
WANT_AUTOCONF="2.5" WANT_AUTOMAKE="1.7" autoreconf --install --force || die
}
src_compile() {
local mymod="gdome_cpp_smart"
# Unconditonal use of -fPIC (#55238).
append-flags -fPIC
use ocaml && mymod="${mymod} gdome_caml"
econf --with-modules="${mymod}" || die
#emake || die
make || die
}
src_install() {
local destdir=`ocamlfind printconf destdir`
make \
DESTDIR=${D} \
OCAMLINSTALLDIR=${D}${destdir}/gdome2 \
OCAMLFIND_LDCONF=dummy \
install || die
dodoc AUTHORS BUGS ChangeLog HISTORY NEWS README
}
|