summaryrefslogtreecommitdiff
blob: 89f0ee785a178eb5c3d0b17f4a4410c43a18a711 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libmxmlplus/libmxmlplus-0.9.2_p20060618.ebuild,v 1.1 2006/06/18 01:23:50 flameeyes Exp $

inherit libtool

DESCRIPTION="Minimal XML DOM Library"

SRC_URI="mirror://gentoo/${P}.tar.gz"
HOMEPAGE="http://mxml.sourceforge.net/"

DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

src_unpack() {
	unpack ${A}
	elibtoolize
}

src_compile() {
	econf \
		--enable-shared \
		$(use_enable doc) \
		--disable-dependency-tracking || die "econf failed"
	emake || die "emake failed"
}

src_install () {
	emake DESTDIR=${D} install || die

	if use doc; then
		dodir /usr/share/doc/${PF}
		dohtml -r ${S}/doc/html/*
	fi
}