| 1 |
drobbins |
1.1 |
To install under Mac OS X:
|
| 2 |
|
|
|
| 3 |
|
|
Requirements:
|
| 4 |
|
|
Mac OS X 10.2 (Jaguar) or greater
|
| 5 |
|
|
Apple Developer Tools or gcc toolchain if you want to compile
|
| 6 |
|
|
|
| 7 |
|
|
Steps:
|
| 8 |
|
|
|
| 9 |
|
|
First, create the Portage user. Type "sudo su" to become root, then:
|
| 10 |
|
|
|
| 11 |
|
|
niutil -create / /users/portage
|
| 12 |
|
|
niutil -appendprop . /users/portage uid 250
|
| 13 |
|
|
niutil -create / /groups/portage
|
| 14 |
|
|
niutil -appendprop . /groups/portage gid 250
|
| 15 |
|
|
|
| 16 |
|
|
The portage user and group will now be created.
|
| 17 |
|
|
|
| 18 |
|
|
Now, assuming this source tree is in /Users/drobbins, perform the following:
|
| 19 |
|
|
|
| 20 |
|
|
# ln -s /Users/drobbins/portage /usr/lib/portage
|
| 21 |
drobbins |
1.2 |
# cp /usr/lib/portage/pym/*.py /usr/lib/python2.2/site-packages/
|
| 22 |
drobbins |
1.1 |
# ln -s /usr/lib/portage/bin/emerge /usr/bin/emerge
|
| 23 |
|
|
# ln -s /usr/lib/portage/bin/ebuild.sh /usr/sbin/ebuild.sh
|
| 24 |
|
|
# cp /Users/drobbins/portage/cnf/make.conf.mac /etc/make.conf
|
| 25 |
|
|
# cp /Users/drobbins/portage/cnf/make.globals.mac /etc/make.globals
|
| 26 |
|
|
# mkdir /etc/make.profile
|
| 27 |
|
|
# vi /etc/make.profile/make.defaults (add the following lines:)
|
| 28 |
|
|
|
| 29 |
|
|
ARCH="ppc"
|
| 30 |
|
|
USE=""
|
| 31 |
|
|
ACCEPT_KEYWORDS="ppc"
|
| 32 |
|
|
COMPILER="gcc3"
|
| 33 |
|
|
|
| 34 |
|
|
Note that the "ppc" stuff above is interim as we have not started using the "mac"
|
| 35 |
|
|
keyword yet.
|
| 36 |
|
|
|
| 37 |
|
|
Now, emerge sync:
|
| 38 |
|
|
|
| 39 |
|
|
# emerge sync
|
| 40 |
|
|
|
| 41 |
|
|
Now, copy all files from /usr/portage/profiles/default-ppc-1.4/ to /etc/make.profile
|
| 42 |
|
|
*except* for the already-existing /etc/make.profile/make.defaults file.
|
| 43 |
|
|
|
| 44 |
|
|
You should now be able to do things like:
|
| 45 |
|
|
|
| 46 |
|
|
# emerge -eup world
|
| 47 |
|
|
|
| 48 |
|
|
Note that nearly everything will b0rk hard if you try to emerge it. A few things
|
| 49 |
|
|
will work with no issues as long as use use the --nodeps option. Try:
|
| 50 |
|
|
|
| 51 |
|
|
# emerge --nodeps nano
|
| 52 |
|
|
|
| 53 |
|
|
Happy hacking!
|
| 54 |
|
|
|
| 55 |
|
|
Email drobbins@gentoo.org and cc: pvdabeel@gentoo.org regarding any needed changes
|
| 56 |
|
|
or improvements to this document.
|
| 57 |
|
|
|