From deba8115d2c2af26df42966b91ef04ff4dd79cde Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 May 2020 11:09:11 +0100 Subject: gentoo resync : 14.05.2020 --- sci-libs/coinor-osi/Manifest | 6 +- sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild | 73 ----------------------- sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild | 85 +++++++++++++++++++++++++++ sci-libs/coinor-osi/metadata.xml | 27 ++++----- 4 files changed, 101 insertions(+), 90 deletions(-) delete mode 100644 sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild create mode 100644 sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild (limited to 'sci-libs/coinor-osi') diff --git a/sci-libs/coinor-osi/Manifest b/sci-libs/coinor-osi/Manifest index 0248e5bbf9d5..abbbfe17ffd0 100644 --- a/sci-libs/coinor-osi/Manifest +++ b/sci-libs/coinor-osi/Manifest @@ -1,3 +1,3 @@ -DIST Osi-0.106.6.tgz 7490371 BLAKE2B 76579c536eb5ffe6b7a79e4e28ee438bf06cdae45f7934435a7174df7bfe4d2a03b2ea79454b4f15df893f968dad34cda6c66503b853842d9c7815702fd9d048 SHA512 25d2dd1791b73329fa9bc32f7b4a4f3d0600ce600868bd14d902dd0ea1c6f5a2eca4bff01ac65ea2843e725fd5c218fca6def9d6974e6af9692c47973b6202ef -EBUILD coinor-osi-0.106.6.ebuild 1570 BLAKE2B 51b604620d8a55ce82e93fc027351b34e93fc9528baf0841903da4db90f274e8c231d07a1a8b87255e5a74de5eb5db4fba7c53684822eaf55470f08a40d52d5e SHA512 0461c77adaaf42e1241d56264f733f2ae4f7225676d049491189fbe56561eae64345fe666efa1a336689644e632631573250c954829168fbbc29ef62c42a44e5 -MISC metadata.xml 664 BLAKE2B 6c8ca87a619e6c895f1f494ab017645d964f88489f8d0c6e7ff05e547542b7c9bfec7ebacf5a4b1f9ca282fcd2a59aa4e70baf183d38e84cc06258098dc49d23 SHA512 ce3559d0d784f081f901b655c6c9b9005ebc8975838402a2e62c5c3f0874ba5a94b942023fa023850aa41a9c45e82932bd59af74fc6235c4366f16bd9a364626 +DIST coinor-osi-0.108.6.tar.gz 1015556 BLAKE2B b22e2afb3de728275c10163897deab7889be42bb595bc5c3a5f1163caca6da2ec454ce9c96378420bbfea272465b43d92c405a990351b05dc848dbd50dbbef5a SHA512 757a404487a58a99eaf778a08898befd3431d0a6b64e46c429d3bb83d57c99bd396736dda3a75a1f1c05d3e397925041b386280deef6e23fa1ba5277b81f1d8d +EBUILD coinor-osi-0.108.6.ebuild 2112 BLAKE2B 408cefeb718746b5f16654ce7eb9aa259b10a7f3886865c386bae5797339b8bc17ec4a8ba6d556a81e240be499085e186561f31f647ee14555b6379e6b2bf7f1 SHA512 d268382e4ce08ceab7a88f81b8463489b7198a212d9729177d54defbcd359a2b3b988d75bf7642e591a0d659a76af9e1ad020320d616d0e7aa9883ccc2f62e31 +MISC metadata.xml 648 BLAKE2B 14e6b4ce99e8b331c45c4f37c05515171039b188602b9fb3971f4531b57ffa118c616e45c42b9add91a6b6e6695ccd2844cc242387b2a66070a2494808a39827 SHA512 a323cbe619c38019c3b5c66aa00bf9ac25fc607c944debbe03defe3ad6899cac1f00b3b1c57fad83f323c56cd52ca6b78c10ffaa65751a339d77f8e94b3a42f2 diff --git a/sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild b/sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild deleted file mode 100644 index d7d293c7f43f..000000000000 --- a/sci-libs/coinor-osi/coinor-osi-0.106.6.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit autotools-utils multilib - -MYPN=Osi - -DESCRIPTION="COIN-OR Open Solver Interface" -HOMEPAGE="https://projects.coin-or.org/Osi/" -SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz" - -LICENSE="EPL-1.0" -SLOT="0/1" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc examples glpk static-libs test" -RESTRICT="!test? ( test )" - -RDEPEND=" - sci-libs/coinor-utils:= - glpk? ( sci-mathematics/glpk:= )" -DEPEND="${RDEPEND} - virtual/pkgconfig - doc? ( app-doc/doxygen[dot] ) - test? ( sci-libs/coinor-sample )" - -S="${WORKDIR}/${MYPN}-${PV}/${MYPN}" - -src_prepare() { - # needed for the --with-coin-instdir - dodir /usr - sed -i \ - -e "s:lib/pkgconfig:$(get_libdir)/pkgconfig:g" \ - configure || die - autotools-utils_src_prepare -} - -src_configure() { - local myeconfargs=( - --enable-dependency-linking - --with-coin-instdir="${ED}"/usr - $(use_with doc dot) - ) - if use glpk; then - myeconfargs+=( - --with-glpk-incdir="${EPREFIX}"/usr/include - --with-glpk-lib=-lglpk - ) - else - myeconfargs+=( --without-glpk ) - fi - autotools-utils_src_configure -} - -src_compile() { - autotools-utils_src_compile all $(usex doc doxydoc "") -} - -src_test() { - autotools-utils_src_test test -} - -src_install() { - use doc && HTML_DOC=("${BUILD_DIR}/doxydocs/html/") - autotools-utils_src_install - # already installed - rm "${ED}"/usr/share/coin/doc/${MYPN}/{README,AUTHORS,LICENSE} || die - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi -} diff --git a/sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild b/sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild new file mode 100644 index 000000000000..8b9cf0f637fc --- /dev/null +++ b/sci-libs/coinor-osi/coinor-osi-0.108.6.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~x86 ~amd64-linux ~x86-linux" + +# No USE=glpk because upstream only supports an ancient version of it. The +# following issues were all closed by... documenting that it doesn't work: +# +# * https://github.com/coin-or/Osi/issues/71 +# * https://github.com/coin-or/Osi/issues/107 +# * https://github.com/coin-or/Osi/issues/118 +# +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-doc/doxygen[dot] ) + test? ( sci-libs/coinor-sample )" +DEPEND="sci-libs/coinor-utils:=" +REPEND="${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 +} diff --git a/sci-libs/coinor-osi/metadata.xml b/sci-libs/coinor-osi/metadata.xml index 17b9b82ecf17..af6af3b5df7c 100644 --- a/sci-libs/coinor-osi/metadata.xml +++ b/sci-libs/coinor-osi/metadata.xml @@ -1,18 +1,17 @@ - - sci@gentoo.org - Gentoo Science Project - - - The COIN-OR Open Solver Interface is a uniform API for interacting with - callable solver libraries. It supports linear programming solvers as - well as the ability to "finish off" a mixed-integer problem calling the - solver library's MIP solver. - - - Enable GNU Linear Programming Kit - sci-mathematics/glpk support - + + sci@gentoo.org + Gentoo Science Project + + + The COIN-OR Open Solver Interface is a uniform API for interacting + with callable solver libraries. It supports linear programming + solvers as well as the ability to "finish off" a mixed-integer + problem calling the solver library's MIP solver. + + + coin-or/Osi + -- cgit v1.2.3