summaryrefslogtreecommitdiff
blob: 43f3eacc35004d9c2edc651b39a5d3379c9f14c7 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit cmake-utils flag-o-matic

DESCRIPTION="Numerical analysis and data processing library"
HOMEPAGE="http://www.alglib.net/"
SRC_URI="http://www.alglib.net/translator/re/${P}.cpp.gpl.tgz"

SLOT="0/3.8"
LICENSE="GPL-2+"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="test"

S="${WORKDIR}"/cpp/

PATCHES=( "${FILESDIR}/${P}-disable-minlm-test.patch" )

src_prepare() {
	cp "${FILESDIR}"/CMakeLists.txt-3.8.2 CMakeLists.txt || die
	use x86 && append-cppflags -ffloat-store
	cmake-utils_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DBUILD_TEST=$(usex test)
	)
	cmake-utils_src_configure
}