summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2022-12-19 11:11:39 +0800
committerYixun Lan <dlan@gentoo.org>2022-12-20 09:54:51 +0800
commita7bf44d1d192283e7c202986c0112b066c3af5b8 (patch)
treebd00e79b20811b7d874eee29c80649e96a8ef609 /dev-libs
parentdev-libs/libtraceevent: Version bump 1.7.0 (diff)
downloadgentoo-a7bf44d1d192283e7c202986c0112b066c3af5b8.tar.gz
gentoo-a7bf44d1d192283e7c202986c0112b066c3af5b8.tar.bz2
gentoo-a7bf44d1d192283e7c202986c0112b066c3af5b8.zip
dev-libs/libtracefs: Version bump 1.6.3
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libtracefs/Manifest1
-rw-r--r--dev-libs/libtracefs/libtracefs-1.6.3.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/libtracefs/Manifest b/dev-libs/libtracefs/Manifest
index f22710e533da..90ef82213231 100644
--- a/dev-libs/libtracefs/Manifest
+++ b/dev-libs/libtracefs/Manifest
@@ -2,3 +2,4 @@ DIST libtracefs-1.3.1.tar.gz 175453 BLAKE2B d9801c9f50513a8b2d2de57f768aec69c3e4
DIST libtracefs-1.4.2.tar.gz 178382 BLAKE2B a956423370077613417812ad18da284521e8798701d558f4e419af6c43bd8a06c489525bbab26e6bc5d5d5e8fd0e6a7322d34f976a4ea560670eb594818d07fc SHA512 4a66c3cf8050de5acc4c63996cbcfa2c014e26ad6011eb89b0cff47ffbd6343637009354edf6bb173b9fd08103012774376c33fd6f642741f7990f2d6de3ea0c
DIST libtracefs-1.5.0.tar.gz 179569 BLAKE2B d69d4bb2c9cbf6dd971afaad280534ce8af4982ca76c7b12cb8432f56a01d622a5d58c827cfe86537e5db2a416ab1092c95309b77b766b183266e1ad22ad8d13 SHA512 5e936a788473c0eb373144231ef9ac139ae53b4685053dfed74157a9432d429f35b70290607679eae9f44fd858d2102a02c3beac35d8de35d856c3c1001644d3
DIST libtracefs-1.6.1.tar.gz 193086 BLAKE2B 53f6740c7f06e1d618594e03ec7fbda273bbeb87bfda67acfad1e1670fd69670187c7267af1abcd1502c338499dc8d4ffe28a213b3ad17ff5a6e2b435c1c242f SHA512 9fa9b470869bdc0134cc72eb7a9e0131638c3416d24e403c7fc819d49a5e521ca8c852ece4ac87d6a744c32846a2567c44c1e3b8b329f77db2d89e57c9e36340
+DIST libtracefs-1.6.3.tar.gz 193859 BLAKE2B 89029e59590f4e25c5d39d5b638c381e966e8dee055bf7873492a6cdc8b1e1df90cad84a8db4e1abcacbc43fbb23c9fefbdb53123a409a19d07925e7a39efcdb SHA512 273d008644b5d205def79fa8c1db51f21327c02abee16dfc706cfa7ad421be111ac3280b2dd493a8be5f4d9f2fdcb471d7de17e6b3e56df7cb2f1a11b4e1bfaa
diff --git a/dev-libs/libtracefs/libtracefs-1.6.3.ebuild b/dev-libs/libtracefs/libtracefs-1.6.3.ebuild
new file mode 100644
index 000000000000..440403770349
--- /dev/null
+++ b/dev-libs/libtracefs/libtracefs-1.6.3.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
+}