/[gentoo-alt]/trunk/prefix/sys-devel/gcc-apple/gcc-apple-5341.ebuild
Gentoo

Contents of /trunk/prefix/sys-devel/gcc-apple/gcc-apple-5341.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1413 - (show annotations) (download)
Sat Sep 9 19:51:05 2006 UTC (8 years, 3 months ago) by grobian
File size: 1758 byte(s)
bump to latest upstream version


1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="prefix"
6
7 inherit eutils
8
9 DESCRIPTION="Apple branch of the GNU Compiler Collection"
10 HOMEPAGE="http://gcc.gnu.org"
11 SRC_URI="http://darwinsource.opendarwin.org/tarballs/other/gcc-${PV}.tar.gz"
12
13 LICENSE="APSL-2 GPL-2"
14 SLOT="0"
15
16 KEYWORDS="~ppc-macos"
17
18 IUSE=""
19
20 RDEPEND="virtual/libc
21 >=sys-libs/zlib-1.1.4
22 !build? (
23 >=sys-libs/ncurses-5.2-r2
24 nls? ( sys-devel/gettext )
25 )"
26 DEPEND="${RDEPEND}
27 >=sys-apps/texinfo-4.2-r4
28 >=sys-devel/bison-1.875
29 >=sys-devel/odcctools"
30
31 S=${WORKDIR}/gcc-${PV}
32
33 src_unpack() {
34 unpack ${A}
35 cd ${S}
36 # we use our libtool
37 sed -i -e "s:/usr/bin/libtool:${EPREFIX}/usr/bin/libtool:" \
38 gcc/config/darwin.h || die "sed gcc/config/darwin.h failed"
39 # add prefixed Frameworks to default search paths
40 sed -i -e "/\"\/System\/Library\/Frameworks\"\,/i\ \ \"${EPREFIX}/Frameworks\"\, " \
41 gcc/config/darwin-c.c || die "sed gcc/config/darwin-c.c failed"
42
43 # Workaround deprecated "+Nc" syntax for GNU tail(1)
44 sed -i -e "s:tail +16c:tail -c +16:g" \
45 gcc/Makefile.in || die "sed gcc/Makefile.in failed."
46 }
47
48 src_compile() {
49 mkdir -p ${WORKDIR}/build
50 cd ${WORKDIR}/build
51 ${S}/configure \
52 $(with_prefix) \
53 $(with_mandir) \
54 $(with_localstatedir) \
55 --build=${CHOST} \
56 --host=${CHOST} \
57 --target=${CHOST} \
58 --with-local-prefix=${EPREFIX} \
59 --with-as=${EPREFIX}/usr/bin/as \
60 --with-ld=${EPREFIX}/usr/bin/ld \
61 --enable-languages=c,objc,c++,obj-c++ \
62 --with-system-zlib \
63 --disable-checking -disable-werror || die "conf failed"
64 make -j1 bootstrap || die "emake failed"
65 }
66
67 src_install() {
68 cd ${WORKDIR}/build
69 make DESTDIR=${EDEST} install || die
70
71 use build && rm -rf "${D}"/usr/{man,share}
72 }

  ViewVC Help
Powered by ViewVC 1.1.20