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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F1A11581C1 for ; Thu, 11 Jul 2024 22:06:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1F632BC10C; Thu, 11 Jul 2024 22:06:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C56392BC10C for ; Thu, 11 Jul 2024 22:06:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94AAE33BEBE for ; Thu, 11 Jul 2024 22:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B06A31E19 for ; Thu, 11 Jul 2024 22:05:57 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1720735549.3c3f16b07e62fc1240490d68d895f290b464b4f7.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libbpf/libbpf-1.3.2.ebuild X-VCS-Directories: dev-libs/libbpf/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 3c3f16b07e62fc1240490d68d895f290b464b4f7 X-VCS-Branch: master Date: Thu, 11 Jul 2024 22:05:57 +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: 917a97d2-6811-4123-9ebd-d91cd5f61363 X-Archives-Hash: e8f9f74c8c65bd80f1b1322755530b78 commit: 3c3f16b07e62fc1240490d68d895f290b464b4f7 Author: Patrick McLean gentoo org> AuthorDate: Thu Jul 11 22:05:38 2024 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu Jul 11 22:05:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c3f16b0 dev-libs/libbpf: add 1.3.2 Signed-off-by: Patrick McLean gentoo.org> dev-libs/libbpf/libbpf-1.3.2.ebuild | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-libs/libbpf/libbpf-1.3.2.ebuild b/dev-libs/libbpf/libbpf-1.3.2.ebuild new file mode 100644 index 000000000000..6cd9245fc9a6 --- /dev/null +++ b/dev-libs/libbpf/libbpf-1.3.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Stand-alone build of libbpf from the Linux kernel" +HOMEPAGE="https://github.com/libbpf/libbpf" + +if [[ ${PV} =~ [9]{4,} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libbpf/libbpf.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi +S="${WORKDIR}/${P}/src" + +LICENSE="GPL-2 LGPL-2.1 BSD-2" +SLOT="0/$(ver_cut 1-2 ${PV})" +IUSE="static-libs" + +DEPEND=" + sys-kernel/linux-headers + virtual/libelf +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + virtual/pkgconfig +" + +DOCS=( + ../{README,SYNC}.md +) + +PATCHES=( + "${FILESDIR}"/libbpf-9999-paths.patch +) + +src_configure() { + append-cflags -fPIC + tc-export CC AR PKG_CONFIG + export LIBSUBDIR="$(get_libdir)" + export PREFIX="${EPREFIX}/usr" + export V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + LIBSUBDIR="${LIBSUBDIR}" \ + install install_uapi_headers + + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi + + dodoc "${DOCS[@]}" + + insinto /usr/$(get_libdir)/pkgconfig + doins ${PN}.pc +}