commit:     fa9f7da46d054a2035a9c135ea193ce05c1d32dc
Author:     Dima Pasechnik <dima <AT> pasechnik <DOT> info>
AuthorDate: Thu Nov  6 19:36:08 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 21:02:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa9f7da4

sci-libs/coinor-utils: add 2.11.12

Also, remove the outdated patch (merged upstream)

Signed-off-by: Dima Pasechnik <dima <AT> pasechnik.info>
Part-of: https://github.com/gentoo/gentoo/pull/44519
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 sci-libs/coinor-utils/Manifest                    |   1 +
 sci-libs/coinor-utils/coinor-utils-2.11.12.ebuild | 101 ++++++++++++++++++++++
 2 files changed, 102 insertions(+)

diff --git a/sci-libs/coinor-utils/Manifest b/sci-libs/coinor-utils/Manifest
index bb45afeae108..a566b2b2d19a 100644
--- a/sci-libs/coinor-utils/Manifest
+++ b/sci-libs/coinor-utils/Manifest
@@ -1,2 +1,3 @@
+DIST coinor-utils-2.11.12.tar.gz 1244728 BLAKE2B 
1a8415d47099b51ed3484d6871fed924a3bf9af7805adafc38515745baca2834df082f127803499da7a1e77fc3d13477782382fdc7a56aa2f562653d3c6c5f06
 SHA512 
9737817d273e1245ebcfa849e16cefec5dc2823e6f2d04544c7f5044cbabcf986f92c3b1a4858af720021610de9cf5a4e9288773e6c1dcc288673d36ddaabbeb
 DIST coinor-utils-2.11.4.tar.gz 1225148 BLAKE2B 
d55f9b3efbb3ce1c04fb9193ec70f62d8f130cd2f7ddf033c0df35f37006c542bd39e345662c271b4466b00c4bb1ec3cc14965bfe35f5b89370071d675113f4d
 SHA512 
a7ac337b0f0bb11d578c44fd12d292ba8e77568362eaaaecbed8f4bc22ed85aaee911e2dd3153a2197b0165df082821969336d73fe1c5f0374a4636755d9a4ad
 DIST coinor-utils-2.11.9.tar.gz 1234195 BLAKE2B 
5fb097c9c0fc0e76f9b3c269357d70320a1386ea5850ea1f4520da44ef9337ed3540e9a3624676c6094f5571ef62bb3f4fd89d8b49643fb2901850597ad7195b
 SHA512 
c9343edd0ce2dac5a7f025cc8d4a06e48cf966d9b9581d97e787ec801ceda9fbb7ab54c32618304573fed873ba7e291c2562f015fe0446a959b347d32365c2bb

diff --git a/sci-libs/coinor-utils/coinor-utils-2.11.12.ebuild 
b/sci-libs/coinor-utils/coinor-utils-2.11.12.ebuild
new file mode 100644
index 000000000000..28d072db49d3
--- /dev/null
+++ b/sci-libs/coinor-utils/coinor-utils-2.11.12.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PN=CoinUtils
+
+DESCRIPTION="COIN-OR Matrix, Vector and other utility classes"
+HOMEPAGE="https://github.com/coin-or/CoinUtils/";
+SRC_URI="https://github.com/coin-or/${MY_PN}/archive/releases/${PV}.tar.gz
+       -> ${P}.tar.gz"
+LICENSE="EPL-1.0"
+
+S="${WORKDIR}/${MY_PN}-releases-${PV}/${MY_PN}"
+
+# major soname component
+SLOT="0/3"
+
+KEYWORDS="~amd64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 doc glpk blas lapack static-libs test zlib"
+RESTRICT="!test? ( test )"
+
+# Fortran is NOT needed, but the ./configure scripts for all of the CoinOR
+# packages contain a check for it. Gentoo bug 601648 and upstream issue,
+#
+#   https://github.com/coin-or/CoinUtils/issues/132
+#
+BDEPEND="virtual/fortran
+       virtual/pkgconfig
+       doc? ( app-text/doxygen[dot] )
+       test? ( sci-libs/coinor-sample )"
+DEPEND="sys-libs/readline:0=
+       blas? ( virtual/blas )
+       bzip2? ( app-arch/bzip2 )
+       glpk? ( sci-mathematics/glpk:= )
+       lapack? ( virtual/lapack )
+       zlib? ( virtual/zlib )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       # Needed to make the --with-coin-instdir in src_configure happy.
+       dodir /usr
+
+       # They don't need to guess at this, but they do, and get it wrong...
+       sed -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \
+               -i configure \
+               || die "failed to fix the pkgconfig path in ${S}/configure"
+
+       default
+}
+
+src_configure() {
+       local myeconfargs=(
+               --enable-dependency-linking
+               --with-coin-instdir="${ED}/usr"
+               $(use_enable zlib)
+               $(use_enable bzip2 bzlib)
+               $(use_with doc dot)
+       )
+       if use blas; then
+               myeconfargs+=( --with-blas-lib="$($(tc-getPKG_CONFIG) --libs 
blas)" )
+       else
+               myeconfargs+=( --without-blas )
+       fi
+       if use glpk; then
+               myeconfargs+=(
+                       --with-glpk-incdir="${EPREFIX}"/usr/include
+                       --with-glpk-lib=-lglpk
+               )
+       else
+               myeconfargs+=( --without-glpk )
+       fi
+       if use lapack; then
+               myeconfargs+=( --with-lapack="$($(tc-getPKG_CONFIG) --libs 
lapack)" )
+       else
+               myeconfargs+=( --without-lapack )
+       fi
+
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       emake all $(usex doc doxydoc "")
+}
+
+src_test() {
+       # NOT redundant! The build system has a "make check" target that does
+       # nothing, so if you don't specify "test" here, you'll get a no-op.
+       emake test
+}
+
+src_install() {
+       use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/")
+
+       emake DESTDIR="${ED}" install
+
+       # Duplicate junk, and in the wrong location.
+       rm -r "${ED}/usr/share/coin/doc/${MY_PN}" || die
+}

Reply via email to