add sci-mathematics/{soplex,papilo}
[nodoc-overlay.git] / sci-mathematics / papilo / papilo-3.0.1.ebuild
1 # Copyright 1999-2026 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=8
5
6 inherit cmake flag-o-matic
7
8 DESCRIPTION="Parallel Presolve for Integer and Linear Optimization"
9 HOMEPAGE="https://www.scipopt.org"
10 SRC_URI="https://github.com/scipopt/papilo/archive/refs/tags/v${PV}.tar.gz"
11
12 LICENSE="Apache-2.0"
13 SLOT="0"
14 KEYWORDS="~amd64"
15 IUSE="boost gmp highs +tbb soplex quadmath"
16
17 RDEPEND="
18 boost? ( dev-libs/boost )
19 gmp? ( dev-libs/gmp )
20 highs? ( sci-mathematics/highs )
21 tbb? ( dev-cpp/tbb )
22 soplex? ( sci-mathematics/soplex )
23 "
24
25 DEPEND="${RDEPEND}"
26
27 src_configure() {
28
29 filter-lto
30 append-flags -fPIC
31
32 local mycmakeargs=(
33 -DGMP=$(usex gmp "ON" "OFF")
34 -DHIGHS=$(usex highs "ON" "OFF")
35 -DSOPLEX=$(usex soplex "ON" "OFF")
36 -DTBB=$(usex tbb "ON" "OFF")
37 -DQUADMATH=$(usex quadmath "ON" "OFF")
38 )
39
40 cmake_src_configure
41 }