Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ply/
Date: Wed, 30 Nov 2022 09:08:36
Message-Id: 1669799286.8242ba9bf9123e12cd1582a9c27cc1f65c36fa59.jsmolic@gentoo
1 commit: 8242ba9bf9123e12cd1582a9c27cc1f65c36fa59
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 09:07:59 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 09:08:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8242ba9b
7
8 dev-util/ply: add 2.3.0
9
10 - Now with riscv support added upstream.
11
12 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
13
14 dev-util/ply/Manifest | 2 ++
15 dev-util/ply/ply-2.3.0.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 47 insertions(+)
17
18 diff --git a/dev-util/ply/Manifest b/dev-util/ply/Manifest
19 index 3c1fa95d949a..707ac1054413 100644
20 --- a/dev-util/ply/Manifest
21 +++ b/dev-util/ply/Manifest
22 @@ -2,3 +2,5 @@ DIST ply-2.1.1-arm-build-fix.patch 1433 BLAKE2B 305bb06ce1e5516dc3868cd276edc94d
23 DIST ply-2.1.1.tar.gz 71578 BLAKE2B b63d0bd355985035b8d1c934c13982e21eeda0d710f40b8131562e9ef6a21a3eaf04960b871f5ab83d718ab1726450996988a2aef1a6fbd2e8f1a3c55db92beb SHA512 fdc66d752989a239e01d2746e6c56610c2c945fbeeff8f2a79be1db487a6cbba365d1bd1b553d25c43a3fdc3634ab96bf4a37ab4f694c6eb6eba82c35b37231e
24 DIST ply-2.2.0-arm-build-fix.patch 1433 BLAKE2B 305bb06ce1e5516dc3868cd276edc94d89cb7c20866094c6947092048af2c090a29bae52dc82956cbf7f36e42e15d873c553948dade17f4b1f9d490bb8191ed9 SHA512 e7572e5e777e13b483e9123fc5c62d63f3f1a2c753d7dedce8de8d78a4c5baa9c10b45b0e31ba16a92b0e2af11e206662cfe815643f0a8145f8d79e388d536b9
25 DIST ply-2.2.0.tar.gz 80367 BLAKE2B 111469f7a63a2b6442e60da78185e450630a372e423c4bfdd110868cf766537995cc54e8f7c790222f361162b8cb741c320310a2ae4f72faffd02bfc4ac707b2 SHA512 e0c34893be8b461d0e633125d412957c89a854a0e63f598d62d0fc93c6942a35694eb2020e534fd5004296cc83dd3e159dcc4ac29a63f9441d03714776d25c3a
26 +DIST ply-2.3.0-arm-build-fix.patch 1433 BLAKE2B 305bb06ce1e5516dc3868cd276edc94d89cb7c20866094c6947092048af2c090a29bae52dc82956cbf7f36e42e15d873c553948dade17f4b1f9d490bb8191ed9 SHA512 e7572e5e777e13b483e9123fc5c62d63f3f1a2c753d7dedce8de8d78a4c5baa9c10b45b0e31ba16a92b0e2af11e206662cfe815643f0a8145f8d79e388d536b9
27 +DIST ply-2.3.0.tar.gz 79753 BLAKE2B 7c2f71a6078ff65ce92b3959c3dac31d44fcf3b99fc0b2d0390152fcdfcb5f1620090b26a47f6579aaa7b7644700f2865e2693707e8746cdd78c77ce66e9ead1 SHA512 ee8acd31bef7b2ac318ef64f7775aae2b288bae15a7b7b5b28c2ce5728e8ece7833ce192bd10488dd54228685d3dc9053679a033960ed75fd91a10bb0fa6d912
28
29 diff --git a/dev-util/ply/ply-2.3.0.ebuild b/dev-util/ply/ply-2.3.0.ebuild
30 new file mode 100644
31 index 000000000000..f5bbba6567e2
32 --- /dev/null
33 +++ b/dev-util/ply/ply-2.3.0.ebuild
34 @@ -0,0 +1,45 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit autotools linux-info
41 +
42 +DESCRIPTION="Dynamic instrumentation of the Linux kernel with BPF and kprobes"
43 +HOMEPAGE="https://github.com/iovisor/ply"
44 +SRC_URI="https://github.com/iovisor/ply/archive/${PV}.tar.gz -> ${P}.tar.gz
45 + https://github.com/iovisor/ply/commit/1bc183af8703023e377f92716ecd3f339ffffd11.patch -> ${P}-arm-build-fix.patch"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv"
50 +IUSE="static-libs"
51 +# Bug 733248 file collisions with sys-boot/plymouth:
52 +# /usr/lib64/libply.la
53 +# /usr/lib64/libply.so
54 +RDEPEND="!sys-boot/plymouth"
55 +DEPEND="elibc_musl? ( sys-libs/queue-standalone )"
56 +
57 +pkg_pretend() {
58 + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
59 + ~BPF_JIT ~HAVE_EBPF_JIT ~BPF_EVENTS"
60 +
61 + check_extra_config
62 +}
63 +
64 +src_prepare() {
65 + sed -i "/^AC_INIT/c\AC_INIT(${PN}, ${PV}," configure.ac || die
66 +
67 + default
68 + eautoreconf
69 +}
70 +
71 +src_install() {
72 + default
73 + rm -f "${ED}/usr/share/doc/${P}/COPYING"
74 +
75 + if ! use static-libs; then
76 + find "${D}" -type f -name '*.a' -delete || die
77 + find "${ED}" -name '*.la' -delete || die
78 + fi
79 +}