1 |
commit: e84bc4145aae257176c71dc045faa9c161684513 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 13 15:31:17 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 13 15:31:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e84bc414 |
7 |
|
8 |
dev-util/trace-cmd: Add -9999 live version |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
dev-util/trace-cmd/trace-cmd-9999.ebuild | 78 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/trace-cmd/trace-cmd-9999.ebuild b/dev-util/trace-cmd/trace-cmd-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..edebefd435b |
19 |
--- /dev/null |
20 |
+++ b/dev-util/trace-cmd/trace-cmd-9999.ebuild |
21 |
@@ -0,0 +1,78 @@ |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=(python2_7) |
27 |
+ |
28 |
+inherit linux-info python-single-r1 toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="User-space front-end for Ftrace" |
31 |
+HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git" |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]] ; then |
34 |
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/${PN}.git" |
35 |
+ inherit git-r3 |
36 |
+else |
37 |
+ SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/${PN}-v${PV}.tar.gz" |
38 |
+ KEYWORDS="~amd64 ~x86" |
39 |
+ S="${WORKDIR}/${PN}-v${PV}" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="GPL-2+ LGPL-2.1+" |
43 |
+SLOT="0" |
44 |
+IUSE="doc gtk python udis86" |
45 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
46 |
+ |
47 |
+RDEPEND="python? ( ${PYTHON_DEPS} ) |
48 |
+ udis86? ( dev-libs/udis86 ) |
49 |
+ gtk? ( |
50 |
+ ${PYTHON_DEPS} |
51 |
+ dev-python/pygtk:2[${PYTHON_USEDEP}] |
52 |
+ )" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ sys-kernel/linux-headers |
55 |
+ python? ( |
56 |
+ virtual/pkgconfig |
57 |
+ dev-lang/swig |
58 |
+ ) |
59 |
+ gtk? ( virtual/pkgconfig ) |
60 |
+ doc? ( app-text/asciidoc )" |
61 |
+ |
62 |
+CONFIG_CHECK=" |
63 |
+ ~TRACING |
64 |
+ ~FTRACE |
65 |
+ ~BLK_DEV_IO_TRACE" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}"/${PN}-2.7-makefile.patch |
69 |
+) |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ linux-info_pkg_setup |
73 |
+ use python && python-single-r1_pkg_setup |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ MAKEOPTS+=" prefix=/usr libdir=$(get_libdir) CC=$(tc-getCC) AR=$(tc-getAR)" |
78 |
+ |
79 |
+ if use python; then |
80 |
+ MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}" |
81 |
+ MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}" |
82 |
+ else |
83 |
+ MAKEOPTS+=" NO_PYTHON=1" |
84 |
+ fi |
85 |
+ |
86 |
+ use udis86 || MAKEOPTS+=" NO_UDIS86=1" |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ emake all_cmd |
91 |
+ use doc && emake doc |
92 |
+ use gtk && emake -j1 gui |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ default |
97 |
+ use doc && emake DESTDIR="${D}" install_doc |
98 |
+ use gtk && emake DESTDIR="${D}" install_gui |
99 |
+} |