* [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/aspcud/, sci-mathematics/aspcud/files/
@ 2022-04-29 1:48 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2022-04-29 1:48 UTC (permalink / raw
To: gentoo-commits
commit: 7c4164af890c6603c423341d38dd3d2da5746600
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Apr 29 01:11:11 2022 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Apr 29 01:47:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7c4164af
sci-mathematics/aspcud: add cudf solvers file from debian
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sci-mathematics/aspcud/aspcud-1.9.5.ebuild | 14 ++++++++++----
sci-mathematics/aspcud/files/aspcud | 3 +++
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/aspcud/, sci-mathematics/aspcud/files/
@ 2022-05-02 20:01 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2022-05-02 20:01 UTC (permalink / raw
To: gentoo-commits
commit: b98c64e9f756d7e95130de35c66a3b861c35d6d8
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon May 2 20:00:56 2022 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon May 2 20:01:15 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b98c64e9
sci-mathematics/aspcud: add 1.9.6
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sci-mathematics/aspcud/Manifest | 1 +
sci-mathematics/aspcud/aspcud-1.9.6.ebuild | 52 ++++++++++++++++++++++
.../aspcud/files/aspcud-1.9.6-system-catch.patch | 10 +++++
3 files changed, 63 insertions(+)
diff --git a/sci-mathematics/aspcud/Manifest b/sci-mathematics/aspcud/Manifest
index 129f7b224..8804e929b 100644
--- a/sci-mathematics/aspcud/Manifest
+++ b/sci-mathematics/aspcud/Manifest
@@ -1 +1,2 @@
DIST aspcud-1.9.5.tar.gz 70073941 BLAKE2B e2f02259a726d05a664e63836ab24d798b3ef96276c92caf00907df5ea3d08b9d5e992c3ffb2f8ad95864e4251e2adde596d6327e71e7ae33fabd515eaeafb13 SHA512 b6c85f7e67cbf8df8dd0ed4f8fd5f988e46bf3f9756e4cb8fadfae955ed70bc27279e8dddcfe8161543e5276a70d2103816fce8edebc240fef6b182841832106
+DIST aspcud-1.9.6.tar.gz 70041232 BLAKE2B 9854185b9674a062ce017b1c210ca7fb3b802e564c46a2036d48bb3178c1d5c0158841ee9e1f4c0a33b30038c2d4477f307c14415df48cf50c37682ef292fce0 SHA512 a46183c2fd3b17881d48c3396164cded4b5214a2a8a31a499254533a8a71fb084a8b6f13ee1dc8eea72f7d9819caf2921f31a5ccc1cbd6611f9175e0bc10c14a
diff --git a/sci-mathematics/aspcud/aspcud-1.9.6.ebuild b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild
new file mode 100644
index 000000000..0d38b0e6c
--- /dev/null
+++ b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A solver for package problems in CUDF format"
+HOMEPAGE="
+ https://github.com/potassco/aspcud
+ https://potassco.org/aspcud/
+"
+SRC_URI="https://github.com/potassco/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+DEPEND="
+ dev-libs/boost:=
+ test? ( dev-cpp/catch:0 )
+"
+RDEPEND="
+ ${DEPEND}
+ sci-mathematics/clasp
+ sci-mathematics/clingo
+"
+BDEPEND="dev-util/re2c"
+
+RESTRICT="!test? ( test )"
+PATCHES=( "${FILESDIR}/${P}-system-catch.patch" )
+
+src_prepare() {
+ rm libcudf/tests/catch.hpp || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DASPCUD_BUILD_TESTS=$(usex test)
+
+ -DASPCUD_BUILD_STATIC=OFF
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ insinto /usr/share/cudf/solvers/
+ doins "${FILESDIR}/aspcud"
+}
diff --git a/sci-mathematics/aspcud/files/aspcud-1.9.6-system-catch.patch b/sci-mathematics/aspcud/files/aspcud-1.9.6-system-catch.patch
new file mode 100644
index 000000000..b08c3100e
--- /dev/null
+++ b/sci-mathematics/aspcud/files/aspcud-1.9.6-system-catch.patch
@@ -0,0 +1,10 @@
+--- a/libcudf/tests/CMakeLists.txt
++++ b/libcudf/tests/CMakeLists.txt
+@@ -1,7 +1,6 @@
+ # [[[source: .
+ set(ide_source_group "Source Files")
+ set(source-group
+- "${CMAKE_CURRENT_SOURCE_DIR}/catch.hpp"
+ "${CMAKE_CURRENT_SOURCE_DIR}/criteria.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/critparser.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/helpers.hh"
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-02 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 20:01 [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/aspcud/, sci-mathematics/aspcud/files/ Alessandro Barbieri
-- strict thread matches above, loose matches on Subject: below --
2022-04-29 1:48 Alessandro Barbieri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox