From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1397553-garchives=archives.gentoo.org@lists.gentoo.org>
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 04DFE158090
	for <garchives@archives.gentoo.org>; Mon, 16 May 2022 22:58:28 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4112EE08C4;
	Mon, 16 May 2022 22:58:27 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 25FE8E08C4
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2022 22:58:27 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CD9D6341B66
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2022 22:58:24 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 87620DC
	for <gentoo-commits@lists.gentoo.org>; Mon, 16 May 2022 22:58:23 +0000 (UTC)
From: "Patrick McLean" <chutzpah@gentoo.org>
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" <chutzpah@gentoo.org>
Message-ID: <1652741899.655981065e863938894942b3cf834afbe013a001.chutzpah@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/libbpf/Manifest dev-libs/libbpf/libbpf-0.8.0.ebuild
X-VCS-Directories: dev-libs/libbpf/
X-VCS-Committer: chutzpah
X-VCS-Committer-Name: Patrick McLean
X-VCS-Revision: 655981065e863938894942b3cf834afbe013a001
X-VCS-Branch: master
Date: Mon, 16 May 2022 22:58:23 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d4a41ea3-2df7-4c51-a23d-8778d19c1527
X-Archives-Hash: 2e5e36e7b13dee5a5e2d852933570359

commit:     655981065e863938894942b3cf834afbe013a001
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 22:58:03 2022 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon May 16 22:58:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65598106

dev-libs/libbpf: add 0.8.0

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-libs/libbpf/Manifest            |  1 +
 dev-libs/libbpf/libbpf-0.8.0.ebuild | 51 +++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest
index 4f6fef31854a..796fddbf012f 100644
--- a/dev-libs/libbpf/Manifest
+++ b/dev-libs/libbpf/Manifest
@@ -1 +1,2 @@
 DIST libbpf-0.7.0.tar.gz 900120 BLAKE2B a67d83f52fde8a6d7771b0d31fbfabbc7d81013aacd733b1a71724a30eef47a085884f28687cb9e5a103a08a3bd9dde6eeb93f13fa4f1a04a386fe6887f126eb SHA512 8f1b13d60fc61176567f780a6c34314e5bdf1d2d3a8187c31b83eef74250729612a4333a9f739cd75887a8b7bd94446d6a1e0c8424565366051be9d24aa286b4
+DIST libbpf-0.8.0.tar.gz 942574 BLAKE2B c8e380d80f69f10da9d8a6ea4d19a53e8b34ed5a6072e1b57c61273f0714d13135c917224086de37246d9e47e9b848cbe75aced79278711a3007aa9e564db4b5 SHA512 8b034a9c8f23207638630b95ff95a651148a800589eb52f2fe09698bf3c4147f2e2008b24de45a70832cc7669cdfebd78bc491e575ca0b27de5c2de3b1fb5637

diff --git a/dev-libs/libbpf/libbpf-0.8.0.ebuild b/dev-libs/libbpf/libbpf-0.8.0.ebuild
new file mode 100644
index 000000000000..2ebd8eeef0c6
--- /dev/null
+++ b/dev-libs/libbpf/libbpf-0.8.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+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"
+
+DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
+HOMEPAGE="https://github.com/libbpf/libbpf"
+
+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}"
+
+PATCHES=(
+	"${FILESDIR}"/libbpf-9999-paths.patch
+)
+
+src_configure() {
+	append-cflags -fPIC
+	tc-export CC AR
+	export LIBSUBDIR="$(get_libdir)" V=1
+}
+
+src_install() {
+	emake \
+		DESTDIR="${D}" \
+		install install_uapi_headers
+
+	if ! use static-libs; then
+		find "${ED}" -name '*.a' -delete || die
+	fi
+
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins ${PN}.pc
+}