dev-libs/libtraceevent: Sync with Gentoo

It's from Gentoo commit 2633a561c341f8ee2e74e9653df2a605c3141956.
This commit is contained in:
Flatcar Buildbot 2024-07-01 07:13:33 +00:00 committed by Mathieu Tortuyaux
parent b7cb6f5475
commit 023a9f2ef4
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8
4 changed files with 49 additions and 111 deletions

View File

@ -1,3 +1,2 @@
DIST libtraceevent-1.6.3.tar.gz 140072 BLAKE2B 416fa68e2604c3cc71323171b084261e38f08f630a03afda0e2ecc4860c8b08dae10b2abaa2afae54d2b4e382720b43a6616a9ab8599759de102af918eeb24fc SHA512 8064eb18dda6fdbff020759ed92e785b87d34be9ebc30cb6085785edeb8d7252cabf8d33d8738a3ec407672a3d891884d0f0b4c551fce26c76fa8eaf61b9e2f5
DIST libtraceevent-1.7.2.tar.gz 148242 BLAKE2B 03eae9ea7a8cdf6b015af95031d6fbe8638361f8b0db836f48e9ef47c814465fad583440f80f0103e08758712bd24f7562e1a8678ab24d4a1749a0b88efa7a85 SHA512 aa6d14e6d2e8e64c7d53ba9f93d47331d5f1b5a5a624891ec18a08b0d4e3e82f7845d29957bb3fe4360151bb5870a67c69d5cb1f758bb2956d946221f186546e
DIST libtraceevent-1.7.3.tar.gz 152363 BLAKE2B dcbca01f2246045f4f2377f91118e2468bca4344686b9e0349d04270543fea5648d5c227bdaf6e716d623bab8d03cec7a869bf67d03ca6a7836014854bbe40b8 SHA512 81302cb24a3fc71e8bd6a0ba975a2699eaa629ac0e90837bf8fc8e23e04156827d19b25544cdb506b0bf76d5f08699264c9ecb979f9218bdee6b0b0e7339b1e0
DIST libtraceevent-1.8.2.tar.gz 155682 BLAKE2B afadd9f559bdc071b3741ce42b8bf0c320523f2b39c437bcf4180f277eb804c33b2feac447fae15a869164475fb5f019ef171b69be32c46b74e5f22a3ed3808b SHA512 52b7a23e8bf04feaa568199c99c98217fcb8df1b99d46197ef9edcea19b42e71ff9d2e6c45ebf5335ec782d636ad3d14be4acae5a9e5158650f5f62813081fa2

View File

@ -1,50 +0,0 @@
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Linux kernel trace event library"
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
if [[ ${PV} =~ [9]{4,} ]]; then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
inherit git-r3
else
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz"
KEYWORDS="amd64 ~arm64 x86"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc"
RDEPEND="
!<dev-util/trace-cmd-3.0
"
BDEPEND="
doc? ( app-text/xmlto app-text/asciidoc )
"
src_configure() {
EMAKE_FLAGS=(
"prefix=${EPREFIX}/usr"
"libdir=${EPREFIX}/usr/$(get_libdir)"
"CC=$(tc-getCC)"
"AR=$(tc-getAR)"
VERBOSE=1
)
}
src_compile() {
emake "${EMAKE_FLAGS[@]}"
use doc && emake doc
}
src_install() {
emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install
# can't prevent installation of the static lib with parameters
rm "${ED}/usr/$(get_libdir)/libtraceevent.a" || die
use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc
}

View File

@ -1,59 +0,0 @@
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Linux kernel trace event library"
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
if [[ ${PV} =~ [9]{4,} ]]; then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
inherit git-r3
else
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
!<dev-util/trace-cmd-3.0
"
BDEPEND="
doc? (
app-text/asciidoc
app-text/xmlto
)
test? ( dev-util/cunit )
"
src_configure() {
EMAKE_FLAGS=(
"prefix=${EPREFIX}/usr"
"libdir=${EPREFIX}/usr/$(get_libdir)"
"CC=$(tc-getCC)"
"AR=$(tc-getAR)"
VERBOSE=1
)
}
src_compile() {
emake "${EMAKE_FLAGS[@]}"
use doc && emake "${EMAKE_FLAGS[@]}" doc
}
src_test() {
emake "${EMAKE_FLAGS[@]}" test
}
src_install() {
emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install
# can't prevent installation of the static lib with parameters
rm "${ED}/usr/$(get_libdir)/libtraceevent.a" || die
use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc
}

View File

@ -0,0 +1,48 @@
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Linux kernel trace event library"
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
if [[ ${PV} =~ [9]{4,} ]]; then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
inherit git-r3
else
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
!<dev-util/trace-cmd-3.0
"
BDEPEND="
app-text/asciidoc
app-text/xmlto
test? ( dev-util/cunit )
"
src_configure() {
local emesonargs=(
-Dasciidoctor=false
-Ddoc=$(usex doc true false)
)
# TODO: get docs & tests optional upstream
meson_src_configure
}
src_install() {
# TODO: get docs & tests optional upstream
meson_src_install
find "${ED}" -type f -name '*.a' -delete || die
}