blob: 057abf3cce58a36a0f6e84e90090c7bd4d6db230 (
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
56
57
58
59
60
61
62
63
64
65
66
|
#!/bin/bash
# Copyright 2004 The Gentoo Foundation, Pieter Van den Abeele
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-macos.sh,v 1.4 2004/07/13 16:32:23 pvdabeel Exp $
# Make sure sudo passwd is asked for
sudo true
# Source functions to have colors and nice output
source /usr/lib/portage/bin/functions.sh
# This is currently a Mac OS only script. But it could easily be reused
# for Operating systems such as Solaris, ... If your interested in doing
# such a port, contact Pieter Van den Abeele at pvdabeel@gentoo.org
# Note: for complete darwin bootstraps, we'll reuse the regular portage bootstrap.sh
trap 'exit 1' TERM KILL INT QUIT ABRT
echo
echo -e "${GOOD}Gentoo Mac OS ; \e[34;01mhttp://www.gentoo.org/${NORMAL}"
echo -e "Copyright 2004 The Gentoo Foundation ; Distributed under the GPL v2"
echo
NAME="Mac OS X"
RELEASE="10"
case "`uname -r`" in
6*)
NAME="Jaguar"
RELEASE="10.2"
;;
7*)
NAME="Panther"
RELEASE="10.3"
;;
8*)
NAME="Tiger"
RELEASE="10.4"
;;
esac
sudo ln -sf /usr/portage/profiles/default-macos-${RELEASE} /etc/make.profile
ebegin "Portage will attempt taming your ${NAME}"
function missing_devtools {
ewend 1
echo -e "Please install the ${NAME} developer tools"
echo
exit 1
}
gcc -v 2> /dev/null || missing_devtools
echo
for package in `cat /usr/portage/profiles/default-macos-${RELEASE}/packages.build`; do
ebegin " >>> Injecting ${package} " && ewend $?
sudo emerge inject ${package} > /dev/null 2> /dev/null
done
echo
echo -e "Portage successfully tamed your ${NAME}"
|