blob: 9538ce78fdff181ddba2fdc85f2040c6dd34e954 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ticpp/ticpp-0_p20120423.ebuild,v 1.2 2012/06/18 14:20:31 ago Exp $
EAPI=4
DESCRIPTION="A completely new interface to TinyXML that uses MANY of the C++ strengths"
HOMEPAGE="http://code.google.com/p/ticpp/"
SRC_URI="http://dev.gentoo.org/~ago/distfiles/${P}.tar.bz2"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug doc"
DEPEND=">=dev-util/premake-4.3
doc? ( app-doc/doxygen )"
RDEPEND=""
src_prepare() {
premake4 gmake || die
sed -i "s:\$(ARCH)::g" TiCPP.make || die
}
src_compile() {
local myconf
use !debug && myconf="config=release"
emake ${myconf}
if use doc ; then
sed -i -e '/GENERATE_HTMLHELP/s:YES:NO:' dox || die
doxygen dox || die
fi
}
src_install () {
insinto /usr/include/ticpp
doins *.h
if use debug ; then
dolib lib/libticppd.a
else
dolib lib/libticpp.a
fi
dodoc {changes,readme,tutorial_gettingStarted,tutorial_ticpp}.txt
use doc && dohtml -r docs/*
}
|