mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 23:51:07 +02:00
dev-libs/libtraceevent: Add from Gentoo
It's from Gentoo commit b8138ab0597bf8a92a86b838c139cf46cda874bd.
This commit is contained in:
parent
dd017bb0ad
commit
6ce7db0ba6
3
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/Manifest
vendored
Normal file
3
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/Manifest
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
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
|
50
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.6.3.ebuild
vendored
Normal file
50
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.6.3.ebuild
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# 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
|
||||||
|
}
|
59
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
vendored
Normal file
59
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.7.2.ebuild
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# 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
|
||||||
|
}
|
47
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.7.3.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/libtraceevent-1.7.3.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# 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
|
||||||
|
)
|
||||||
|
|
||||||
|
# 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
|
||||||
|
}
|
12
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/metadata.xml
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/dev-libs/libtraceevent/metadata.xml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>chutzpah@gentoo.org</email>
|
||||||
|
<name>Patrick McLean</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>dlan@gentoo.org</email>
|
||||||
|
<name>Yixun Lan</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user