diff options
author | Yixun Lan <dlan@gentoo.org> | 2022-10-08 09:53:39 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2022-10-08 09:53:39 +0800 |
commit | 6dd5fce84bcf1dc82e2cc1703b504b7dd92d7491 (patch) | |
tree | 657f581e7c3868bc225b7bccb2b6a0fd4442efdb /dev-libs/libtracefs | |
parent | dev-libs/libtraceevent: add 1.6.3 (diff) | |
download | gentoo-6dd5fce84bcf1dc82e2cc1703b504b7dd92d7491.tar.gz gentoo-6dd5fce84bcf1dc82e2cc1703b504b7dd92d7491.tar.bz2 gentoo-6dd5fce84bcf1dc82e2cc1703b504b7dd92d7491.zip |
dev-libs/libtracefs: add 1.5.0
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-libs/libtracefs')
-rw-r--r-- | dev-libs/libtracefs/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libtracefs/libtracefs-1.5.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/libtracefs/Manifest b/dev-libs/libtracefs/Manifest index d2acd5e5977d..335df4c38750 100644 --- a/dev-libs/libtracefs/Manifest +++ b/dev-libs/libtracefs/Manifest @@ -1,2 +1,3 @@ DIST libtracefs-1.3.1.tar.gz 175453 BLAKE2B d9801c9f50513a8b2d2de57f768aec69c3e47b4c41ba1e887b28465d3a0a6bf10e5d2c60f81615615176bdb65e10ef7e2b7dee5cbb214705cc69e55bb923231c SHA512 1d8423ff1033a4ab601dd8e9fa4a801c27425234505070733641c8c9a4dd382cc6563d3fde89958f18e0bc95e2cbbdf65e69a2935fe208d5de9fd3ac26374ec1 DIST libtracefs-1.4.2.tar.gz 178382 BLAKE2B a956423370077613417812ad18da284521e8798701d558f4e419af6c43bd8a06c489525bbab26e6bc5d5d5e8fd0e6a7322d34f976a4ea560670eb594818d07fc SHA512 4a66c3cf8050de5acc4c63996cbcfa2c014e26ad6011eb89b0cff47ffbd6343637009354edf6bb173b9fd08103012774376c33fd6f642741f7990f2d6de3ea0c +DIST libtracefs-1.5.0.tar.gz 179569 BLAKE2B d69d4bb2c9cbf6dd971afaad280534ce8af4982ca76c7b12cb8432f56a01d622a5d58c827cfe86537e5db2a416ab1092c95309b77b766b183266e1ad22ad8d13 SHA512 5e936a788473c0eb373144231ef9ac139ae53b4685053dfed74157a9432d429f35b70290607679eae9f44fd858d2102a02c3beac35d8de35d856c3c1001644d3 diff --git a/dev-libs/libtracefs/libtracefs-1.5.0.ebuild b/dev-libs/libtracefs/libtracefs-1.5.0.ebuild new file mode 100644 index 000000000000..440403770349 --- /dev/null +++ b/dev-libs/libtracefs/libtracefs-1.5.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Linux kernel trace file system library" +HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/" + +if [[ ${PV} =~ [9]{4,} ]]; then + EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/" + inherit git-r3 +else + SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="doc" +RDEPEND=" + >=dev-libs/libtraceevent-1.3.0 +" +DEPEND="${RDEPEND}" +# source-highlight is needed, see bug https://bugs.gentoo.org/865469 +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/xmlto app-text/asciidoc dev-util/source-highlight ) +" + +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)/libtracefs.a" || die + # install-doc is wrong target, see https://bugs.gentoo.org/865465 + use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install_doc +} |