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