summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <sudinave@gmail.com>2021-02-26 03:28:15 -0500
committerSam James <sam@gentoo.org>2021-02-27 03:06:26 +0000
commit968b95068d1971a866cadbc78e0294d0ac232131 (patch)
treeba59a536ea6ddee90d226c4a59b6bdce16abf938 /sci-libs/coinor-couenne
parentsci-libs/coinor-couenne: add github remote-id (diff)
downloadgentoo-968b95068d1971a866cadbc78e0294d0ac232131.tar.gz
gentoo-968b95068d1971a866cadbc78e0294d0ac232131.tar.bz2
gentoo-968b95068d1971a866cadbc78e0294d0ac232131.zip
sci-libs/coinor-couenne: bump to 0.5.8, ported to EAPI 7
Cleaned up old workarounds and reworked deps. USE=doc now installs html docs. USE=static-libs removed. Added fortran-2 inherit, unlike some other coinor-*, fortran isn't only needed for ./configure tests. Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/coinor-couenne')
-rw-r--r--sci-libs/coinor-couenne/Manifest1
-rw-r--r--sci-libs/coinor-couenne/coinor-couenne-0.5.8.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/sci-libs/coinor-couenne/Manifest b/sci-libs/coinor-couenne/Manifest
index eb1e553fb1c9..ddca61f5d0eb 100644
--- a/sci-libs/coinor-couenne/Manifest
+++ b/sci-libs/coinor-couenne/Manifest
@@ -1 +1,2 @@
DIST Couenne-0.4.7.tgz 12487353 BLAKE2B 795a1d04ee6186e519d57a59ccc7dfa77ec28717b3e3f75d1ed6513438e869d69970c27dc0de758d421e7f5c5f2dfb3308270b185c05b44ef214c760b1f25e39 SHA512 ae87ebee778d6782fffe9e6f6c7c8f604140f6134e29824f89e4f87bb86ac00ac1b2d8de274b23de16078a48a1444fbe7960b15ffefdc1798dca8972a8946deb
+DIST coinor-couenne-0.5.8.tar.gz 1321163 BLAKE2B 841a4af3d76fd308ef5abe481157fa1ecf307e7fae03fa0cb931483be74443febc7eb1ba7e85f47c3dca5d5447a74ae86dc0f3dbeb6c0f0032f543861462e0a1 SHA512 bf474503bd77be6536f9d00b40ff45041b3976ea2167d64e667fa580aa8ed6a383861ec67d57eec83623b6542f7779ed7d50d9b72347c3f77ef36a194a3f9e71
diff --git a/sci-libs/coinor-couenne/coinor-couenne-0.5.8.ebuild b/sci-libs/coinor-couenne/coinor-couenne-0.5.8.ebuild
new file mode 100644
index 000000000000..fd0fc656ee41
--- /dev/null
+++ b/sci-libs/coinor-couenne/coinor-couenne-0.5.8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fortran-2
+
+DESCRIPTION="COIN-OR Convex Over and Under ENvelopes for Nonlinear Estimation"
+HOMEPAGE="https://projects.coin-or.org/Couenne/"
+SRC_URI="https://github.com/coin-or/Couenne/archive/releases/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/Couenne-releases-${PV}/Couenne"
+
+LICENSE="EPL-1.0"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="
+ sci-libs/coinor-bonmin:=
+ sci-libs/coinor-cbc:=
+ sci-libs/coinor-cgl:=
+ sci-libs/coinor-clp:=
+ sci-libs/coinor-osi:=
+ sci-libs/coinor-utils:=
+ sci-libs/ipopt:=
+ virtual/blas"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? (
+ app-doc/doxygen[dot]
+ virtual/latex-base
+ )"
+
+src_prepare() {
+ default
+ # Prevent unneeded call to pkg-config that needs ${ED}'s in path.
+ sed -i '/--libs.*addlibs.txt/d' Makefile.in || die
+}
+
+src_configure() {
+ econf $(use_with doc dot)
+}
+
+src_compile() {
+ emake all $(usex doc doxydoc '')
+}
+
+src_install() {
+ default
+ dodoc doc/couenne-user-manual.pdf
+ use doc && dodoc -r doxydoc/html
+
+ # Duplicate or irrelevant files.
+ rm -r "${ED}"/usr/share/coin/doc || die
+ find "${ED}" -name '*.la' -delete || die
+}