public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ipopt/
Date: Mon, 14 Oct 2024 07:21:16 +0000 (UTC)	[thread overview]
Message-ID: <1728890358.c513a4f3013bd8fe45c5cfcbd42e238e455b5993.andrewammerlaan@gentoo> (raw)

commit:     c513a4f3013bd8fe45c5cfcbd42e238e455b5993
Author:     Andrew Udvare <audvare <AT> gmail <DOT> com>
AuthorDate: Wed Feb 14 03:28:46 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Oct 14 07:19:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c513a4f3

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 <AT> gmail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../{ipopt-3.14.4.ebuild => ipopt-3.14.4-r1.ebuild}     | 17 ++++++-----------
 sci-libs/ipopt/metadata.xml                             |  2 +-
 2 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/sci-libs/ipopt/ipopt-3.14.4.ebuild b/sci-libs/ipopt/ipopt-3.14.4-r1.ebuild
similarity index 81%
rename from sci-libs/ipopt/ipopt-3.14.4.ebuild
rename to sci-libs/ipopt/ipopt-3.14.4-r1.ebuild
index 44a78114fdfa..9005696f3cee 100644
--- a/sci-libs/ipopt/ipopt-3.14.4.ebuild
+++ b/sci-libs/ipopt/ipopt-3.14.4-r1.ebuild
@@ -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[@]}"
 }
 

diff --git a/sci-libs/ipopt/metadata.xml b/sci-libs/ipopt/metadata.xml
index f5b474167afc..1b9661483cd4 100644
--- a/sci-libs/ipopt/metadata.xml
+++ b/sci-libs/ipopt/metadata.xml
@@ -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>


             reply	other threads:[~2024-10-14  7:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-14  7:21 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-30 16:43 [gentoo-commits] repo/gentoo:master commit in: sci-libs/ipopt/ Andreas Sturmlechner
2022-05-07 20:22 Sam James
2022-01-11 14:37 Andrew Ammerlaan
2019-04-24 21:13 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1728890358.c513a4f3013bd8fe45c5cfcbd42e238e455b5993.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox