Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/coinor-flopcpp/
Date: Sat, 27 Feb 2021 03:08:22
Message-Id: 1614395198.cd4588a3a8db432b6b8312d5675c1de297803334.sam@gentoo
1 commit: cd4588a3a8db432b6b8312d5675c1de297803334
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 26 13:00:07 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 03:06:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd4588a3
7
8 sci-libs/coinor-flopcpp: bump to 1.2.5, ported to EAPI 7
9
10 Has reworked old workarounds and reviewed deps.
11
12 USE=examples removed, now installed unconditionally (small files).
13 USE=static-libs removed.
14
15 Bump fixed previous build issues (bug #664540).
16
17 Closes: https://bugs.gentoo.org/664540
18 Package-Manager: Portage-3.0.15, Repoman-3.0.2
19 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
20 Signed-off-by: Sam James <sam <AT> gentoo.org>
21
22 sci-libs/coinor-flopcpp/Manifest | 1 +
23 .../coinor-flopcpp/coinor-flopcpp-1.2.5.ebuild | 50 ++++++++++++++++++++++
24 2 files changed, 51 insertions(+)
25
26 diff --git a/sci-libs/coinor-flopcpp/Manifest b/sci-libs/coinor-flopcpp/Manifest
27 index d49afb42cd7..01cedc97e66 100644
28 --- a/sci-libs/coinor-flopcpp/Manifest
29 +++ b/sci-libs/coinor-flopcpp/Manifest
30 @@ -1 +1,2 @@
31 DIST FlopC++-1.1.7.tgz 6631744 BLAKE2B a6666480b800819b2132c6375483c35542bfd177201cd6cdd9b6ab36c42ef5d66308bf049ba0e7d7891cec32656e9fc0e4684c04e4628b5de3758be277d55142 SHA512 40f59cb34f61f6ff1759a90909a81d724a562ee9dbfe91628ad8df1b8049afff254ceeb56f1e68a48d035e6d3a140744b8ebd8815ee39c9f01e17860c904942d
32 +DIST coinor-flopcpp-1.2.5.tar.gz 615614 BLAKE2B ff356ca41ed7639c2916c55f04ae561abfaeef041bd04730d0ca774cb6506f023c1c31e3463d93a34f41d534fb189cb794a20daa155dbdf43303c22272a6c986 SHA512 45d9e5b976d2fb26be34d5e201a7aed24ec8717472902f4848c353a12f17488903b00e6675e2a3e90ac0da58581afb6fd48d3869b8fd7ce962cef98622755d7d
33
34 diff --git a/sci-libs/coinor-flopcpp/coinor-flopcpp-1.2.5.ebuild b/sci-libs/coinor-flopcpp/coinor-flopcpp-1.2.5.ebuild
35 new file mode 100644
36 index 00000000000..9139e3120b4
37 --- /dev/null
38 +++ b/sci-libs/coinor-flopcpp/coinor-flopcpp-1.2.5.ebuild
39 @@ -0,0 +1,50 @@
40 +# Copyright 1999-2021 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=7
44 +
45 +DESCRIPTION="COIN-OR algebraic modeling language for linear optimization"
46 +HOMEPAGE="https://projects.coin-or.org/FlopC++/"
47 +SRC_URI="https://github.com/coin-or/FlopCpp/archive/releases/${PV}.tar.gz -> ${P}.tar.gz"
48 +S="${WORKDIR}/FlopCpp-releases-${PV}/FlopCpp"
49 +
50 +LICENSE="EPL-1.0"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
53 +IUSE="doc"
54 +
55 +RDEPEND="
56 + sci-libs/coinor-osi:=
57 + sci-libs/coinor-utils:="
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + virtual/pkgconfig
61 + doc? ( app-doc/doxygen[dot] )"
62 +
63 +src_prepare() {
64 + default
65 + # Prevent unneeded call to pkg-config that needs ${ED}'s in path.
66 + sed -i '/--libs.*addlibs.txt/d' Makefile.in || die
67 +}
68 +
69 +src_configure() {
70 + econf $(use_with doc dot)
71 +}
72 +
73 +src_compile() {
74 + emake all $(usex doc doxydoc '')
75 +}
76 +
77 +src_test() {
78 + emake -j1 test
79 +}
80 +
81 +src_install() {
82 + default
83 + dodoc -r examples
84 + use doc && dodoc -r doxydoc/html
85 +
86 + # Duplicate or irrelevant files.
87 + rm -r "${ED}"/usr/share/coin/doc || die
88 + find "${ED}" -name '*.la' -delete || die
89 +}