sci-libs/ipopt: add USE +asl to build ipopt binary

This makes the `sci-libs/ipopt` build the `ipopt` binary by default. Currently this is not supported
because there is no ASL library. Using the ThirdParty-ASL repo is necessary to ensure a pkg-config
file is installed to be detected by ipopt configure.

HSL support is removed due to treeclean of sci-libs/coinhsl.

Signed-off-by: Andrew Udvare <audvare@gmail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Udvare
2024-02-13 22:28:46 -05:00
committed by Andrew Ammerlaan
parent 592794f0eb
commit c513a4f301
2 changed files with 7 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,15 +15,15 @@ HOMEPAGE="https://github.com/coin-or/Ipopt"
SRC_URI="https://github.com/coin-or/Ipopt/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/Ipopt-releases-${PV}"
LICENSE="EPL-1.0 hsl? ( HSL )"
LICENSE="EPL-1.0"
SLOT="0/1"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="hsl +lapack mpi mumps static-libs test"
IUSE="+asl +lapack mpi mumps static-libs test"
RESTRICT="!test? ( test )"
RDEPEND="
virtual/blas
hsl? ( sci-libs/coinhsl:0= )
asl? ( sci-libs/coinasl:0= )
lapack? ( virtual/lapack )
mpi? ( virtual/mpi )
mumps? ( sci-libs/mumps:0=[mpi=] )"
@@ -41,6 +41,8 @@ src_prepare() {
src_configure() {
local myeconfargs=(
$(use_with doc dot)
$(use_with asl)
--without-hsl
)
if use lapack; then
@@ -55,13 +57,6 @@ src_configure() {
else
myeconfargs+=( --without-mumps )
fi
if use hsl; then
myeconfargs+=(
--with-hsl-incdir="${EPREFIX}"/usr/include
--with-hsl-lib="$($(tc-getPKG_CONFIG) --libs coinhsl)" )
else
myeconfargs+=( --without-hsl )
fi
econf "${myeconfargs[@]}"
}

View File

@@ -15,7 +15,7 @@
for Operations Research).
</longdescription>
<use>
<flag name="hsl">hsl</flag>
<flag name="asl">AMPL Solver Library support and build the 'ipopt' binary</flag>
<flag name="mumps">Enable <pkg>sci-libs/mumps</pkg> support</flag>
</use>
<upstream>