Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cvise/
Date: Fri, 01 May 2020 15:44:33
Message-Id: 1588347843.43d9f59dca7632ffa9b662424e22340269454fb4.mgorny@gentoo
1 commit: 43d9f59dca7632ffa9b662424e22340269454fb4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 1 14:55:20 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 1 15:44:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43d9f59d
7
8 dev-util/cvise: New package
9
10 C-Vise is a pythonic fork of dev-util/creduce. Apparently it makes
11 better use of multiprocessing, and is more alive than the original.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-util/cvise/Manifest | 1 +
16 dev-util/cvise/cvise-1.1.0.ebuild | 48 +++++++++++++++++++++++++++++++++++++++
17 dev-util/cvise/metadata.xml | 8 +++++++
18 3 files changed, 57 insertions(+)
19
20 diff --git a/dev-util/cvise/Manifest b/dev-util/cvise/Manifest
21 new file mode 100644
22 index 00000000000..d2add3abf8e
23 --- /dev/null
24 +++ b/dev-util/cvise/Manifest
25 @@ -0,0 +1 @@
26 +DIST cvise-1.1.0.tar.gz 228867 BLAKE2B 08becb5ad00ef08a1f511c0bdb0cb649af1406dd035fe61f737ec6dfb5151215ae363272fc3676ce76e17234a88866ee1dd0664d82326f3ddb2ced2f1982aacf SHA512 66c09cb7e088fc36b0c36928e2eda19e7bef4fad4573fcedc06f2070136e74d7878f8056f406c2ade22fc465a75bf13dca9f4a1a319cd183187a2d66a441e661
27
28 diff --git a/dev-util/cvise/cvise-1.1.0.ebuild b/dev-util/cvise/cvise-1.1.0.ebuild
29 new file mode 100644
30 index 00000000000..dd6cb68eb87
31 --- /dev/null
32 +++ b/dev-util/cvise/cvise-1.1.0.ebuild
33 @@ -0,0 +1,48 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +: ${CMAKE_MAKEFILE_GENERATOR=ninja}
40 +PYTHON_COMPAT=( python3_{6,7,8} )
41 +inherit cmake llvm python-single-r1
42 +
43 +DESCRIPTION="Super-parallel Python port of the C-Reduce"
44 +HOMEPAGE="https://github.com/marxin/cvise/"
45 +SRC_URI="
46 + https://github.com/marxin/cvise/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="UoI-NCSA"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
54 +
55 +LLVM_MAX_SLOT=10
56 +DEPEND="sys-devel/clang:${LLVM_MAX_SLOT}"
57 +RDEPEND="${DEPEND}
58 + ${PYTHON_DEPS}
59 + $(python_gen_cond_dep '
60 + dev-python/pebble[${PYTHON_USEDEP}]
61 + ')
62 + dev-util/unifdef
63 + sys-devel/flex"
64 +BDEPEND="
65 + ${PYTHON_DEPS}
66 + sys-devel/flex
67 + test? (
68 + $(python_gen_cond_dep '
69 + dev-python/pebble[${PYTHON_USEDEP}]
70 + dev-python/pytest[${PYTHON_USEDEP}]
71 + ')
72 + )"
73 +
74 +llvm_check_deps() {
75 + has_version "sys-devel/clang:${LLVM_SLOT}"
76 +}
77 +
78 +src_test() {
79 + cd "${BUILD_DIR}" || die
80 + pytest -vv || die
81 +}
82
83 diff --git a/dev-util/cvise/metadata.xml b/dev-util/cvise/metadata.xml
84 new file mode 100644
85 index 00000000000..0319eec4c8b
86 --- /dev/null
87 +++ b/dev-util/cvise/metadata.xml
88 @@ -0,0 +1,8 @@
89 +<?xml version="1.0" encoding="UTF-8"?>
90 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
91 +<pkgmetadata>
92 + <maintainer type="person">
93 + <email>mgorny@g.o</email>
94 + <name>Michał Górny</name>
95 + </maintainer>
96 +</pkgmetadata>