mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
sci-mathematics/mccs: add cudf solvers files from debian
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
3
sci-mathematics/mccs/files/mccs-cbc
Normal file
3
sci-mathematics/mccs/files/mccs-cbc
Normal file
@@ -0,0 +1,3 @@
|
||||
description: CUDF solver based on the Mixed Integer Linear Programming solver Cbc
|
||||
exec: /usr/bin/mccs -i $in -o $out $pref
|
||||
cudf-version: 2.0
|
||||
3
sci-mathematics/mccs/files/mccs-lpsolve
Normal file
3
sci-mathematics/mccs/files/mccs-lpsolve
Normal file
@@ -0,0 +1,3 @@
|
||||
description: CUDF solver based on the Mixed Integer Linear Programming solver lp_solve
|
||||
exec: /usr/bin/mccs -i $in -o $out -lpsolve $pref
|
||||
cudf-version: 2.0
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic optfeature toolchain-funcs
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Multi Criteria CUDF Solver"
|
||||
HOMEPAGE="https://www.i3s.unice.fr/~cpjm/misc/mccs.html"
|
||||
@@ -21,7 +21,10 @@ RDEPEND="
|
||||
glpk? ( sci-mathematics/glpk )
|
||||
lpsolve? ( sci-mathematics/lpsolve )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sci-libs/coinor-cbc
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
dev-util/quilt
|
||||
@@ -62,12 +65,12 @@ src_install() {
|
||||
dodoc README CHANGES
|
||||
dodoc -r examples
|
||||
|
||||
insinto /usr/share/cudf/solvers
|
||||
doins "${FILESDIR}/mccs-cbc"
|
||||
use lpsolve && doins "${FILESDIR}/mccs-lpsolve"
|
||||
|
||||
dobin sciplp cbclp wbopb mccs
|
||||
exeinto "/usr/libexec/${PN}"
|
||||
doexe solve{paranoid,trendy}
|
||||
dolib.so libccudf.so
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "in order to use cbclp" sci-libs/coinor-cbc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user