blob: 92b4ab54710c78d80b3ccaafb03d0bad743aef26 (
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
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/cal3d/cal3d-0.11.0-r1.ebuild,v 1.8 2008/10/14 02:13:01 darkside Exp $
inherit eutils autotools subversion
DESCRIPTION="Cal3D is a skeletal based character animation library"
HOMEPAGE="http://home.gna.org/cal3d"
SRC_URI=""
ESVN_REPO_URI="svn://svn.gna.org/svn/cal3d/trunk/cal3d"
ESVN_STORE_DIR="${DISTDIR}/svn-src"
ESVN_PROJECT="${PN/-svn}"
EESVN_REVISION="507"
#ESVN_BOOTSTRAP="./reconf"
LICENSE="LGPL-2.1"
SLOT=""
KEYWORDS="amd64 ~ia64 ppc x86 ~x86-fbsd"
IUSE="16bit-indices debug doc"
S="${WORKDIR}/${P/_/}"
DEPEND="doc? (
app-doc/doxygen
app-text/docbook-sgml-utils
)"
RDEPEND=""
src_unpack() {
# unpack ${A}
subversion_src_unpack
cd "${S}"
# epatch "${FILESDIR}"/${P}-gcc43.patch
epatch "${FILESDIR}"/config.patch
if use doc; then
sed -i \
-e "s:db2html:docbook2html:g" \
configure.in \
docs/Makefile.am \
|| die "sed for doc failed"
eautoreconf
fi
}
src_compile() {
econf \
$(use_enable debug) \
$(use_enable 16bit-indices) \
|| die
emake || die
if use doc; then
cd docs
emake doc-api || die "Failed making doc-api"
emake doc-guide || die "Failed making doc-guide"
mkdir -p html/{guide,api}
mv *.{html,gif} html/guide/
mv api/html/* html/api/
fi
}
src_install() {
dodoc AUTHORS ChangeLog README TODO
einstall || die
use doc && dohtml -r docs/html/*
}
|