blob: f382b9c7e9467fd329868b8360891794399dd7d9 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
inherit epatch
DESCRIPTION="Tiny Vector Matrix library using Expression Templates"
HOMEPAGE="http://tvmet.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="debug doc test"
RESTRICT="!test? ( test )"
DEPEND="doc? ( app-doc/doxygen )
test? ( dev-util/cppunit )"
src_prepare() {
epatch "${FILESDIR}/${P}-respect-cxxflags.patch"
sed -i \
-e 's|^GENERATE_LATEX.*|GENERATE_LATEX = NO|' \
doc/Doxyfile.in || die "sed failed"
# Doc installation is broken with newer Doxygen and autoconf <=2.61
# and we can't rerun autoconf without requiring cppunit unconditionally
sed -i \
-e '/^SUBDIRS/ s|doc ||' \
Makefile.in || die "sed failed"
}
src_configure() {
econf \
$(use_enable debug) \
$(use_enable doc docs) \
$(use_enable test cppunit)
}
src_compile() {
default
if use doc ; then
cd doc
doxygen Doxyfile || die "doxygen failed"
fi
}
src_install() {
default
use doc && dohtml -r doc/html/*
}
|