aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-04-29 03:11:11 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-04-29 03:47:59 +0200
commit7c4164af890c6603c423341d38dd3d2da5746600 (patch)
treeceda6987eff6a71a508536db788fe876f4291733 /sci-mathematics
parentsci-mathematics/mccs: add cudf solvers files from debian (diff)
downloadguru-7c4164af890c6603c423341d38dd3d2da5746600.tar.gz
guru-7c4164af890c6603c423341d38dd3d2da5746600.tar.bz2
guru-7c4164af890c6603c423341d38dd3d2da5746600.zip
sci-mathematics/aspcud: add cudf solvers file from debian
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/aspcud/aspcud-1.9.5.ebuild14
-rw-r--r--sci-mathematics/aspcud/files/aspcud3
2 files changed, 13 insertions, 4 deletions
diff --git a/sci-mathematics/aspcud/aspcud-1.9.5.ebuild b/sci-mathematics/aspcud/aspcud-1.9.5.ebuild
index de5c531c7..8a7ef419d 100644
--- a/sci-mathematics/aspcud/aspcud-1.9.5.ebuild
+++ b/sci-mathematics/aspcud/aspcud-1.9.5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake optfeature
+inherit cmake
DESCRIPTION="A solver for package problems in CUDF format"
HOMEPAGE="
@@ -18,7 +18,11 @@ KEYWORDS="~amd64"
IUSE="test"
RDEPEND="dev-libs/boost:="
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ sci-mathematics/clasp
+ sci-mathematics/clingo
+"
BDEPEND="dev-util/re2c"
RESTRICT="!test? ( test )"
@@ -32,6 +36,8 @@ src_configure() {
cmake_src_configure
}
-pkg_postinst() {
- optfeature "dependencies needed at runtime" sci-mathematics/clasp sci-mathematics/clingo
+src_install() {
+ cmake_src_install
+ insinto /usr/share/cudf/solvers/
+ doins "${FILESDIR}/aspcud"
}
diff --git a/sci-mathematics/aspcud/files/aspcud b/sci-mathematics/aspcud/files/aspcud
new file mode 100644
index 000000000..7bd867cdf
--- /dev/null
+++ b/sci-mathematics/aspcud/files/aspcud
@@ -0,0 +1,3 @@
+description: CUDF solver based on the Answer Set Programming tools clasp and gringo
+exec: /usr/bin/aspcud "$in" "$out" "$pref"
+cudf-version: 2.0