diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-10-25 20:51:14 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-10-25 20:51:14 -0400 |
commit | 947e0b5f512c56edc1b2b414bc86b6298d068cde (patch) | |
tree | dcf944af45803a15bf1e926fb92f9050315285e4 /dev-util | |
parent | 7e5a467f4823a16600a4a3dffc3c30b20bfd95f7 (diff) | |
download | gentoo-overlay-947e0b5f512c56edc1b2b414bc86b6298d068cde.tar.xz gentoo-overlay-947e0b5f512c56edc1b2b414bc86b6298d068cde.zip |
treewide: updates
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/rr/metadata.xml | 19 | ||||
-rw-r--r-- | dev-util/rr/rr-9999.ebuild | 73 |
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-util/rr/metadata.xml b/dev-util/rr/metadata.xml new file mode 100644 index 0000000..4c3360d --- /dev/null +++ b/dev-util/rr/metadata.xml @@ -0,0 +1,19 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>toolchain@gentoo.org</email> + <name>Gentoo Toolchain Project</name> + </maintainer> + <maintainer type="person"> + <email>lu_zero@gentoo.org</email> + <name>Luca Barbato</name> + </maintainer> + <maintainer type="person"> + <email>mudler@gentoo.org</email> + <name>Ettore Di Giacinto</name> + </maintainer> + <upstream> + <remote-id type="github">mozilla/rr</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/rr/rr-9999.ebuild b/dev-util/rr/rr-9999.ebuild new file mode 100644 index 0000000..0f4434f --- /dev/null +++ b/dev-util/rr/rr-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +CMAKE_BUILD_TYPE=Release + +inherit cmake linux-info python-single-r1 + +DESCRIPTION="Record and Replay Framework" +HOMEPAGE="https://rr-project.org/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mozilla/${PN}.git" +else + SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" +fi + +LICENSE="MIT BSD-2" +SLOT="0" +KEYWORDS="" +IUSE="multilib test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + sys-libs/zlib:= + dev-libs/capnproto:= + ${PYTHON_DEPS}" +RDEPEND="${DEPEND} + sys-devel/gdb[xml]" +# Add all the deps needed only at build/test time. +DEPEND+=" + test? ( + $(python_gen_cond_dep ' + dev-python/pexpect[${PYTHON_MULTI_USEDEP}] + ') + sys-devel/gdb[xml] + )" + +RESTRICT="test" # toolchain and kernel version dependent + +pkg_setup() { + if use kernel_linux; then + CONFIG_CHECK="SECCOMP" + linux-info_pkg_setup + fi + python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + sed -i 's:-Werror::' CMakeLists.txt || die #609192 +} + +src_test() { + if has usersandbox ${FEATURES} ; then + ewarn "Test suite fails under FEATURES=usersandbox (bug #632394). Skipping." + return 0 + fi + + cmake_src_test +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -Ddisable32bit=$(usex !multilib) #636786 + ) + + cmake_src_configure +} |