1 |
commit: f156562b157e5e59722065a39c5264413fcde2f1 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 27 16:45:43 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 27 16:45:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f156562b |
7 |
|
8 |
sci-mathematics/cvc4: version bump to 1.8 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/cvc4/Manifest | 1 + |
14 |
sci-mathematics/cvc4/cvc4-1.8.ebuild | 55 ++++++++++++++++++++++++ |
15 |
sci-mathematics/cvc4/files/cvc4-1.8-gentoo.patch | 42 ++++++++++++++++++ |
16 |
3 files changed, 98 insertions(+) |
17 |
|
18 |
diff --git a/sci-mathematics/cvc4/Manifest b/sci-mathematics/cvc4/Manifest |
19 |
index bf26cdb9e5e..fe5e434767b 100644 |
20 |
--- a/sci-mathematics/cvc4/Manifest |
21 |
+++ b/sci-mathematics/cvc4/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST cvc4-1.7.tar.gz 6969953 BLAKE2B 3a64db14a734e0314fb7d7b8dbed79e067c9bbf1723343dac1e9c47b3f09811b1a32ff0116412667bd0afefda2489c6c1679bf109710402a67bee0d91b62dd94 SHA512 b91dfac7ddf979a3474f562eb98f2d6f17a53efa38c1be5502429309a0c059e1f2b0d85ee95e5aee17d35f34c825f01f879ec4aaf26025b1fcac835c33a867c6 |
24 |
+DIST cvc4-1.8.tar.gz 7554297 BLAKE2B f4d2b223ba2c01ef745520d8874381a1873358fbc7eca12559656512ffeefccec4eca3d73a26debf34110ca14a3bccf35ca87e2a49575b8b67484bed79df081c SHA512 d6b0153b0f5c4e615c995a8eecfbfd783cfc1004c5134c6880230044081c71d638fee39cceb987eb8d72e91b2b6596b184dc0daacec8880cfc176c6dee8aa445 |
25 |
|
26 |
diff --git a/sci-mathematics/cvc4/cvc4-1.8.ebuild b/sci-mathematics/cvc4/cvc4-1.8.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..347dbda0a24 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/cvc4/cvc4-1.8.ebuild |
31 |
@@ -0,0 +1,55 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_MAKEFILE_GENERATOR=emake |
38 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
39 |
+inherit cmake python-any-r1 |
40 |
+ |
41 |
+DESCRIPTION="Automatic theorem prover for satisfiability modulo theories (SMT) problems" |
42 |
+HOMEPAGE="https://cvc4.github.io/" |
43 |
+SRC_URI="https://github.com/CVC4/CVC4-archived/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="+cln proofs readline replay +statistics" |
49 |
+ |
50 |
+RDEPEND="dev-libs/antlr-c |
51 |
+ dev-java/antlr:3 |
52 |
+ dev-libs/boost |
53 |
+ readline? ( sys-libs/readline:0= ) |
54 |
+ cln? ( sci-libs/cln ) |
55 |
+ !cln? ( dev-libs/gmp:= )" |
56 |
+DEPEND="${RDEPEND}" |
57 |
+BDEPEND="${PYTHON_DEPS}" |
58 |
+ |
59 |
+S="${WORKDIR}"/${PN^^}-archived-${PV} |
60 |
+ |
61 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
62 |
+ |
63 |
+src_configure() { |
64 |
+ local mycmakeargs=( |
65 |
+ -DANTLR_BINARY=/usr/bin/antlr3 |
66 |
+ -DENABLE_GPL=ON |
67 |
+ -DENABLE_OPTIMIZED=ON |
68 |
+ -DUSE_CLN="$(usex cln ON OFF)" |
69 |
+ -DUSE_READLINE="$(usex readline ON OFF)" |
70 |
+ -DENABLE_STATISTICS="$(usex statistics ON OFF)" |
71 |
+ -DENABLE_PROOFS="$(usex proofs ON OFF)" |
72 |
+ -DENABLE_REPLAY="$(usex replay ON OFF)" |
73 |
+ ) |
74 |
+ cmake_src_configure |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ emake -C "${BUILD_DIR}" \ |
79 |
+ systemtests |
80 |
+ cmake_src_test |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ cmake_src_install |
85 |
+ mv "${D}"/usr/{lib,$(get_libdir)} |
86 |
+} |
87 |
|
88 |
diff --git a/sci-mathematics/cvc4/files/cvc4-1.8-gentoo.patch b/sci-mathematics/cvc4/files/cvc4-1.8-gentoo.patch |
89 |
new file mode 100644 |
90 |
index 00000000000..372bea03fb7 |
91 |
--- /dev/null |
92 |
+++ b/sci-mathematics/cvc4/files/cvc4-1.8-gentoo.patch |
93 |
@@ -0,0 +1,42 @@ |
94 |
+--- a/CMakeLists.txt 2019-07-09 14:47:12.552425226 +0200 |
95 |
++++ b/CMakeLists.txt 2019-07-09 14:50:02.595001358 +0200 |
96 |
+@@ -143,7 +143,7 @@ |
97 |
+ |
98 |
+ # Note: Module CodeCoverage requires the name of the debug build to conform |
99 |
+ # to cmake standards (first letter uppercase). |
100 |
+-set(BUILD_TYPES Production Debug Testing Competition) |
101 |
++set(BUILD_TYPES Production Debug Testing Competition Gentoo) |
102 |
+ |
103 |
+ if(ENABLE_ASAN) |
104 |
+ #_cmake_modify_IGNORE set(CMAKE_BUILD_TYPE Debug) |
105 |
+@@ -166,12 +166,10 @@ |
106 |
+ endif() |
107 |
+ |
108 |
+ message(STATUS "Building ${CMAKE_BUILD_TYPE} build") |
109 |
+-include(Config${CMAKE_BUILD_TYPE}) |
110 |
+ |
111 |
+ #-----------------------------------------------------------------------------# |
112 |
+ # Compiler flags |
113 |
+ |
114 |
+-add_check_c_cxx_flag("-O${OPTIMIZATION_LEVEL}") |
115 |
+ add_check_c_cxx_flag("-Wall") |
116 |
+ add_check_c_flag("-fexceptions") |
117 |
+ add_check_c_cxx_flag("-Wno-deprecated") |
118 |
+--- a/test/regress/CMakeLists.txt 2019-07-14 09:49:38.429990489 +0200 |
119 |
++++ b/test/regress/CMakeLists.txt 2019-07-14 09:50:28.854234838 +0200 |
120 |
+@@ -2155,7 +2155,6 @@ |
121 |
+ regress4/C880mul.miter.shuffled-as.sat03-348.smtv1.smt2 |
122 |
+ regress4/NEQ016_size5.smtv1.smt2 |
123 |
+ regress4/bug143.smtv1.smt2 |
124 |
+- regress4/comb2.shuffled-as.sat03-420.smtv1.smt2 |
125 |
+ regress4/hole10.cvc |
126 |
+ regress4/instance_1151.smtv1.smt2 |
127 |
+ ) |
128 |
+--- a/src/CMakeLists.txt 2019-07-18 08:56:47.923025745 +0200 |
129 |
++++ b/src/CMakeLists.txt 2019-07-18 08:58:10.584750385 +0200 |
130 |
+@@ -915,4 +915,4 @@ |
131 |
+ # Note: This is a temporary fix until the new C++ API is in place. |
132 |
+ install(CODE "execute_process(COMMAND |
133 |
+ ${CMAKE_CURRENT_LIST_DIR}/fix-install-headers.sh |
134 |
+- ${CMAKE_INSTALL_PREFIX})") |
135 |
++ \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX})") |