diff options
author | Christian Schmidt <schmidt@digadd.de> | 2022-03-19 20:46:56 +0100 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-06-16 09:55:25 -0700 |
commit | 550cda64f94f986d2462725dbca605b922c41543 (patch) | |
tree | 0d85f4b6a0b4f3052736fe3416828d84fe75361d /dev-libs/libtracefs | |
parent | dev-libs/libtraceevent: new package (diff) | |
download | gentoo-550cda64f94f986d2462725dbca605b922c41543.tar.gz gentoo-550cda64f94f986d2462725dbca605b922c41543.tar.bz2 gentoo-550cda64f94f986d2462725dbca605b922c41543.zip |
dev-libs/libtracefs: New package, add 1.3.1
Signed-off-by: Christian Schmidt <gentoo@digadd.de>
Bug: https://bugs.gentoo.org/824982
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/libtracefs')
-rw-r--r-- | dev-libs/libtracefs/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libtracefs/libtracefs-1.3.1.ebuild | 51 | ||||
-rw-r--r-- | dev-libs/libtracefs/metadata.xml | 8 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-libs/libtracefs/Manifest b/dev-libs/libtracefs/Manifest new file mode 100644 index 000000000000..2a637a33332c --- /dev/null +++ b/dev-libs/libtracefs/Manifest @@ -0,0 +1 @@ +DIST libtracefs-1.3.1.tar.gz 175453 BLAKE2B d9801c9f50513a8b2d2de57f768aec69c3e47b4c41ba1e887b28465d3a0a6bf10e5d2c60f81615615176bdb65e10ef7e2b7dee5cbb214705cc69e55bb923231c SHA512 1d8423ff1033a4ab601dd8e9fa4a801c27425234505070733641c8c9a4dd382cc6563d3fde89958f18e0bc95e2cbbdf65e69a2935fe208d5de9fd3ac26374ec1 diff --git a/dev-libs/libtracefs/libtracefs-1.3.1.ebuild b/dev-libs/libtracefs/libtracefs-1.3.1.ebuild new file mode 100644 index 000000000000..72cb28be45e4 --- /dev/null +++ b/dev-libs/libtracefs/libtracefs-1.3.1.ebuild @@ -0,0 +1,51 @@ +# 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 ~x86" +fi + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="doc" +RDEPEND=" + >=dev-libs/libtraceevent-1.3.0 +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + 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)/libtracefs.a" || die + use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc +} diff --git a/dev-libs/libtracefs/metadata.xml b/dev-libs/libtracefs/metadata.xml new file mode 100644 index 000000000000..7c1651eba3e0 --- /dev/null +++ b/dev-libs/libtracefs/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |