mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
sci-libs/coinor-cgl: add 0.60.9
latest version Signed-off-by: Dima Pasechnik <dima@pasechnik.info> Part-of: https://github.com/gentoo/gentoo/pull/44519 Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
committed by
Nowa Ammerlaan
parent
e001155dd6
commit
bc564d64cd
@@ -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
|
||||
|
||||
80
sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild
Normal file
80
sci-libs/coinor-cgl/coinor-cgl-0.60.9.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user