Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/oprofile/
Date: Tue, 29 Sep 2015 19:49:26
Message-Id: 1443556123.29d5953cd9ef8e3a7ff83005cfa6656f8e8455e0.bircoph@gentoo
1 commit: 29d5953cd9ef8e3a7ff83005cfa6656f8e8455e0
2 Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 29 19:35:38 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 19:48:43 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d5953c
7
8 dev-util/oprofile: update dependencies
9
10 migrate from sys-devel/binutils to sys-libs/binutils-libs
11
12 Package-Manager: portage-2.2.22
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 dev-util/oprofile/oprofile-0.9.9-r2.ebuild | 81 ++++++++++++++++++++++++++++++
16 dev-util/oprofile/oprofile-1.0.0-r2.ebuild | 72 ++++++++++++++++++++++++++
17 dev-util/oprofile/oprofile-1.1.0-r1.ebuild | 67 ++++++++++++++++++++++++
18 3 files changed, 220 insertions(+)
19
20 diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
21 new file mode 100644
22 index 0000000..bab174a
23 --- /dev/null
24 +++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
25 @@ -0,0 +1,81 @@
26 +# Copyright 1999-2015 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI="5"
31 +inherit autotools eutils linux-info multilib user java-pkg-opt-2
32 +
33 +MY_P=${PN}-${PV/_/-}
34 +DESCRIPTION="A transparent low-overhead system-wide profiler"
35 +HOMEPAGE="http://${PN}.sourceforge.net"
36 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
37 +
38 +LICENSE="GPL-2"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
41 +IUSE="java pch qt4"
42 +
43 +DEPEND=">=dev-libs/popt-1.7-r1
44 + sys-libs/binutils-libs
45 + >=sys-libs/glibc-2.3.2-r1
46 + qt4? ( dev-qt/qtgui:4[qt3support] )
47 + java? ( >=virtual/jdk-1.5:= )"
48 +RDEPEND="${DEPEND}"
49 +
50 +S="${WORKDIR}/${MY_P}"
51 +
52 +pkg_setup() {
53 + linux-info_pkg_setup
54 + if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
55 + echo
56 + elog "In order for ${PN} to work, you need to configure your kernel"
57 + elog "with CONFIG_OPROFILE set to 'm' or 'y'."
58 + echo
59 + fi
60 +
61 + if ! kernel_is -ge 2 6 ; then
62 + echo
63 + elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
64 + echo
65 + fi
66 +
67 + # Required for JIT support, see README_PACKAGERS
68 + enewgroup ${PN}
69 + enewuser ${PN} -1 -1 -1 ${PN}
70 +
71 + use java && java-pkg_init
72 +}
73 +
74 +src_prepare() {
75 + epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
76 + epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
77 + epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
78 + eautoreconf
79 +}
80 +
81 +src_configure() {
82 + econf \
83 + --disable-werror \
84 + $(use_with qt4 x) \
85 + $(use_enable qt4 gui qt4) \
86 + $(use_enable pch) \
87 + $(use_with java java ${JAVA_HOME})
88 +}
89 +
90 +src_install() {
91 + emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
92 +
93 + dodoc ChangeLog* README TODO
94 +
95 + dodir /etc/env.d
96 + echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
97 +}
98 +
99 +pkg_postinst() {
100 + echo
101 + elog "Now load the ${PN} module by running:"
102 + elog " # opcontrol --init"
103 + elog "Then read manpages and this html doc:"
104 + elog " /usr/share/doc/${PF}/${PN}.html"
105 + echo
106 +}
107
108 diff --git a/dev-util/oprofile/oprofile-1.0.0-r2.ebuild b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
109 new file mode 100644
110 index 0000000..2fda6ad
111 --- /dev/null
112 +++ b/dev-util/oprofile/oprofile-1.0.0-r2.ebuild
113 @@ -0,0 +1,72 @@
114 +# Copyright 1999-2015 Gentoo Foundation
115 +# Distributed under the terms of the GNU General Public License v2
116 +# $Id$
117 +
118 +EAPI="5"
119 +inherit eutils java-pkg-opt-2 linux-info multilib user
120 +
121 +MY_P=${PN}-${PV/_/-}
122 +DESCRIPTION="A transparent low-overhead system-wide profiler"
123 +HOMEPAGE="http://${PN}.sourceforge.net"
124 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
125 +
126 +LICENSE="GPL-2"
127 +SLOT="0"
128 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
129 +IUSE="java pch"
130 +
131 +RDEPEND=">=dev-libs/popt-1.7-r1
132 + sys-libs/binutils-libs
133 + >=sys-libs/glibc-2.3.2-r1
134 + java? ( >=virtual/jdk-1.5:= )"
135 +DEPEND="${RDEPEND}
136 + >=sys-kernel/linux-headers-2.6.31"
137 +
138 +S="${WORKDIR}/${MY_P}"
139 +
140 +CONFIG_CHECK="PERF_EVENTS"
141 +ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
142 +
143 +pkg_setup() {
144 + linux-info_pkg_setup
145 + if ! kernel_is -ge 2 6 31; then
146 + echo
147 + ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0."
148 + echo
149 + fi
150 +
151 + # Required for JIT support, see README_PACKAGERS
152 + enewgroup ${PN}
153 + enewuser ${PN} -1 -1 -1 ${PN}
154 +
155 + use java && java-pkg_init
156 +}
157 +
158 +src_prepare() {
159 + epatch "${FILESDIR}/${P}-athlon.patch"
160 + epatch "${FILESDIR}/${P}-opjitconv-open.patch"
161 +}
162 +
163 +src_configure() {
164 + econf \
165 + --disable-werror \
166 + $(use_enable pch) \
167 + $(use_with java java ${JAVA_HOME})
168 +}
169 +
170 +src_install() {
171 + emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
172 +
173 + dodoc ChangeLog* README TODO
174 + echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
175 + doenvd "${T}/10${PN}"
176 +}
177 +
178 +pkg_postinst() {
179 + echo
180 + elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead."
181 + elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels."
182 + elog "Please read manpages and this html doc:"
183 + elog " /usr/share/doc/${PF}/${PN}.html"
184 + echo
185 +}
186
187 diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
188 new file mode 100644
189 index 0000000..f4aae03
190 --- /dev/null
191 +++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
192 @@ -0,0 +1,67 @@
193 +# Copyright 1999-2015 Gentoo Foundation
194 +# Distributed under the terms of the GNU General Public License v2
195 +# $Id$
196 +
197 +EAPI="5"
198 +inherit java-pkg-opt-2 linux-info multilib user
199 +
200 +MY_P=${PN}-${PV/_/-}
201 +DESCRIPTION="A transparent low-overhead system-wide profiler"
202 +HOMEPAGE="http://${PN}.sourceforge.net"
203 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
204 +
205 +LICENSE="GPL-2"
206 +SLOT="0"
207 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
208 +IUSE="java pch"
209 +
210 +RDEPEND=">=dev-libs/popt-1.7-r1
211 + sys-libs/binutils-libs
212 + >=sys-libs/glibc-2.3.2-r1
213 + java? ( >=virtual/jdk-1.5:= )"
214 +DEPEND="${RDEPEND}
215 + >=sys-kernel/linux-headers-2.6.31"
216 +
217 +S="${WORKDIR}/${MY_P}"
218 +
219 +CONFIG_CHECK="PERF_EVENTS"
220 +ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
221 +
222 +pkg_setup() {
223 + linux-info_pkg_setup
224 + if ! kernel_is -ge 2 6 31; then
225 + echo
226 + ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0."
227 + echo
228 + fi
229 +
230 + # Required for JIT support, see README_PACKAGERS
231 + enewgroup ${PN}
232 + enewuser ${PN} -1 -1 -1 ${PN}
233 +
234 + use java && java-pkg_init
235 +}
236 +
237 +src_configure() {
238 + econf \
239 + --disable-werror \
240 + $(use_enable pch) \
241 + $(use_with java java ${JAVA_HOME})
242 +}
243 +
244 +src_install() {
245 + emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
246 +
247 + dodoc ChangeLog* README TODO
248 + echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
249 + doenvd "${T}/10${PN}"
250 +}
251 +
252 +pkg_postinst() {
253 + echo
254 + elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead."
255 + elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels."
256 + elog "Please read manpages and this html doc:"
257 + elog " /usr/share/doc/${PF}/${PN}.html"
258 + echo
259 +}