blob: e3a8f18693e434723744edd41b026afc7a69316c (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils eutils
DESCRIPTION='C++ library for geometric design and numerical simulation'
HOMEPAGE="https://gs.jku.at/gismo"
SRC_URI="https://timeraider4u.github.io/distfiles/files/${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
# Unbundling in progress,
# preparing local changes to get upstream
DEPEND="
doc? ( >=app-doc/doxygen-1.8 )"
src_configure() {
local mycmakeargs=(
-DGISMO_BUILD_EXAMPLES=$(usex examples)
# set to same directory as the one used by einstalldocs
-DDOC_INSTALL_DIR="/usr/share/doc/${PF}"
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
if use doc ; then
# explicitly call optional target doc
cd "${S}_build" || die "could not find cmake build folder"
emake doc
fi
}
|