From a978c074e4272bb901fbe4a10de0a7b2af574f17 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 4 May 2021 22:28:33 +0100 Subject: gentoo resync : 04.05.2021 --- dev-libs/satyr/Manifest | 2 + dev-libs/satyr/satyr-0.37.ebuild | 100 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 dev-libs/satyr/satyr-0.37.ebuild (limited to 'dev-libs/satyr') diff --git a/dev-libs/satyr/Manifest b/dev-libs/satyr/Manifest index 4a135cf5fd82..cc7ef6f638c2 100644 --- a/dev-libs/satyr/Manifest +++ b/dev-libs/satyr/Manifest @@ -1,3 +1,5 @@ DIST satyr-0.31.tar.gz 428719 BLAKE2B 23c6ea53db261fee366566101c2b0f1e23cf530728332fe752897ee982ffac057b98de3d9a52dbfc64932cdb73aaff7e35c976e7a55e30b4417f3880782f9125 SHA512 a5aafa1ca5f85a0a817c6fa9a3b428672c9f4f529fb7d73a3e819cc836b78c01a0ca44b47317fcdd4a40dc6386688a450bd78564b6e466091cdc9a2c730c3fda +DIST satyr-0.37.tar.gz 433804 BLAKE2B 3d243f1ea4254767740fbab4aff5d42537e4ec7d6cfded9af36b022bbcb76a08172f36cac98fb9d199aefcf3f7fefd443e3573426f5cd84eb5bf404d36dbfb29 SHA512 ac67c931dcf3031b0fabca6d0be572381b8027da588add85d22ba7058304a0ec457379be77cd99ce0607ceac35a45d42b6c293751f7471797cc9eba280ce91b5 EBUILD satyr-0.31.ebuild 1887 BLAKE2B 43959691fae55eb28d620682361b6c641f6e0bce919475a8a4626b98479a744edf7e69edb28e7f47757740ee0212de8e64ca74dcf286148d73f6ad59c75d3db7 SHA512 69804e6a6df63996dd804c120ba94d7320491d497466db5b696a0eae25ce933ad91a82f126b6435372f9a49a5d1bd2c7dcd01cc8b895790aa2e02d06362b1865 +EBUILD satyr-0.37.ebuild 1904 BLAKE2B ece18eb259c12092d02467252c8822019af5703b58b35a79ce53ac564e4539e69ab2d11ad89ba00b2d7d1d7b7c0411f8e5e0d30b5d949e5dd763f35acc1302f3 SHA512 0aa685a00e152de64354a1bba488303f24ae3a6ae2f0415cfa1f944c34e1644fa1991ea63bdf663862b06a9737049542d6885d02b5b63f72d43745d4e07aac7e MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 diff --git a/dev-libs/satyr/satyr-0.37.ebuild b/dev-libs/satyr/satyr-0.37.ebuild new file mode 100644 index 000000000000..cd25deaf9e49 --- /dev/null +++ b/dev-libs/satyr/satyr-0.37.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7..9} ) + +inherit autotools multiprocessing python-r1 + +DESCRIPTION="Satyr is a collection of low-level algorithms for program failure processing" +HOMEPAGE="https://github.com/abrt/satyr" +SRC_URI="https://github.com/abrt/${PN}/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0/4" + +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +KEYWORDS="~amd64 ~x86" + +RDEPEND="python? ( ${PYTHON_DEPS} ) + >=dev-libs/elfutils-0.158 + dev-libs/glib:2 + dev-libs/json-c:= + dev-libs/nettle:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + dev-util/gperf +" + +src_prepare() { + default + ./gen-version || die # Needs to be run before full autoreconf + eautoreconf + use python && python_copy_sources +} + +src_configure() { + use python && python_setup + + local myargs=( + --localstatedir="${EPREFIX}/var" + --without-rpm + $(usex python "--with-python3" "--without-python3") + ) + + if use python; then + python_configure() { + econf "${myargs[@]}" + } + python_foreach_impl run_in_build_dir python_configure + else + econf "${myargs[@]}" + fi +} + +src_compile() { + if use python; then + python_foreach_impl run_in_build_dir default + else + default + fi + +} + +src_test() { + local extra_args + + # In order to pass --jobs to the test runner + run_tests() { + cd tests || die + emake testsuite + ./testsuite --jobs=$(makeopts_jobs) ${extra_args[@]} $@ + + # Only run the python bindings tests for other python impls + extra_args=('-k' 'python3_bindings.*') + } + + if use python; then + python_foreach_impl run_in_build_dir run_tests + else + run_tests SKIP_PYTHON3=yes + fi +} + +src_install() { + if use python; then + python_install() { + default + python_optimize + } + python_foreach_impl run_in_build_dir python_install + else + default + fi + + find "${D}" -name '*.la' -type f -delete || die +} -- cgit v1.2.3