commit:     0e12be7f01b9a372c50a380f33b92f516fddbc85
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 06:19:37 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 06:24:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e12be7f

dev-util/cvise: add 2.10.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cvise/Manifest            |  1 +
 dev-util/cvise/cvise-2.10.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/dev-util/cvise/Manifest b/dev-util/cvise/Manifest
index 1cdc6c594038..252b69a3371d 100644
--- a/dev-util/cvise/Manifest
+++ b/dev-util/cvise/Manifest
@@ -1,2 +1,3 @@
+DIST cvise-2.10.0.tar.gz 270839 BLAKE2B 
36f54cbfe8eab0c2d64a4d2d482f558cb9e32ccce0b0c03923f62b682e33941ab37a57a1c51a4173a22e2ad9e59fec3256469e1b19baaea0446caa56877ea056
 SHA512 
31950f8731f7a8d6b9568be621b14d1f976a71ed0a6caef0cdcc0d31c99eca86c03913e2949f1f4e21a66fbe1618341f5daaff01da51b426b4ce0e6518479281
 DIST cvise-2.8.0.tar.gz 269582 BLAKE2B 
fe0f0d4e63ec7c69b209b8be1f3fd160a2573b9bfc555a3bb5caec5c818c8251569103e71509d194e0effc86c09420cf523393686dd412660acde1e85ebffb67
 SHA512 
7e2dee2001aacb96cf5ffdb62047d229e23273fd26f34648e23ab4374bf6cae149f13db529494ce8d2d16555a0d2143487923c57f4b303b0ab1f678ffcff6f6e
 DIST cvise-2.9.0.tar.gz 269921 BLAKE2B 
d3b491316ea4ec5b623eeba0131f31edb421635508786a04868394c9bdc62c4510c34bd30095c5b034fa66ec5f8f6f78bb762e17f1c534ba137eb469544ddafe
 SHA512 
dd3b2e5c4603e8a73594863ce5b83d0ca864fc688a7b094c84b745b7086d384173809b9a915edb51938a7df8310eabbde1ea6a997c480d19618065c0d8270c52

diff --git a/dev-util/cvise/cvise-2.10.0.ebuild 
b/dev-util/cvise/cvise-2.10.0.ebuild
new file mode 100644
index 000000000000..1c98f566efb0
--- /dev/null
+++ b/dev-util/cvise/cvise-2.10.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+LLVM_COMPAT=( {16..18} )
+inherit cmake llvm-r1 python-single-r1
+
+DESCRIPTION="Super-parallel Python port of the C-Reduce"
+HOMEPAGE="https://github.com/marxin/cvise/";
+SRC_URI="
+       https://github.com/marxin/cvise/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="
+       $(llvm_gen_dep '
+               sys-devel/clang:${LLVM_SLOT}
+               sys-devel/llvm:${LLVM_SLOT}
+       ')
+"
+RDEPEND="
+       ${DEPEND}
+       ${PYTHON_DEPS}
+       $(python_gen_cond_dep '
+               dev-python/chardet[${PYTHON_USEDEP}]
+               dev-python/pebble[${PYTHON_USEDEP}]
+               dev-python/psutil[${PYTHON_USEDEP}]
+       ')
+       dev-util/unifdef
+       app-alternatives/lex
+"
+BDEPEND="
+       ${PYTHON_DEPS}
+       app-alternatives/lex
+       test? (
+               $(python_gen_cond_dep '
+                       dev-python/pebble[${PYTHON_USEDEP}]
+                       dev-python/pytest[${PYTHON_USEDEP}]
+               ')
+       )
+"
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+       llvm-r1_pkg_setup
+}
+
+src_prepare() {
+       sed -i -e 's:-Werror::' -e '/CMAKE_CXX_FLAGS_REL/d' CMakeLists.txt || 
die
+       cmake_src_prepare
+}
+
+src_test() {
+       cd "${BUILD_DIR}" || die
+       epytest
+}
+
+src_install() {
+       cmake_src_install
+
+       python_fix_shebang "${ED}"/usr/bin/cvise
+}

Reply via email to