diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-10-14 22:47:50 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-10-14 23:13:15 +0200 |
commit | 954f4ead97b026be59102b66c655d10514165de4 (patch) | |
tree | 4c3daa1cf2c1a3c0c14d4a3237ac6de6e6b814d6 /dev-util/cvise | |
parent | dev-python/lmfit: Bump to 1.0.3 (diff) | |
download | gentoo-954f4ead97b026be59102b66c655d10514165de4.tar.gz gentoo-954f4ead97b026be59102b66c655d10514165de4.tar.bz2 gentoo-954f4ead97b026be59102b66c655d10514165de4.zip |
dev-util/cvise: Bump to 2.4.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util/cvise')
-rw-r--r-- | dev-util/cvise/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cvise/cvise-2.4.0.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-util/cvise/Manifest b/dev-util/cvise/Manifest index 5804268d0207..a9442521f123 100644 --- a/dev-util/cvise/Manifest +++ b/dev-util/cvise/Manifest @@ -1 +1,2 @@ DIST cvise-2.3.0.tar.gz 250283 BLAKE2B 361bcafd2ec9caf42c77abd2a5bbd145cd350d9693178a59720a2a2d1d726e85860d92725a00ce3dae7041e8b47b584bf4c3a5e8b5c0c0a8283a15f8117125f3 SHA512 6c65b1462b20974d76e54b76e15e592a76445da2b8627a29a98ae295417239171267ed163d04a11eeaae25d068b44548cdad0b642e7024c49a5a15f3c0894b1b +DIST cvise-2.4.0.tar.gz 252810 BLAKE2B a95d1645192886d8871dcdf7f9cdfa5a2ac615a3bbc24782c0966d1872fe5f3ade7ddb82afabecfcdebfdac257e2e13e6cb99ab7320baee1a4b43ab360e6a0b2 SHA512 073e53039d2b077fed43b948e0c01dc662ef4f75b92d7f49d1786a35c36412fed02e1931c6a39ce902452056fe5c7d70daa35a9cae18b44009778837261cae19 diff --git a/dev-util/cvise/cvise-2.4.0.ebuild b/dev-util/cvise/cvise-2.4.0.ebuild new file mode 100644 index 000000000000..fe92fc560e70 --- /dev/null +++ b/dev-util/cvise/cvise-2.4.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +: ${CMAKE_MAKEFILE_GENERATOR=ninja} +PYTHON_COMPAT=( python3_{8..10} ) +inherit cmake llvm 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 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +LLVM_MAX_SLOT=13 +DEPEND=" + || ( + sys-devel/clang:13 + sys-devel/clang:12 + sys-devel/clang:11 + sys-devel/clang:10 + ) + <sys-devel/clang-$(( LLVM_MAX_SLOT + 1 )):=" +RDEPEND="${DEPEND} + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pebble[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + ') + dev-util/unifdef + sys-devel/flex" +BDEPEND=" + ${PYTHON_DEPS} + sys-devel/flex + test? ( + $(python_gen_cond_dep ' + dev-python/pebble[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ') + )" + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + python-single-r1_pkg_setup + llvm_pkg_setup +} + +src_prepare() { + sed -i -e 's:-n auto::' -e 's:--flake8::' setup.cfg || die + cmake_src_prepare +} + +src_test() { + cd "${BUILD_DIR}" || die + epytest +} |