blob: 3a7e41fe20d4cc21fa767d7756b6f6a54c5a8f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb-apple/gdb-apple-563.ebuild,v 1.1 2009/06/21 10:38:25 grobian Exp $
inherit eutils flag-o-matic
DESCRIPTION="Apple branch of the GNU Debugger, Xcode 2.4"
HOMEPAGE="http://sources.redhat.com/gdb/"
SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/gdb-${PV}.tar.gz"
LICENSE="APSL-2 GPL-2"
SLOT="0"
KEYWORDS="~ppc-macos ~x86-macos"
IUSE="nls"
RDEPEND=">=sys-libs/ncurses-5.2-r2
=dev-db/sqlite-3*"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
S=${WORKDIR}/gdb-${PV}/src
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-darwin7.patch
epatch "${FILESDIR}"/${P}-no-64bit.patch
epatch "${FILESDIR}"/${PN}-768-texinfo.patch
# for FSF gcc / gcc-apple:42
sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh
}
src_compile() {
replace-flags -O? -O2
econf \
--disable-werror \
$(use_enable nls) \
|| die
emake || die
}
src_install() {
local ED=${ED-${D}}
emake DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die
rm -r "${D}"/nukeme || die
rm -Rf "${ED}"/usr/${CHOST} || die
mv "${ED}"/usr/bin/gdb ${ED}/
rm -f "${ED}"/usr/bin/*
mv "${ED}"/gdb "${ED}"/usr/bin/
}
|