commit:     bc564d64cd69d69864b340b1ea7ff99ff53acaa4
Author:     Dima Pasechnik <dima <AT> pasechnik <DOT> info>
AuthorDate: Thu Nov  6 20:57:09 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 21:02:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc564d64

sci-libs/coinor-cgl: add 0.60.9

latest version

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-cgl/Manifest                 |  1 +
 sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild | 80 ++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/sci-libs/coinor-cgl/Manifest b/sci-libs/coinor-cgl/Manifest
index d3c44518e2e1..364b1864352b 100644
--- a/sci-libs/coinor-cgl/Manifest
+++ b/sci-libs/coinor-cgl/Manifest
@@ -1 +1,2 @@
 DIST coinor-cgl-0.60.3.tar.gz 1267590 BLAKE2B 
54a215c98bc05c65d46b6c7a469e28f06d04372e257825122693f0953582c8f1be2ede91efccdd21635dc365671653f0321d314ac41d1da01b561c2173a42da4
 SHA512 
e34080b893cfe46f99ffee093235618679ed47b6bed9798ea2d0dc0678716d9b8d947a66f6a6b283fe41807eb323dfcb512ba39d8d73fda1efafad92c408be9d
+DIST coinor-cgl-0.60.9.tar.gz 1291554 BLAKE2B 
878e1d913d8fa0ad8a69e31ce34986bbf4a38dcaa801e064d77e1df896724882314cacffa9ddf12dcebfde17b89c0d452f7f8439fc16f132d106ab4635b0d53f
 SHA512 
c6134fd4e10ea6b574d8dd61a4be020d0ff0461400a675008003920dab343fd0c4fa75199d025b610dec14cb5e4f6e550dc3f8e3f94a0bc9dd52820eb9689a59

diff --git a/sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild 
b/sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild
new file mode 100644
index 000000000000..830c9488ef77
--- /dev/null
+++ b/sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=Cgl
+
+DESCRIPTION="COIN-OR cut-generation library"
+HOMEPAGE="https://projects.coin-or.org/Cgl/";
+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-clp:=
+       sci-libs/coinor-osi:=
+       sci-libs/coinor-utils:=
+       sci-libs/coinor-vol:="
+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