commit: 01bd452a581aacd2563454c1403aa0af722acdd4 Author: Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com> AuthorDate: Wed Nov 20 19:20:37 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Nov 23 15:49:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01bd452a
dev-util/cvise: add 2.11.0 Simple bump to 2.11.0, also allow LLVM_SLOT=19. Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com> Closes: https://github.com/gentoo/gentoo/pull/39390 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/cvise/Manifest | 1 + dev-util/cvise/cvise-2.11.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/dev-util/cvise/Manifest b/dev-util/cvise/Manifest index 62e4d47b4a8f..b4229cbdd459 100644 --- a/dev-util/cvise/Manifest +++ b/dev-util/cvise/Manifest @@ -1 +1,2 @@ DIST cvise-2.10.0.tar.gz 270839 BLAKE2B 36f54cbfe8eab0c2d64a4d2d482f558cb9e32ccce0b0c03923f62b682e33941ab37a57a1c51a4173a22e2ad9e59fec3256469e1b19baaea0446caa56877ea056 SHA512 31950f8731f7a8d6b9568be621b14d1f976a71ed0a6caef0cdcc0d31c99eca86c03913e2949f1f4e21a66fbe1618341f5daaff01da51b426b4ce0e6518479281 +DIST cvise-2.11.0.tar.gz 272016 BLAKE2B 1551cb1c8ee80cad9c4ed5846f5185432649d75f78c9d90cca93ab8e2615fa58f1bb08d43d156289592faac68343d3e021b74e0163eb92b914b16c65c0fe7422 SHA512 4c0844f1ce0596a7aed84018ecf63fbed31e7fb474d341f9947e99ee61274713ad8ae5dce619fcbc7b2acdddb950b1418989e9cd6cd6d7a2031e56226ccf9f57 diff --git a/dev-util/cvise/cvise-2.11.0.ebuild b/dev-util/cvise/cvise-2.11.0.ebuild new file mode 100644 index 000000000000..c89fa062126a --- /dev/null +++ b/dev-util/cvise/cvise-2.11.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..13} ) +LLVM_COMPAT=( {16..19} ) +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 +}
