1 |
commit: 8d7ea59d2cef367fe5c7131773e5225954bd5ee6 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 27 20:07:10 2018 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 27 20:08:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d7ea59d |
7 |
|
8 |
dev-util/oprofile: version bump |
9 |
|
10 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-util/oprofile/Manifest | 1 + |
14 |
dev-util/oprofile/oprofile-1.3.0.ebuild | 64 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 65 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest |
18 |
index 0bb84cb8e05..9485fee3e1b 100644 |
19 |
--- a/dev-util/oprofile/Manifest |
20 |
+++ b/dev-util/oprofile/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST oprofile-1.1.0.tar.gz 1468502 BLAKE2B 5c0abdf1ce6f3fa9b7140036ff654b2f5d5e29d996afec834014c141a4669e57c1d4ac60d6705c35ee1dce23ce790e07063b58508abd39b6562b7298744e2eb4 SHA512 b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758 |
23 |
DIST oprofile-1.2.0.tar.gz 1533343 BLAKE2B 873433ddba11389a221ff3b6eb6b8b19748ac4989232bda7d9af698b95dedf8ecd1112dce3accab5e1b40c87287901c015eec167713b9ad11daa0a0f0e3255f9 SHA512 d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d |
24 |
+DIST oprofile-1.3.0.tar.gz 1547258 BLAKE2B d8777e41856dc2f082570a1542609bd730fd7076000443f2e17c77eaf75df7a7a772ebb49d82ee657f563797858cecb4c23b130b0174d154c54d5619b8528ad1 SHA512 02a940cd8d38834dca2a97c8ac0fff04ef95b3819cfdf74a462b9326c7abbf2dc55d2a9b9d1fbefc7f455465bf85516be2b879d7daf1861ba2c4af51214377ba |
25 |
|
26 |
diff --git a/dev-util/oprofile/oprofile-1.3.0.ebuild b/dev-util/oprofile/oprofile-1.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c7b531f0ad3 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/oprofile/oprofile-1.3.0.ebuild |
31 |
@@ -0,0 +1,64 @@ |
32 |
+# Copyright 1999-2018 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit java-pkg-opt-2 linux-info user |
37 |
+ |
38 |
+DESCRIPTION="A transparent low-overhead system-wide profiler" |
39 |
+HOMEPAGE="http://oprofile.sourceforge.net" |
40 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
45 |
+IUSE="java pch" |
46 |
+ |
47 |
+RDEPEND=">=dev-libs/popt-1.7-r1 |
48 |
+ sys-libs/binutils-libs:= |
49 |
+ >=sys-libs/glibc-2.3.2-r1 |
50 |
+ java? ( >=virtual/jdk-1.5:= ) |
51 |
+ ppc64? ( dev-libs/libpfm )" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ >=sys-kernel/linux-headers-2.6.31" |
54 |
+ |
55 |
+CONFIG_CHECK="PERF_EVENTS" |
56 |
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work." |
57 |
+ |
58 |
+pkg_setup() { |
59 |
+ linux-info_pkg_setup |
60 |
+ if ! kernel_is -ge 2 6 31; then |
61 |
+ echo |
62 |
+ ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0." |
63 |
+ echo |
64 |
+ fi |
65 |
+ |
66 |
+ # Required for JIT support, see README_PACKAGERS |
67 |
+ enewgroup ${PN} |
68 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
69 |
+ |
70 |
+ use java && java-pkg_init |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ econf \ |
75 |
+ --disable-werror \ |
76 |
+ $(use_enable pch) \ |
77 |
+ $(use_with java java ${JAVA_HOME}) |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install |
82 |
+ |
83 |
+ dodoc ChangeLog* README TODO |
84 |
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die |
85 |
+ doenvd "${T}/10${PN}" |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ echo |
90 |
+ elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead." |
91 |
+ elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels." |
92 |
+ elog "Please read manpages and this html doc:" |
93 |
+ elog " /usr/share/doc/${PF}/${PN}.html" |
94 |
+ echo |
95 |
+} |