Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-mathematics/aspcud/, sci-mathematics/aspcud/files/
Date: Mon, 02 May 2022 20:01:23
Message-Id: 1651521675.b98c64e9f756d7e95130de35c66a3b861c35d6d8.Alessandro-Barbieri@gentoo
1 commit: b98c64e9f756d7e95130de35c66a3b861c35d6d8
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon May 2 20:00:56 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Mon May 2 20:01:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b98c64e9
7
8 sci-mathematics/aspcud: add 1.9.6
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sci-mathematics/aspcud/Manifest | 1 +
13 sci-mathematics/aspcud/aspcud-1.9.6.ebuild | 52 ++++++++++++++++++++++
14 .../aspcud/files/aspcud-1.9.6-system-catch.patch | 10 +++++
15 3 files changed, 63 insertions(+)
16
17 diff --git a/sci-mathematics/aspcud/Manifest b/sci-mathematics/aspcud/Manifest
18 index 129f7b224..8804e929b 100644
19 --- a/sci-mathematics/aspcud/Manifest
20 +++ b/sci-mathematics/aspcud/Manifest
21 @@ -1 +1,2 @@
22 DIST aspcud-1.9.5.tar.gz 70073941 BLAKE2B e2f02259a726d05a664e63836ab24d798b3ef96276c92caf00907df5ea3d08b9d5e992c3ffb2f8ad95864e4251e2adde596d6327e71e7ae33fabd515eaeafb13 SHA512 b6c85f7e67cbf8df8dd0ed4f8fd5f988e46bf3f9756e4cb8fadfae955ed70bc27279e8dddcfe8161543e5276a70d2103816fce8edebc240fef6b182841832106
23 +DIST aspcud-1.9.6.tar.gz 70041232 BLAKE2B 9854185b9674a062ce017b1c210ca7fb3b802e564c46a2036d48bb3178c1d5c0158841ee9e1f4c0a33b30038c2d4477f307c14415df48cf50c37682ef292fce0 SHA512 a46183c2fd3b17881d48c3396164cded4b5214a2a8a31a499254533a8a71fb084a8b6f13ee1dc8eea72f7d9819caf2921f31a5ccc1cbd6611f9175e0bc10c14a
24
25 diff --git a/sci-mathematics/aspcud/aspcud-1.9.6.ebuild b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild
26 new file mode 100644
27 index 000000000..0d38b0e6c
28 --- /dev/null
29 +++ b/sci-mathematics/aspcud/aspcud-1.9.6.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit cmake
37 +
38 +DESCRIPTION="A solver for package problems in CUDF format"
39 +HOMEPAGE="
40 + https://github.com/potassco/aspcud
41 + https://potassco.org/aspcud/
42 +"
43 +SRC_URI="https://github.com/potassco/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="test"
49 +
50 +DEPEND="
51 + dev-libs/boost:=
52 + test? ( dev-cpp/catch:0 )
53 +"
54 +RDEPEND="
55 + ${DEPEND}
56 + sci-mathematics/clasp
57 + sci-mathematics/clingo
58 +"
59 +BDEPEND="dev-util/re2c"
60 +
61 +RESTRICT="!test? ( test )"
62 +PATCHES=( "${FILESDIR}/${P}-system-catch.patch" )
63 +
64 +src_prepare() {
65 + rm libcudf/tests/catch.hpp || die
66 + cmake_src_prepare
67 +}
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + -DASPCUD_BUILD_TESTS=$(usex test)
72 +
73 + -DASPCUD_BUILD_STATIC=OFF
74 + )
75 + cmake_src_configure
76 +}
77 +
78 +src_install() {
79 + cmake_src_install
80 + insinto /usr/share/cudf/solvers/
81 + doins "${FILESDIR}/aspcud"
82 +}
83
84 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
85 new file mode 100644
86 index 000000000..b08c3100e
87 --- /dev/null
88 +++ b/sci-mathematics/aspcud/files/aspcud-1.9.6-system-catch.patch
89 @@ -0,0 +1,10 @@
90 +--- a/libcudf/tests/CMakeLists.txt
91 ++++ b/libcudf/tests/CMakeLists.txt
92 +@@ -1,7 +1,6 @@
93 + # [[[source: .
94 + set(ide_source_group "Source Files")
95 + set(source-group
96 +- "${CMAKE_CURRENT_SOURCE_DIR}/catch.hpp"
97 + "${CMAKE_CURRENT_SOURCE_DIR}/criteria.cc"
98 + "${CMAKE_CURRENT_SOURCE_DIR}/critparser.cc"
99 + "${CMAKE_CURRENT_SOURCE_DIR}/helpers.hh"