1 |
commit: 54f6fe2cb2998a3ca2cbf98f1fe8ade59f0af384 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Apr 29 01:07:14 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Apr 29 01:47:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54f6fe2c |
7 |
|
8 |
sci-mathematics/mccs: add cudf solvers files from debian |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sci-mathematics/mccs/files/mccs-cbc | 3 +++ |
13 |
sci-mathematics/mccs/files/mccs-lpsolve | 3 +++ |
14 |
sci-mathematics/mccs/mccs-1.1.ebuild | 15 +++++++++------ |
15 |
3 files changed, 15 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/mccs/files/mccs-cbc b/sci-mathematics/mccs/files/mccs-cbc |
18 |
new file mode 100644 |
19 |
index 000000000..86a919499 |
20 |
--- /dev/null |
21 |
+++ b/sci-mathematics/mccs/files/mccs-cbc |
22 |
@@ -0,0 +1,3 @@ |
23 |
+description: CUDF solver based on the Mixed Integer Linear Programming solver Cbc |
24 |
+exec: /usr/bin/mccs -i $in -o $out $pref |
25 |
+cudf-version: 2.0 |
26 |
|
27 |
diff --git a/sci-mathematics/mccs/files/mccs-lpsolve b/sci-mathematics/mccs/files/mccs-lpsolve |
28 |
new file mode 100644 |
29 |
index 000000000..ee3f2b0a2 |
30 |
--- /dev/null |
31 |
+++ b/sci-mathematics/mccs/files/mccs-lpsolve |
32 |
@@ -0,0 +1,3 @@ |
33 |
+description: CUDF solver based on the Mixed Integer Linear Programming solver lp_solve |
34 |
+exec: /usr/bin/mccs -i $in -o $out -lpsolve $pref |
35 |
+cudf-version: 2.0 |
36 |
|
37 |
diff --git a/sci-mathematics/mccs/mccs-1.1.ebuild b/sci-mathematics/mccs/mccs-1.1.ebuild |
38 |
index 91d76b64d..2da51d1e3 100644 |
39 |
--- a/sci-mathematics/mccs/mccs-1.1.ebuild |
40 |
+++ b/sci-mathematics/mccs/mccs-1.1.ebuild |
41 |
@@ -3,7 +3,7 @@ |
42 |
|
43 |
EAPI=7 |
44 |
|
45 |
-inherit flag-o-matic optfeature toolchain-funcs |
46 |
+inherit flag-o-matic toolchain-funcs |
47 |
|
48 |
DESCRIPTION="Multi Criteria CUDF Solver" |
49 |
HOMEPAGE="https://www.i3s.unice.fr/~cpjm/misc/mccs.html" |
50 |
@@ -21,7 +21,10 @@ RDEPEND=" |
51 |
glpk? ( sci-mathematics/glpk ) |
52 |
lpsolve? ( sci-mathematics/lpsolve ) |
53 |
" |
54 |
-DEPEND="${RDEPEND}" |
55 |
+DEPEND=" |
56 |
+ ${RDEPEND} |
57 |
+ sci-libs/coinor-cbc |
58 |
+" |
59 |
|
60 |
BDEPEND=" |
61 |
dev-util/quilt |
62 |
@@ -62,12 +65,12 @@ src_install() { |
63 |
dodoc README CHANGES |
64 |
dodoc -r examples |
65 |
|
66 |
+ insinto /usr/share/cudf/solvers |
67 |
+ doins "${FILESDIR}/mccs-cbc" |
68 |
+ use lpsolve && doins "${FILESDIR}/mccs-lpsolve" |
69 |
+ |
70 |
dobin sciplp cbclp wbopb mccs |
71 |
exeinto "/usr/libexec/${PN}" |
72 |
doexe solve{paranoid,trendy} |
73 |
dolib.so libccudf.so |
74 |
} |
75 |
- |
76 |
-pkg_postinst() { |
77 |
- optfeature "in order to use cbclp" sci-libs/coinor-cbc |
78 |
-} |