commit:     95135f107c219a4e7f3189b426c2fc5a298f2504
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 20 03:39:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 20 03:39:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95135f10

dev-util/cvise: add 9999

It doesn't get too much activity upstream at the moment but it can
still be useful to test changes in git.

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

 dev-util/cvise/cvise-9999.ebuild | 77 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/dev-util/cvise/cvise-9999.ebuild b/dev-util/cvise/cvise-9999.ebuild
new file mode 100644
index 000000000000..8b8c901fd360
--- /dev/null
+++ b/dev-util/cvise/cvise-9999.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+LLVM_COMPAT=( {16..20} )
+inherit cmake llvm-r1 python-single-r1
+
+DESCRIPTION="Super-parallel Python port of the C-Reduce"
+HOMEPAGE="https://github.com/marxin/cvise";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/marxin/cvise";
+       inherit git-r3
+else
+       SRC_URI="
+               https://github.com/marxin/cvise/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       "
+
+       KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/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}"
+}

Reply via email to