From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CAA31382C5 for ; Sat, 1 May 2021 14:07:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CFCA2E0D1B; Sat, 1 May 2021 14:07:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B58B9E0D1B for ; Sat, 1 May 2021 14:07:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BDBBF335D36 for ; Sat, 1 May 2021 14:07:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28D1872E for ; Sat, 1 May 2021 14:07:01 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1619878015.991344348e6f44b89fa02d5a026f40d944f38b4b.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/satyr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/satyr/Manifest dev-libs/satyr/satyr-0.37.ebuild X-VCS-Directories: dev-libs/satyr/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 991344348e6f44b89fa02d5a026f40d944f38b4b X-VCS-Branch: master Date: Sat, 1 May 2021 14:07:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c1a81b79-e032-4faf-acb6-c56cdae0e9cc X-Archives-Hash: 4cb40d61ba8cda1ac3722fa7f5340d99 commit: 991344348e6f44b89fa02d5a026f40d944f38b4b Author: Matt Turner gentoo org> AuthorDate: Sat May 1 13:55:21 2021 +0000 Commit: Matt Turner gentoo org> CommitDate: Sat May 1 14:06:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99134434 dev-libs/satyr: Version bump to 0.37 Signed-off-by: Matt Turner gentoo.org> dev-libs/satyr/Manifest | 1 + dev-libs/satyr/satyr-0.37.ebuild | 100 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-libs/satyr/Manifest b/dev-libs/satyr/Manifest index b78f27a448f..66c5c71c375 100644 --- a/dev-libs/satyr/Manifest +++ b/dev-libs/satyr/Manifest @@ -1 +1,2 @@ DIST satyr-0.31.tar.gz 428719 BLAKE2B 23c6ea53db261fee366566101c2b0f1e23cf530728332fe752897ee982ffac057b98de3d9a52dbfc64932cdb73aaff7e35c976e7a55e30b4417f3880782f9125 SHA512 a5aafa1ca5f85a0a817c6fa9a3b428672c9f4f529fb7d73a3e819cc836b78c01a0ca44b47317fcdd4a40dc6386688a450bd78564b6e466091cdc9a2c730c3fda +DIST satyr-0.37.tar.gz 433804 BLAKE2B 3d243f1ea4254767740fbab4aff5d42537e4ec7d6cfded9af36b022bbcb76a08172f36cac98fb9d199aefcf3f7fefd443e3573426f5cd84eb5bf404d36dbfb29 SHA512 ac67c931dcf3031b0fabca6d0be572381b8027da588add85d22ba7058304a0ec457379be77cd99ce0607ceac35a45d42b6c293751f7471797cc9eba280ce91b5 diff --git a/dev-libs/satyr/satyr-0.37.ebuild b/dev-libs/satyr/satyr-0.37.ebuild new file mode 100644 index 00000000000..cd25deaf9e4 --- /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 +}