Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gdb-apple: gdb-apple-1752.ebuild ChangeLog
Date: Sun, 04 Mar 2012 16:15:19
Message-Id: 20120304161504.B62D52004B@flycatcher.gentoo.org
1 grobian 12/03/04 16:15:04
2
3 Modified: ChangeLog
4 Added: gdb-apple-1752.ebuild
5 Log:
6 Bump to version from Developer Tools 4.3
7
8 (Portage version: 2.2.01.20271-prefix/cvs/Darwin i386)
9
10 Revision Changes Path
11 1.18 sys-devel/gdb-apple/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb-apple/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb-apple/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb-apple/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 5 Nov 2011 16:50:13 -0000 1.17
24 +++ ChangeLog 4 Mar 2012 16:15:04 -0000 1.18
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/gdb-apple
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v 1.17 2011/11/05 16:50:13 grobian Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/ChangeLog,v 1.18 2012/03/04 16:15:04 grobian Exp $
31 +
32 +*gdb-apple-1752 (04 Mar 2012)
33 +
34 + 04 Mar 2012; Fabian Groffen <grobian@g.o> +gdb-apple-1752.ebuild:
35 + Bump to version from Developer Tools 4.3
36
37 *gdb-apple-1708 (05 Nov 2011)
38
39
40
41
42 1.1 sys-devel/gdb-apple/gdb-apple-1752.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb-apple/gdb-apple-1752.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb-apple/gdb-apple-1752.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gdb-apple-1752.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/gdb-apple-1752.ebuild,v 1.1 2012/03/04 16:15:04 grobian Exp $
52
53 EAPI="3"
54
55 inherit eutils flag-o-matic
56
57 APPLE_PV=${PV}
58 DESCRIPTION="Apple branch of the GNU Debugger, Developer Tools 4.3"
59 HOMEPAGE="http://sources.redhat.com/gdb/"
60 SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${APPLE_PV}.tar.gz"
61
62 LICENSE="APSL-2 GPL-2"
63 SLOT="0"
64
65 KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
66
67 IUSE="nls"
68
69 RDEPEND=">=sys-libs/ncurses-5.2-r2
70 =dev-db/sqlite-3*"
71 DEPEND="${RDEPEND}
72 nls? ( sys-devel/gettext )"
73
74 S=${WORKDIR}/gdb-${APPLE_PV}/src
75
76 src_prepare() {
77 epatch "${FILESDIR}"/${PN}-no-global-gdbinit.patch
78 epatch "${FILESDIR}"/${PN}-768-texinfo.patch
79 epatch "${FILESDIR}"/${PN}-1518-darwin8-9.patch
80 epatch "${FILESDIR}"/${PN}-1705-darwin8-10.patch
81 [[ ${CHOST} == *-darwin8 ]] && epatch "${FILESDIR}"/${PN}-1518-darwin8.patch
82 }
83
84 src_configure() {
85 replace-flags -O? -O2
86 econf \
87 --disable-werror \
88 --disable-debug-symbols-framework \
89 $(use_enable nls) \
90 || die
91 }
92
93 src_compile() {
94 # unable to work around parallel make issue
95 emake -j2 || die
96 }
97
98 src_install() {
99 emake -j2 DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die
100 rm -R "${D}"/nukeme || die
101 rm -Rf "${ED}"/usr/${CHOST} || die
102 mv "${ED}"/usr/bin/gdb "${ED}"/
103 rm -f "${ED}"/usr/bin/*
104 mv "${ED}"/gdb "${ED}"/usr/bin/
105 }
106
107 pkg_postinst() {
108 if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -ge 9 ]] ; then
109 ewarn "Due to increased security measures in 10.5 and up, gdb is"
110 ewarn "not able to get a mach task port when installed by Prefix"
111 ewarn "Portage, unprivileged. To make gdb fully functional you'll"
112 ewarn "have to perform the following steps:"
113 ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
114 ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
115 fi
116 if use x86-macos || use x64-macos ; then
117 einfo "FSF gdb works on Intel-based OSX platforms, sometimes even"
118 einfo "better than gdb-apple. You can consider installing FSF gdb"
119 einfo "instead of gdb-apple, since the FSF version is surely more"
120 einfo "advanced than this old 6.8 version modified by Apple."
121 fi
122 }