1 |
commit: 973b6fd52c9b33b9748bf191cb168f725c250eea |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 24 23:15:27 2014 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 24 23:15:27 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/toolchain.git;a=commit;h=973b6fd5 |
7 |
|
8 |
update gdb snapshots |
9 |
|
10 |
--- |
11 |
sys-devel/gdb/Manifest | 2 + |
12 |
sys-devel/gdb/gdb-7.8.50.20140617.ebuild | 200 +++++++++++++++++++++++++++++++ |
13 |
sys-devel/gdb/gdb-7.8.50.20140624.ebuild | 200 +++++++++++++++++++++++++++++++ |
14 |
3 files changed, 402 insertions(+) |
15 |
|
16 |
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest |
17 |
index 1a753f7..1ffe0f9 100644 |
18 |
--- a/sys-devel/gdb/Manifest |
19 |
+++ b/sys-devel/gdb/Manifest |
20 |
@@ -13,3 +13,5 @@ DIST gdb-weekly-7.6.50.20140107.tar.bz2 24988218 SHA256 d4749c5d9de5aa77cc627278 |
21 |
DIST gdb-weekly-7.7.50.20140527.tar.bz2 25414486 SHA256 290cef1bc94c12b12d60316560551347d55fcbb743ba7d721c097351ebece6aa SHA512 8f1d8c801b156f8cd2e686eefcddd580ec8d272bfe970e9bf1756299aabfdda1adb44311b80b2f3edb763fda37fd9402be1acac20c827b4c4c66c8dadf3ad895 WHIRLPOOL 158e1c65dd9dcddf2b6d144e5d653d883f95ff0825a9a73d86d8993b35ae73a293d8053f6488e45e4ba6eebe159ac7f660bf77a2dc8e3d890ed1cce6a01e24c7 |
22 |
DIST gdb-weekly-7.7.50.20140603.tar.bz2 25411073 SHA256 0b3c9baa22ca5aa627e91d0108072b800b3f8d5f6f2fe596ae5cf92837c79693 SHA512 f5fcb51a1d1af2d2b7ff4c308e122a2a73bfb4833f8878d7cb4d0cf21acea47bafcfe0b541760a468e2f5e9887c7522c89bf62d413c124619f239300224f4ad3 WHIRLPOOL 35469c381ac7e6725e6dd8b8807c980d49cdb795b9519ae4f67f53774a6cfb6c85d77cbf33b0d1817dfddffddb4d19ccca79fd12e098e58f2705ffaf4fc6f05e |
23 |
DIST gdb-weekly-7.7.50.20140610.tar.bz2 25454190 SHA256 cda14be3d8375a89d118c648be9a816c6c37813d5670d82b42c0eaefa523ace8 SHA512 144c7dbc7af7cde4c5d65c51c3ee7160a1f99fcccc64f68fcdcf4df73faa5ca27bcaa067d0dd9c749a520f05f404a1a2ce9fb4b7031562dadb935fd94fc4459c WHIRLPOOL 3b6e2499f75f0e51a9328b55cc4035ba3abe07b525ccc2639da4ada447bbf6380c4c8ee5486a2ccbd6090c1920699403b47947aadfc7665d4172f1125d0333cc |
24 |
+DIST gdb-weekly-7.8.50.20140617.tar.bz2 25454042 SHA256 02b506ed1d3ee5148184219d956170e79b3640f0199a046d9e5df85f4e1ce7fc SHA512 9d6e51da932478c1aa5df5d2e74149ea17643e68624d8b48ef884001fffbb38e7917097517a6f1c2940ed3d8c5400044966992f97ec7e0e373d0a259e293e0df WHIRLPOOL 92c115887795173a7f7dac5dcc162fb9deaa19ea33d736071477bd89b2310e436a338ffd25afe6864f3788ddf2dfeccfb4934d53462023625dba673d33193fa2 |
25 |
+DIST gdb-weekly-7.8.50.20140624.tar.bz2 25510497 SHA256 71efc78d3d7b2579be03b85b89bd09806b4c8cf7bd34c99929a8ab3b6faaa780 SHA512 840292e1b30ea3668657a928e63ecc230a12e3253cbe276bf60d069e78bd81a5adad949aa8d59a6b47d83a7ebd9af5f4d13317e94ab53c1b4f0b1bf84076effa WHIRLPOOL 00d788cd026f2e4ce42ffab22eeb4713a359b961bbd1a16cc26dbf1dd98ae6fa050b278677155c90f6e49037deae1ebd7d5662111e8bffd03552b7bca7b52b21 |
26 |
|
27 |
diff --git a/sys-devel/gdb/gdb-7.8.50.20140617.ebuild b/sys-devel/gdb/gdb-7.8.50.20140617.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..d3cad2c |
30 |
--- /dev/null |
31 |
+++ b/sys-devel/gdb/gdb-7.8.50.20140617.ebuild |
32 |
@@ -0,0 +1,200 @@ |
33 |
+# Copyright 1999-2014 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.25 2014/03/14 05:52:45 vapier Exp $ |
36 |
+ |
37 |
+EAPI="4" |
38 |
+PYTHON_COMPAT=( python{2_7,3_3} ) |
39 |
+ |
40 |
+inherit flag-o-matic eutils python-single-r1 |
41 |
+ |
42 |
+export CTARGET=${CTARGET:-${CHOST}} |
43 |
+if [[ ${CTARGET} == ${CHOST} ]] ; then |
44 |
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
45 |
+ export CTARGET=${CATEGORY/cross-} |
46 |
+ fi |
47 |
+fi |
48 |
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
49 |
+ |
50 |
+RPM= |
51 |
+MY_PV=${PV} |
52 |
+case ${PV} in |
53 |
+*.*.*.*.*.*) |
54 |
+ # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm |
55 |
+ inherit versionator rpm |
56 |
+ gvcr() { get_version_component_range "$@"; } |
57 |
+ MY_PV=$(gvcr 1-4) |
58 |
+ RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm" |
59 |
+ SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}" |
60 |
+ ;; |
61 |
+*.*.50.*) |
62 |
+ # weekly snapshots |
63 |
+ SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2" |
64 |
+ ;; |
65 |
+9999*) |
66 |
+ # live git tree |
67 |
+ EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
68 |
+ inherit git-2 |
69 |
+ SRC_URI="" |
70 |
+ ;; |
71 |
+*) |
72 |
+ # Normal upstream release |
73 |
+ SRC_URI="mirror://gnu/gdb/${P}.tar.bz2 |
74 |
+ ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2" |
75 |
+ ;; |
76 |
+esac |
77 |
+ |
78 |
+PATCH_VER="" |
79 |
+DESCRIPTION="GNU debugger" |
80 |
+HOMEPAGE="http://sourceware.org/gdb/" |
81 |
+SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
82 |
+ |
83 |
+LICENSE="GPL-2 LGPL-2" |
84 |
+SLOT="0" |
85 |
+if [[ ${PV} != 9999* ]] ; then |
86 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
87 |
+fi |
88 |
+IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib" |
89 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
90 |
+ |
91 |
+RDEPEND="!dev-util/gdbserver |
92 |
+ >=sys-libs/ncurses-5.2-r2 |
93 |
+ sys-libs/readline |
94 |
+ expat? ( dev-libs/expat ) |
95 |
+ lzma? ( app-arch/xz-utils ) |
96 |
+ python? ( ${PYTHON_DEPS} ) |
97 |
+ zlib? ( sys-libs/zlib )" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ app-arch/xz-utils |
100 |
+ virtual/yacc |
101 |
+ test? ( dev-util/dejagnu ) |
102 |
+ nls? ( sys-devel/gettext )" |
103 |
+ |
104 |
+S=${WORKDIR}/${PN}-${MY_PV} |
105 |
+ |
106 |
+pkg_setup() { |
107 |
+ use python && python-single-r1_pkg_setup |
108 |
+} |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
112 |
+ use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
113 |
+ epatch_user |
114 |
+ strip-linguas -u bfd/po opcodes/po |
115 |
+} |
116 |
+ |
117 |
+gdb_branding() { |
118 |
+ printf "Gentoo ${PV} " |
119 |
+ if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
120 |
+ printf "p${PATCH_VER}" |
121 |
+ else |
122 |
+ printf "vanilla" |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ strip-unsupported-flags |
128 |
+ |
129 |
+ local myconf=( |
130 |
+ --with-pkgversion="$(gdb_branding)" |
131 |
+ --with-bugurl='http://bugs.gentoo.org/' |
132 |
+ --disable-werror |
133 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
134 |
+ --disable-{binutils,etc,gas,gold,gprof,ld} |
135 |
+ ) |
136 |
+ local sysroot="${EPREFIX}/usr/${CTARGET}" |
137 |
+ is_cross && myconf+=( |
138 |
+ --with-sysroot="${sysroot}" |
139 |
+ --includedir="${sysroot}/usr/include" |
140 |
+ ) |
141 |
+ |
142 |
+ if use server && ! use client ; then |
143 |
+ # just configure+build in the gdbserver subdir to speed things up |
144 |
+ cd gdb/gdbserver |
145 |
+ myconf+=( --program-transform-name='' ) |
146 |
+ else |
147 |
+ # gdbserver only works for native targets (CHOST==CTARGET). |
148 |
+ # it also doesn't support all targets, so rather than duplicate |
149 |
+ # the target list (which changes between versions), use the |
150 |
+ # "auto" value when things are turned on. |
151 |
+ is_cross \ |
152 |
+ && myconf+=( --disable-gdbserver ) \ |
153 |
+ || myconf+=( $(use_enable server gdbserver auto) ) |
154 |
+ fi |
155 |
+ |
156 |
+ if ! ( use server && ! use client ) ; then |
157 |
+ # if we are configuring in the top level, then use all |
158 |
+ # the additional global options |
159 |
+ myconf+=( |
160 |
+ --enable-64-bit-bfd |
161 |
+ --disable-install-libbfd |
162 |
+ --disable-install-libiberty |
163 |
+ # This only disables building in the readline subdir. |
164 |
+ # For gdb itself, it'll use the system version. |
165 |
+ --disable-readline |
166 |
+ --with-system-readline |
167 |
+ --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
168 |
+ $(use_with expat) |
169 |
+ $(use_with lzma) |
170 |
+ $(use_enable nls) |
171 |
+ $(use multitarget && echo --enable-targets=all) |
172 |
+ $(use_with python python "${EPYTHON}") |
173 |
+ $(use_with zlib) |
174 |
+ ) |
175 |
+ fi |
176 |
+ |
177 |
+ econf "${myconf[@]}" |
178 |
+} |
179 |
+ |
180 |
+src_test() { |
181 |
+ nonfatal emake check || ewarn "tests failed" |
182 |
+} |
183 |
+ |
184 |
+src_install() { |
185 |
+ use server && ! use client && cd gdb/gdbserver |
186 |
+ default |
187 |
+ use client && find "${ED}"/usr -name libiberty.a -delete |
188 |
+ cd "${S}" |
189 |
+ |
190 |
+ # Don't install docs when building a cross-gdb |
191 |
+ if [[ ${CTARGET} != ${CHOST} ]] ; then |
192 |
+ rm -r "${ED}"/usr/share |
193 |
+ return 0 |
194 |
+ fi |
195 |
+ # Install it by hand for now: |
196 |
+ # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
197 |
+ # Only install if it exists due to the twisted behavior (see |
198 |
+ # notes in src_configure above). |
199 |
+ [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
200 |
+ |
201 |
+ if use client ; then |
202 |
+ docinto gdb |
203 |
+ dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
204 |
+ gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
205 |
+ fi |
206 |
+ docinto sim |
207 |
+ dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
208 |
+ if use server ; then |
209 |
+ docinto gdbserver |
210 |
+ dodoc gdb/gdbserver/{ChangeLog,README} |
211 |
+ fi |
212 |
+ |
213 |
+ if [[ -n ${PATCH_VER} ]] ; then |
214 |
+ dodoc "${WORKDIR}"/extra/gdbinit.sample |
215 |
+ fi |
216 |
+ |
217 |
+ # Remove shared info pages |
218 |
+ rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
219 |
+} |
220 |
+ |
221 |
+pkg_postinst() { |
222 |
+ # portage sucks and doesnt unmerge files in /etc |
223 |
+ rm -vf "${EROOT}"/etc/skel/.gdbinit |
224 |
+ |
225 |
+ if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
226 |
+ ewarn "gdb is unable to get a mach task port when installed by Prefix" |
227 |
+ ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
228 |
+ ewarn "have to perform the following steps:" |
229 |
+ ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
230 |
+ ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
231 |
+ fi |
232 |
+} |
233 |
|
234 |
diff --git a/sys-devel/gdb/gdb-7.8.50.20140624.ebuild b/sys-devel/gdb/gdb-7.8.50.20140624.ebuild |
235 |
new file mode 100644 |
236 |
index 0000000..d3cad2c |
237 |
--- /dev/null |
238 |
+++ b/sys-devel/gdb/gdb-7.8.50.20140624.ebuild |
239 |
@@ -0,0 +1,200 @@ |
240 |
+# Copyright 1999-2014 Gentoo Foundation |
241 |
+# Distributed under the terms of the GNU General Public License v2 |
242 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.25 2014/03/14 05:52:45 vapier Exp $ |
243 |
+ |
244 |
+EAPI="4" |
245 |
+PYTHON_COMPAT=( python{2_7,3_3} ) |
246 |
+ |
247 |
+inherit flag-o-matic eutils python-single-r1 |
248 |
+ |
249 |
+export CTARGET=${CTARGET:-${CHOST}} |
250 |
+if [[ ${CTARGET} == ${CHOST} ]] ; then |
251 |
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
252 |
+ export CTARGET=${CATEGORY/cross-} |
253 |
+ fi |
254 |
+fi |
255 |
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
256 |
+ |
257 |
+RPM= |
258 |
+MY_PV=${PV} |
259 |
+case ${PV} in |
260 |
+*.*.*.*.*.*) |
261 |
+ # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm |
262 |
+ inherit versionator rpm |
263 |
+ gvcr() { get_version_component_range "$@"; } |
264 |
+ MY_PV=$(gvcr 1-4) |
265 |
+ RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm" |
266 |
+ SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}" |
267 |
+ ;; |
268 |
+*.*.50.*) |
269 |
+ # weekly snapshots |
270 |
+ SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2" |
271 |
+ ;; |
272 |
+9999*) |
273 |
+ # live git tree |
274 |
+ EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
275 |
+ inherit git-2 |
276 |
+ SRC_URI="" |
277 |
+ ;; |
278 |
+*) |
279 |
+ # Normal upstream release |
280 |
+ SRC_URI="mirror://gnu/gdb/${P}.tar.bz2 |
281 |
+ ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2" |
282 |
+ ;; |
283 |
+esac |
284 |
+ |
285 |
+PATCH_VER="" |
286 |
+DESCRIPTION="GNU debugger" |
287 |
+HOMEPAGE="http://sourceware.org/gdb/" |
288 |
+SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" |
289 |
+ |
290 |
+LICENSE="GPL-2 LGPL-2" |
291 |
+SLOT="0" |
292 |
+if [[ ${PV} != 9999* ]] ; then |
293 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
294 |
+fi |
295 |
+IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib" |
296 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
297 |
+ |
298 |
+RDEPEND="!dev-util/gdbserver |
299 |
+ >=sys-libs/ncurses-5.2-r2 |
300 |
+ sys-libs/readline |
301 |
+ expat? ( dev-libs/expat ) |
302 |
+ lzma? ( app-arch/xz-utils ) |
303 |
+ python? ( ${PYTHON_DEPS} ) |
304 |
+ zlib? ( sys-libs/zlib )" |
305 |
+DEPEND="${RDEPEND} |
306 |
+ app-arch/xz-utils |
307 |
+ virtual/yacc |
308 |
+ test? ( dev-util/dejagnu ) |
309 |
+ nls? ( sys-devel/gettext )" |
310 |
+ |
311 |
+S=${WORKDIR}/${PN}-${MY_PV} |
312 |
+ |
313 |
+pkg_setup() { |
314 |
+ use python && python-single-r1_pkg_setup |
315 |
+} |
316 |
+ |
317 |
+src_prepare() { |
318 |
+ [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
319 |
+ use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
320 |
+ epatch_user |
321 |
+ strip-linguas -u bfd/po opcodes/po |
322 |
+} |
323 |
+ |
324 |
+gdb_branding() { |
325 |
+ printf "Gentoo ${PV} " |
326 |
+ if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
327 |
+ printf "p${PATCH_VER}" |
328 |
+ else |
329 |
+ printf "vanilla" |
330 |
+ fi |
331 |
+} |
332 |
+ |
333 |
+src_configure() { |
334 |
+ strip-unsupported-flags |
335 |
+ |
336 |
+ local myconf=( |
337 |
+ --with-pkgversion="$(gdb_branding)" |
338 |
+ --with-bugurl='http://bugs.gentoo.org/' |
339 |
+ --disable-werror |
340 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
341 |
+ --disable-{binutils,etc,gas,gold,gprof,ld} |
342 |
+ ) |
343 |
+ local sysroot="${EPREFIX}/usr/${CTARGET}" |
344 |
+ is_cross && myconf+=( |
345 |
+ --with-sysroot="${sysroot}" |
346 |
+ --includedir="${sysroot}/usr/include" |
347 |
+ ) |
348 |
+ |
349 |
+ if use server && ! use client ; then |
350 |
+ # just configure+build in the gdbserver subdir to speed things up |
351 |
+ cd gdb/gdbserver |
352 |
+ myconf+=( --program-transform-name='' ) |
353 |
+ else |
354 |
+ # gdbserver only works for native targets (CHOST==CTARGET). |
355 |
+ # it also doesn't support all targets, so rather than duplicate |
356 |
+ # the target list (which changes between versions), use the |
357 |
+ # "auto" value when things are turned on. |
358 |
+ is_cross \ |
359 |
+ && myconf+=( --disable-gdbserver ) \ |
360 |
+ || myconf+=( $(use_enable server gdbserver auto) ) |
361 |
+ fi |
362 |
+ |
363 |
+ if ! ( use server && ! use client ) ; then |
364 |
+ # if we are configuring in the top level, then use all |
365 |
+ # the additional global options |
366 |
+ myconf+=( |
367 |
+ --enable-64-bit-bfd |
368 |
+ --disable-install-libbfd |
369 |
+ --disable-install-libiberty |
370 |
+ # This only disables building in the readline subdir. |
371 |
+ # For gdb itself, it'll use the system version. |
372 |
+ --disable-readline |
373 |
+ --with-system-readline |
374 |
+ --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
375 |
+ $(use_with expat) |
376 |
+ $(use_with lzma) |
377 |
+ $(use_enable nls) |
378 |
+ $(use multitarget && echo --enable-targets=all) |
379 |
+ $(use_with python python "${EPYTHON}") |
380 |
+ $(use_with zlib) |
381 |
+ ) |
382 |
+ fi |
383 |
+ |
384 |
+ econf "${myconf[@]}" |
385 |
+} |
386 |
+ |
387 |
+src_test() { |
388 |
+ nonfatal emake check || ewarn "tests failed" |
389 |
+} |
390 |
+ |
391 |
+src_install() { |
392 |
+ use server && ! use client && cd gdb/gdbserver |
393 |
+ default |
394 |
+ use client && find "${ED}"/usr -name libiberty.a -delete |
395 |
+ cd "${S}" |
396 |
+ |
397 |
+ # Don't install docs when building a cross-gdb |
398 |
+ if [[ ${CTARGET} != ${CHOST} ]] ; then |
399 |
+ rm -r "${ED}"/usr/share |
400 |
+ return 0 |
401 |
+ fi |
402 |
+ # Install it by hand for now: |
403 |
+ # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
404 |
+ # Only install if it exists due to the twisted behavior (see |
405 |
+ # notes in src_configure above). |
406 |
+ [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
407 |
+ |
408 |
+ if use client ; then |
409 |
+ docinto gdb |
410 |
+ dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
411 |
+ gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
412 |
+ fi |
413 |
+ docinto sim |
414 |
+ dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
415 |
+ if use server ; then |
416 |
+ docinto gdbserver |
417 |
+ dodoc gdb/gdbserver/{ChangeLog,README} |
418 |
+ fi |
419 |
+ |
420 |
+ if [[ -n ${PATCH_VER} ]] ; then |
421 |
+ dodoc "${WORKDIR}"/extra/gdbinit.sample |
422 |
+ fi |
423 |
+ |
424 |
+ # Remove shared info pages |
425 |
+ rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
426 |
+} |
427 |
+ |
428 |
+pkg_postinst() { |
429 |
+ # portage sucks and doesnt unmerge files in /etc |
430 |
+ rm -vf "${EROOT}"/etc/skel/.gdbinit |
431 |
+ |
432 |
+ if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
433 |
+ ewarn "gdb is unable to get a mach task port when installed by Prefix" |
434 |
+ ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
435 |
+ ewarn "have to perform the following steps:" |
436 |
+ ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
437 |
+ ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
438 |
+ fi |
439 |
+} |