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: ChangeLog gdb-6.7.1.ebuild
Date: Mon, 29 Oct 2007 20:42:50
Message-Id: E1ImbRc-0008BN-WB@stork.gentoo.org
1 vapier 07/10/29 20:42:44
2
3 Modified: ChangeLog
4 Added: gdb-6.7.1.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.122 sys-devel/gdb/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.122&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.122&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb/ChangeLog?r1=1.121&r2=1.122
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v
19 retrieving revision 1.121
20 retrieving revision 1.122
21 diff -u -r1.121 -r1.122
22 --- ChangeLog 10 Oct 2007 20:14:54 -0000 1.121
23 +++ ChangeLog 29 Oct 2007 20:42:44 -0000 1.122
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-devel/gdb
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.121 2007/10/10 20:14:54 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.122 2007/10/29 20:42:44 vapier Exp $
29 +
30 +*gdb-6.7.1 (29 Oct 2007)
31 +
32 + 29 Oct 2007; Mike Frysinger <vapier@g.o> +gdb-6.7.1.ebuild:
33 + Version bump.
34
35 *gdb-6.7 (10 Oct 2007)
36
37
38
39
40 1.1 sys-devel/gdb/gdb-6.7.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb/gdb-6.7.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gdb/gdb-6.7.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gdb-6.7.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.7.1.ebuild,v 1.1 2007/10/29 20:42:44 vapier Exp $
50
51 inherit flag-o-matic eutils
52
53 export CTARGET=${CTARGET:-${CHOST}}
54 if [[ ${CTARGET} == ${CHOST} ]] ; then
55 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
56 export CTARGET=${CATEGORY/cross-}
57 fi
58 fi
59
60 PATCH_VER="1.0"
61 DESCRIPTION="GNU debugger"
62 HOMEPAGE="http://sources.redhat.com/gdb/"
63 SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2
64 ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2
65 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
66
67 LICENSE="GPL-2 LGPL-2"
68 [[ ${CTARGET} != ${CHOST} ]] \
69 && SLOT="${CTARGET}" \
70 || SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
72 IUSE="nls test vanilla"
73
74 RDEPEND=">=sys-libs/ncurses-5.2-r2"
75 DEPEND="${RDEPEND}
76 test? ( dev-util/dejagnu )
77 nls? ( sys-devel/gettext )"
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82 use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
83 strip-linguas -u bfd/po opcodes/po
84 }
85
86 src_compile() {
87 replace-flags -O? -O2
88 econf \
89 --disable-werror \
90 $(use_enable nls) \
91 || die
92 emake || die
93 }
94
95 src_test() {
96 make check || ewarn "tests failed"
97 }
98
99 src_install() {
100 emake \
101 DESTDIR="${D}" \
102 libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
103 install || die
104 rm -r "${D}"/nukeme || die
105
106 # Don't install docs when building a cross-gdb
107 if [[ ${CTARGET} != ${CHOST} ]] ; then
108 rm -r "${D}"/usr/share
109 return 0
110 fi
111
112 dodoc README
113 docinto gdb
114 dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
115 gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
116 docinto sim
117 dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
118
119 dodoc "${WORKDIR}"/extra/gdbinit.sample
120
121 # Remove shared info pages
122 rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
123 }
124
125 pkg_postinst() {
126 # portage sucks and doesnt unmerge files in /etc
127 rm -vf "${ROOT}"/etc/skel/.gdbinit
128 }
129
130
131
132 --
133 gentoo-commits@g.o mailing list