blob: 8dd0d6f0a1324f2f586c588f3eeb892751806207 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/tinyxml/tinyxml-2.5.3_p20090813.ebuild,v 1.4 2009/08/14 08:03:27 ssuominen Exp $
EAPI=2
inherit flag-o-matic toolchain-funcs
DESCRIPTION="a simple, small, C++ XML parser that can be easily integrating into other programs"
HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug doc"
RDEPEND=""
DEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
cp -f "${FILESDIR}"/Makefile . || die
}
src_compile() {
use debug && append-cppflags -DDEBUG
tc-export AR CXX RANLIB
emake || die "emake failed"
if use doc; then
doxygen dox || die "doxygen failed"
fi
}
src_install() {
dolib.so *.so* || die "dolib.so failed"
dolib.a *.a || die "dolib.a failed"
insinto /usr/include
doins *.h || die "doins failed"
dodoc {changes,readme}.txt || die "dodoc failed"
if use doc; then
dodoc tutorial_gettingStarted.txt || die "dodoc failed"
dohtml -r docs/* || die "dohtml failed"
fi
}
|