blob: 8d522b501ed5f6d8151b450aa05d46776ffaafcf (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="C++ library of mathematical, signal processing and communication"
HOMEPAGE="http://itpp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
IUSE="doc"
RDEPEND="
sci-libs/fftw:3.0=
virtual/blas
virtual/lapack
"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? (
app-doc/doxygen
virtual/latex-base
)
"
DOCS=( ChangeLog NEWS AUTHORS README )
src_prepare() {
cmake-utils_src_prepare
# gentoo redefines the CMAKE_BUILD_TYPE
sed -i \
-e 's/CMAKE_BUILD_TYPE STREQUAL Release/NOT CMAKE_BUILD_TYPE STREQUAL Debug/' \
CMakeLists.txt || die
# respect gentoo doc dir
sed -i \
-e "s:share/doc/itpp:share/doc/${PF}:" \
itpp/CMakeLists.txt || die
# respect gentoo libdir
sed -i "s#/lib#/$(get_libdir)#" itpp-config.cmake.in || die
sed -i "s#/lib#/$(get_libdir)#" itpp.pc.cmake.in || die
sed -i \
-e "s#LIBRARY DESTINATION lib#LIBRARY DESTINATION $(get_libdir)#" \
-e "s#ARCHIVE DESTINATION lib#ARCHIVE DESTINATION $(get_libdir)#" \
itpp/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DBLA_VENDOR=Generic
-DHTML_DOCS=$(usex doc)
)
cmake-utils_src_configure
}
|