summaryrefslogtreecommitdiff
blob: a02f2808ed5d63f28932251865b46f67a83bc93a (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
# 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.1 2005/02/19 18:46:02 kito Exp $

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

DESCRIPTION="Apple branch of the GNU compiler based on gcc version 3.5.0-tree-ssa"
WEBPAGE="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"

src_compile() {
	:
}

src_install() {
	mkdir -p ${S}/build/obj ${S}/build/sym
	cd ${S}
	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 -rf ${D}/Developer
		rm -rf ${D}/usr/share
	fi
}