diff options
Diffstat (limited to 'dev-util/cvise/cvise-1.6.0.ebuild')
-rw-r--r-- | dev-util/cvise/cvise-1.6.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/cvise/cvise-1.6.0.ebuild b/dev-util/cvise/cvise-1.6.0.ebuild new file mode 100644 index 000000000000..819ee2f921ed --- /dev/null +++ b/dev-util/cvise/cvise-1.6.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +: ${CMAKE_MAKEFILE_GENERATOR=ninja} +PYTHON_COMPAT=( python3_{6..9} ) +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=12 +DEPEND=" + || ( + 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-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_test() { + cd "${BUILD_DIR}" || die + pytest -vv || die +} |