summaryrefslogtreecommitdiff
blob: 7714d1ec4cf741fc34613e31143aa29e9d89bde5 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-apple/gcc-apple-1762.ebuild,v 1.3 2005/03/18 16:49:25 vapier Exp $

DESCRIPTION="Apple branch of the GNU compiler (based on gcc-3.5.0-tree-ssa)"
HOMEPAGE="http://darwinsource.opendarwin.org/"
SRC_URI="http://darwinsource.opendarwin.org/tarballs/other/gcc-${PV}.tar.gz"

LICENSE="APSL-2 GPL-2"
SLOT="0"
KEYWORDS="-* ~ppc-macos"
IUSE="build nls"

RDEPEND="virtual/libc
	sys-libs/zlib
	!build? (
		nls? ( sys-devel/gettext )
		sys-libs/ncurses
	)"
DEPEND="sys-apps/texinfo
	sys-devel/bison
	sys-devel/cctools-extras
	sys-libs/csu"

S=${WORKDIR}/gcc-${PV}

src_compile() {
	:
}

src_install() {
	mkdir -p "${S}"/build/obj "${S}"/build/sym
	gnumake \
		RC_OS=macos RC_ARCHS=ppc TARGETS=ppc \
		SRCROOT="${S}" OBJROOT="${S}"/build/obj \
		DSTROOT="${D}" SYMROOT="${S}"/build/sym \
		install \
		|| die

	if use build ; then
		rm -r "${D}"/Developer
		rm -r "${D}"/usr/share
	fi
}