diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
commit | b7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch) | |
tree | 9fd110f9fc996e8a4213eeda994a8c112491b86d /dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild | |
parent | 066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff) |
gentoo resync : 19.03.2019
Diffstat (limited to 'dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild')
-rw-r--r-- | dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild b/dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild new file mode 100644 index 000000000000..d38e2e55b21e --- /dev/null +++ b/dev-util/trace-cmd/trace-cmd-2.7-r2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=(python2_7) + +inherit linux-info python-single-r1 toolchain-funcs + +DESCRIPTION="User-space front-end for Ftrace" +HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/${PN}.git" + inherit git-r3 +else + SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/${PN}.git/snapshot/${PN}-v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-v${PV}" +fi + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +IUSE="+audit doc python udis86" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="audit? ( sys-process/audit ) + python? ( ${PYTHON_DEPS} ) + udis86? ( dev-libs/udis86 )" +DEPEND="${RDEPEND} + sys-kernel/linux-headers + python? ( + virtual/pkgconfig + dev-lang/swig + ) + + doc? ( app-text/asciidoc )" + +CONFIG_CHECK=" + ~TRACING + ~FTRACE + ~BLK_DEV_IO_TRACE" + +PATCHES=( + "${FILESDIR}"/${PN}-2.7-makefile.patch + "${FILESDIR}"/${PN}-2.7-soname.patch +) + +pkg_setup() { + linux-info_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_configure() { + MAKEOPTS+=" prefix=/usr + libdir=/usr/$(get_libdir) + CC=$(tc-getCC) + AR=$(tc-getAR) + $(usex audit '' '' 'NO_AUDIT=1')" + + if use python; then + MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}" + MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}" + else + MAKEOPTS+=" NO_PYTHON=1" + fi + + use udis86 || MAKEOPTS+=" NO_UDIS86=1" +} + +src_compile() { + emake V=1 all_cmd libs + use doc && emake doc + +} + +src_install() { + emake DESTDIR="${D}" V=1 install install_libs + use doc && emake DESTDIR="${D}" install_doc + +} |