commit:     64ce3828fa087970f517a12d5a36b9436d5b8738
Author:     Dima Pasechnik <dima <AT> pasechnik <DOT> info>
AuthorDate: Thu Nov  6 19:31:40 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 21:02:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ce3828

sci-libs/coinor-osi: add 0.108.11

Also, remove outdated comments about gplk incompatibilty - these have
been fixed years back.

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-osi/Manifest                   |  1 +
 sci-libs/coinor-osi/coinor-osi-0.108.11.ebuild | 78 ++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/sci-libs/coinor-osi/Manifest b/sci-libs/coinor-osi/Manifest
index 979276bc8a2c..0733a089e4d7 100644
--- a/sci-libs/coinor-osi/Manifest
+++ b/sci-libs/coinor-osi/Manifest
@@ -1 +1,2 @@
+DIST coinor-osi-0.108.11.tar.gz 1037739 BLAKE2B 
b6a712f6b74e96e5cbd9be3d4986cfeb7f7a5b8698ace7e70c03db82b3c7d0dbceb4fb215c3fa1f6d3fd518b00d685f873c8b0add260c1c0bffbf92dea5e8039
 SHA512 
54e6b88d3b862cbf6e37a1c771aa8860e3573448b99c248e913b425cd6de7fe6a1cc595d87098cfde2403e2eaf3fb8a75252166e2d0e4f9f0c10826e9f051622
 DIST coinor-osi-0.108.6.tar.gz 1015556 BLAKE2B 
b22e2afb3de728275c10163897deab7889be42bb595bc5c3a5f1163caca6da2ec454ce9c96378420bbfea272465b43d92c405a990351b05dc848dbd50dbbef5a
 SHA512 
757a404487a58a99eaf778a08898befd3431d0a6b64e46c429d3bb83d57c99bd396736dda3a75a1f1c05d3e397925041b386280deef6e23fa1ba5277b81f1d8d

diff --git a/sci-libs/coinor-osi/coinor-osi-0.108.11.ebuild 
b/sci-libs/coinor-osi/coinor-osi-0.108.11.ebuild
new file mode 100644
index 000000000000..bda906a2bb64
--- /dev/null
+++ b/sci-libs/coinor-osi/coinor-osi-0.108.11.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=Osi
+
+DESCRIPTION="COIN-OR Open Solver Interface"
+HOMEPAGE="https://github.com/coin-or/Osi/";
+SRC_URI="https://github.com/coin-or/${MY_PN}/archive/releases/${PV}.tar.gz
+       -> ${P}.tar.gz"
+LICENSE="EPL-1.0"
+
+# major soname component
+SLOT="0/1"
+
+KEYWORDS="~amd64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="doc examples static-libs test"
+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="sci-libs/coinor-utils:="
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-releases-${PV}/${MY_PN}"
+
+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_with doc dot)
+       )
+
+       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="${D}" install
+
+       # Duplicate junk, and in the wrong location.
+       rm -r "${ED}/usr/share/coin/doc/${MY_PN}" || die
+
+       use examples && dodoc -r examples
+}

Reply via email to