Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gdb: gdb-9999.ebuild ChangeLog gdb-7.3.1.ebuild
Date: Wed, 07 Sep 2011 00:08:05
Message-Id: 20110907000754.6C9852004C@flycatcher.gentoo.org
1 vapier 11/09/07 00:07:54
2
3 Modified: gdb-9999.ebuild ChangeLog
4 Added: gdb-7.3.1.ebuild
5 Log:
6 Version bump and sync live ebuilds with release.
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 sys-devel/gdb/gdb-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?r1=1.4&r2=1.5
16
17 Index: gdb-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- gdb-9999.ebuild 3 Sep 2011 14:54:16 -0000 1.4
24 +++ gdb-9999.ebuild 7 Sep 2011 00:07:54 -0000 1.5
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2011 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.4 2011/09/03 14:54:16 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.5 2011/09/07 00:07:54 vapier Exp $
30
31 EAPI="3"
32
33 @@ -52,7 +52,7 @@
34 && SLOT="${CTARGET}" \
35 || SLOT="0"
36 if [[ ${PV} != 9999* ]] ; then
37 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
38 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
39 fi
40 IUSE="expat multitarget nls python test vanilla"
41
42
43
44
45 1.191 sys-devel/gdb/ChangeLog
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.191&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.191&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?r1=1.190&r2=1.191
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v
54 retrieving revision 1.190
55 retrieving revision 1.191
56 diff -u -r1.190 -r1.191
57 --- ChangeLog 3 Sep 2011 14:54:16 -0000 1.190
58 +++ ChangeLog 7 Sep 2011 00:07:54 -0000 1.191
59 @@ -1,6 +1,12 @@
60 # ChangeLog for sys-devel/gdb
61 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.190 2011/09/03 14:54:16 grobian Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.191 2011/09/07 00:07:54 vapier Exp $
64 +
65 +*gdb-7.3.1 (07 Sep 2011)
66 +
67 + 07 Sep 2011; Mike Frysinger <vapier@g.o> +gdb-7.3.1.ebuild,
68 + gdb-9999.ebuild:
69 + Version bump and sync live ebuilds with release.
70
71 03 Sep 2011; Fabian Groffen <grobian@g.o> gdb-7.2.ebuild,
72 gdb-7.3.ebuild, gdb-9999.ebuild:
73
74
75
76 1.1 sys-devel/gdb/gdb-7.3.1.ebuild
77
78 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.3.1.ebuild?rev=1.1&view=markup
79 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.3.1.ebuild?rev=1.1&content-type=text/plain
80
81 Index: gdb-7.3.1.ebuild
82 ===================================================================
83 # Copyright 1999-2011 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.1.ebuild,v 1.1 2011/09/07 00:07:54 vapier Exp $
86
87 EAPI="3"
88
89 inherit flag-o-matic eutils
90
91 export CTARGET=${CTARGET:-${CHOST}}
92 if [[ ${CTARGET} == ${CHOST} ]] ; then
93 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
94 export CTARGET=${CATEGORY/cross-}
95 fi
96 fi
97 is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
98
99 RPM=
100 MY_PV=${PV}
101 case ${PV} in
102 *.*.*.*.*.*)
103 # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
104 inherit versionator rpm
105 gvcr() { get_version_component_range "$@"; }
106 MY_PV=$(gvcr 1-4)
107 RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
108 SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
109 ;;
110 *.*.50.*)
111 # weekly snapshots
112 SRC_URI="ftp://sources.redhat.com/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
113 ;;
114 9999*)
115 # live git tree
116 EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
117 inherit git-2
118 SRC_URI=""
119 ;;
120 *)
121 # Normal upstream release
122 SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2
123 ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2"
124 ;;
125 esac
126
127 PATCH_VER="1"
128 DESCRIPTION="GNU debugger"
129 HOMEPAGE="http://sourceware.org/gdb/"
130 SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
131
132 LICENSE="GPL-2 LGPL-2"
133 is_cross \
134 && SLOT="${CTARGET}" \
135 || SLOT="0"
136 if [[ ${PV} != 9999* ]] ; then
137 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
138 fi
139 IUSE="expat multitarget nls python test vanilla"
140
141 RDEPEND=">=sys-libs/ncurses-5.2-r2
142 sys-libs/readline
143 expat? ( dev-libs/expat )
144 python? ( =dev-lang/python-2* )"
145 DEPEND="${RDEPEND}
146 app-arch/xz-utils
147 virtual/yacc
148 test? ( dev-util/dejagnu )
149 nls? ( sys-devel/gettext )"
150
151 S=${WORKDIR}/${PN}-${MY_PV}
152
153 src_prepare() {
154 [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
155 use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
156 strip-linguas -u bfd/po opcodes/po
157 }
158
159 gdb_branding() {
160 printf "Gentoo ${PV} "
161 if [[ -n ${PATCH_VER} ]] ; then
162 printf "p${PATCH_VER}"
163 else
164 printf "vanilla"
165 fi
166 }
167
168 src_configure() {
169 strip-unsupported-flags
170 econf \
171 --with-pkgversion="$(gdb_branding)" \
172 --with-bugurl='http://bugs.gentoo.org/' \
173 --disable-werror \
174 --enable-64-bit-bfd \
175 --with-system-readline \
176 --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug \
177 $(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
178 $(use_with expat) \
179 $(use_enable nls) \
180 $(use multitarget && echo --enable-targets=all) \
181 $(use_with python python "${EPREFIX}/usr/bin/python2")
182 }
183
184 src_test() {
185 emake check || ewarn "tests failed"
186 }
187
188 src_install() {
189 emake \
190 DESTDIR="${D}" \
191 {include,lib}dir=/nukeme/pretty/pretty/please \
192 install || die
193 rm -r "${D}"/nukeme || die
194
195 # Don't install docs when building a cross-gdb
196 if [[ ${CTARGET} != ${CHOST} ]] ; then
197 rm -r "${ED}"/usr/share
198 return 0
199 fi
200
201 dodoc README
202 docinto gdb
203 dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
204 gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
205 docinto sim
206 dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
207
208 if [[ -n ${PATCH_VER} ]] ; then
209 dodoc "${WORKDIR}"/extra/gdbinit.sample
210 fi
211
212 # Remove shared info pages
213 rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
214 }
215
216 pkg_postinst() {
217 # portage sucks and doesnt unmerge files in /etc
218 rm -vf "${ROOT}"/etc/skel/.gdbinit
219
220 if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
221 ewarn "gdb is unable to get a mach task port when installed by Prefix"
222 ewarn "Portage, unprivileged. To make gdb fully functional you'll"
223 ewarn "have to perform the following steps:"
224 ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
225 ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
226 fi
227 }