1 |
commit: 715ff149a4cb25d21cd7970be3ef3988a64f3aea |
2 |
Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 26 13:42:58 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 03:06:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=715ff149 |
7 |
|
8 |
sci-libs/coinor-smi: bump to 0.96.1, 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 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
16 |
Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com> |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
sci-libs/coinor-smi/Manifest | 1 + |
20 |
sci-libs/coinor-smi/coinor-smi-0.96.1.ebuild | 53 ++++++++++++++++++++++++++++ |
21 |
2 files changed, 54 insertions(+) |
22 |
|
23 |
diff --git a/sci-libs/coinor-smi/Manifest b/sci-libs/coinor-smi/Manifest |
24 |
index f198065b45e..07030ca08ff 100644 |
25 |
--- a/sci-libs/coinor-smi/Manifest |
26 |
+++ b/sci-libs/coinor-smi/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST Smi-0.93.4.tgz 4907130 BLAKE2B 329cd05ee42cf2fe0928a9fd9049c0a296632bf6c30bc6ca86f62066ee425982a853223581110b4e3e4d7a6a049e06bbb366802b1a18d175e1dc2a1a38772e9b SHA512 9439b7421475cf5d0c85f529305657e04d1ebb3eca28399b0df0352b52df315e9dceb3f1410ada0b7a6f9447b0e383116fb208d6447994ce1611f019fcace007 |
29 |
+DIST coinor-smi-0.96.1.tar.gz 653402 BLAKE2B 7a81d0c67168ecd7059a814af7ba8fea57c8bc0316db95ea6a8a8a1717d7584ecfafe623b7de6b66908b5f85bc02cd0b1d1781fb7145c901efe6a8ddeb92afe6 SHA512 cadb4c89c0a385b762fab985a6a8880dd659feb4496e39826f337a9a323ea5de1fbed51f4b414b1f6eb36fbd02292ed42a1d216bf54d27f2d5bb242012b571c9 |
30 |
|
31 |
diff --git a/sci-libs/coinor-smi/coinor-smi-0.96.1.ebuild b/sci-libs/coinor-smi/coinor-smi-0.96.1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..e91f6006f74 |
34 |
--- /dev/null |
35 |
+++ b/sci-libs/coinor-smi/coinor-smi-0.96.1.ebuild |
36 |
@@ -0,0 +1,53 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+DESCRIPTION="COIN-OR Stochastic modelling interface" |
43 |
+HOMEPAGE="https://projects.coin-or.org/Smi/" |
44 |
+SRC_URI="https://github.com/coin-or/Smi/archive/releases/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+S="${WORKDIR}/Smi-releases-${PV}/Smi" |
46 |
+ |
47 |
+LICENSE="CPL-1.0" |
48 |
+SLOT="0/2" |
49 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="doc" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ sci-libs/coinor-clp:= |
54 |
+ sci-libs/coinor-flopcpp:= |
55 |
+ sci-libs/coinor-osi:= |
56 |
+ sci-libs/coinor-utils:=" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+BDEPEND=" |
59 |
+ virtual/pkgconfig |
60 |
+ doc? ( app-doc/doxygen[dot] )" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ # Prevent unneeded call to pkg-config that needs ${ED}'s in path. |
65 |
+ sed -i '/--libs.*addlibs.txt/d' Makefile.in || die |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf $(use_with doc dot) |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ emake all $(usex doc doxydoc '') |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ # Needed given "make check" is a noop and it skips the working one. |
78 |
+ emake test |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ default |
83 |
+ dodoc -r examples flopcpp_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 |
+} |