summaryrefslogtreecommitdiff
path: root/profiles/prefix/darwin/macos
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /profiles/prefix/darwin/macos
reinit the tree, so we can have metadata
Diffstat (limited to 'profiles/prefix/darwin/macos')
-rw-r--r--profiles/prefix/darwin/macos/10.10/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.10/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.10/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.10/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.10/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.10/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.10/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.10/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.10/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.11/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.11/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.11/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.11/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.11/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.11/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.11/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.11/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.11/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.12/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.12/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.12/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.12/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.12/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.12/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.12/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.12/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.12/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.13/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.13/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.13/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.13/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.13/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.13/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.13/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.13/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.13/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.4/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.4/make.defaults4
-rw-r--r--profiles/prefix/darwin/macos/10.4/package.mask15
-rw-r--r--profiles/prefix/darwin/macos/10.4/package.use.mask12
-rw-r--r--profiles/prefix/darwin/macos/10.4/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/package.mask3
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/package.use.mask3
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.4/ppc/use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.4/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/package.unmask2
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.4/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.5/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.5/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.5/package.mask12
-rw-r--r--profiles/prefix/darwin/macos/10.5/package.use.mask12
-rw-r--r--profiles/prefix/darwin/macos/10.5/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/package.unmask2
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/package.use.mask8
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.5/ppc/use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.5/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/package.unmask3
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.5/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/package.unmask3
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.5/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.6/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.6/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.6/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.6/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.6/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.6/x64/use.mask36
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/package.mask3
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.6/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.7/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.7/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.7/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.7/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.7/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.7/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.7/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.8/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.8/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.8/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.8/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.8/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.8/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.8/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.8/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.8/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.9/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.9/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/10.9/package.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.9/package.unmask7
-rw-r--r--profiles/prefix/darwin/macos/10.9/package.use.mask7
-rw-r--r--profiles/prefix/darwin/macos/10.9/parent1
-rw-r--r--profiles/prefix/darwin/macos/10.9/profile.bashrc4
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/package.mask2
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.9/x64/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/make.defaults5
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/package.mask9
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/package.use.force6
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/package.use.mask4
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/parent2
-rw-r--r--profiles/prefix/darwin/macos/10.9/x86/use.mask34
-rw-r--r--profiles/prefix/darwin/macos/arch/eapi1
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/eapi1
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/make.defaults12
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/package.mask10
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/package.use.force7
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/package.use.mask14
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/use.force6
-rw-r--r--profiles/prefix/darwin/macos/arch/ppc/use.mask6
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/eapi1
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/make.defaults16
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/package.mask12
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/package.use.force7
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/package.use.mask18
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/use.force6
-rw-r--r--profiles/prefix/darwin/macos/arch/x64/use.mask6
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/eapi1
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/make.defaults16
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/package.mask5
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/package.use.force7
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/package.use.mask18
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/use.force6
-rw-r--r--profiles/prefix/darwin/macos/arch/x86/use.mask6
-rw-r--r--profiles/prefix/darwin/macos/eapi1
-rw-r--r--profiles/prefix/darwin/macos/make.defaults8
-rw-r--r--profiles/prefix/darwin/macos/package.mask8
-rw-r--r--profiles/prefix/darwin/macos/package.use.force14
-rw-r--r--profiles/prefix/darwin/macos/package.use.mask22
-rw-r--r--profiles/prefix/darwin/macos/packages7
-rw-r--r--profiles/prefix/darwin/macos/parent1
242 files changed, 1702 insertions, 0 deletions
diff --git a/profiles/prefix/darwin/macos/10.10/eapi b/profiles/prefix/darwin/macos/10.10/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.10/make.defaults b/profiles/prefix/darwin/macos/10.10/make.defaults
new file mode 100644
index 000000000000..ae958cc22081
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.10"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.10/package.mask b/profiles/prefix/darwin/macos/10.10/package.mask
new file mode 100644
index 000000000000..c8a0f51c1211
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.10/package.unmask b/profiles/prefix/darwin/macos/10.10/package.unmask
new file mode 100644
index 000000000000..f72a8fab624d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in 10.10.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.10/package.use.mask b/profiles/prefix/darwin/macos/10.10/package.use.mask
new file mode 100644
index 000000000000..0e3b22de53b7
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.10/parent b/profiles/prefix/darwin/macos/10.10/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.10/profile.bashrc b/profiles/prefix/darwin/macos/10.10/profile.bashrc
new file mode 100644
index 000000000000..e80837769875
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.10
diff --git a/profiles/prefix/darwin/macos/10.10/x64/eapi b/profiles/prefix/darwin/macos/10.10/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.10/x64/make.defaults b/profiles/prefix/darwin/macos/10.10/x64/make.defaults
new file mode 100644
index 000000000000..47aeed03be0f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin14"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.10/x64/package.mask b/profiles/prefix/darwin/macos/10.10/x64/package.mask
new file mode 100644
index 000000000000..90062e0f6d10
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.10/x64/package.use.force b/profiles/prefix/darwin/macos/10.10/x64/package.use.force
new file mode 100644
index 000000000000..37fe719d893e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.10/x64/package.use.mask b/profiles/prefix/darwin/macos/10.10/x64/package.use.mask
new file mode 100644
index 000000000000..cbce096ae6b6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.10/x64/parent b/profiles/prefix/darwin/macos/10.10/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.10/x64/use.mask b/profiles/prefix/darwin/macos/10.10/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.10/x86/eapi b/profiles/prefix/darwin/macos/10.10/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.10/x86/make.defaults b/profiles/prefix/darwin/macos/10.10/x86/make.defaults
new file mode 100644
index 000000000000..25bb4496025c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin14"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.10/x86/package.mask b/profiles/prefix/darwin/macos/10.10/x86/package.mask
new file mode 100644
index 000000000000..21e0df1269c9
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.10/x86/package.use.force b/profiles/prefix/darwin/macos/10.10/x86/package.use.force
new file mode 100644
index 000000000000..37fe719d893e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.10/x86/package.use.mask b/profiles/prefix/darwin/macos/10.10/x86/package.use.mask
new file mode 100644
index 000000000000..cbce096ae6b6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.10/x86/parent b/profiles/prefix/darwin/macos/10.10/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.10/x86/use.mask b/profiles/prefix/darwin/macos/10.10/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.10/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.11/eapi b/profiles/prefix/darwin/macos/10.11/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.11/make.defaults b/profiles/prefix/darwin/macos/10.11/make.defaults
new file mode 100644
index 000000000000..b0c23df10794
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.11"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.11/package.mask b/profiles/prefix/darwin/macos/10.11/package.mask
new file mode 100644
index 000000000000..25d98fcad184
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.11/package.unmask b/profiles/prefix/darwin/macos/10.11/package.unmask
new file mode 100644
index 000000000000..ffa904e1603a
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in >10.10.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.11/package.use.mask b/profiles/prefix/darwin/macos/10.11/package.use.mask
new file mode 100644
index 000000000000..a2e4210b6c4b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.11/parent b/profiles/prefix/darwin/macos/10.11/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.11/profile.bashrc b/profiles/prefix/darwin/macos/10.11/profile.bashrc
new file mode 100644
index 000000000000..45e4fccece0c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.11
diff --git a/profiles/prefix/darwin/macos/10.11/x64/eapi b/profiles/prefix/darwin/macos/10.11/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.11/x64/make.defaults b/profiles/prefix/darwin/macos/10.11/x64/make.defaults
new file mode 100644
index 000000000000..d48346f6f6b3
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin15"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.11/x64/package.mask b/profiles/prefix/darwin/macos/10.11/x64/package.mask
new file mode 100644
index 000000000000..a99368d0861f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.11/x64/package.use.force b/profiles/prefix/darwin/macos/10.11/x64/package.use.force
new file mode 100644
index 000000000000..3890d8713529
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.11/x64/package.use.mask b/profiles/prefix/darwin/macos/10.11/x64/package.use.mask
new file mode 100644
index 000000000000..76d41d1fd860
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.11/x64/parent b/profiles/prefix/darwin/macos/10.11/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.11/x64/use.mask b/profiles/prefix/darwin/macos/10.11/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.11/x86/eapi b/profiles/prefix/darwin/macos/10.11/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.11/x86/make.defaults b/profiles/prefix/darwin/macos/10.11/x86/make.defaults
new file mode 100644
index 000000000000..f77f7777f6cf
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin15"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.11/x86/package.mask b/profiles/prefix/darwin/macos/10.11/x86/package.mask
new file mode 100644
index 000000000000..0873d990d5a0
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.11/x86/package.use.force b/profiles/prefix/darwin/macos/10.11/x86/package.use.force
new file mode 100644
index 000000000000..3890d8713529
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.11/x86/package.use.mask b/profiles/prefix/darwin/macos/10.11/x86/package.use.mask
new file mode 100644
index 000000000000..76d41d1fd860
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.11/x86/parent b/profiles/prefix/darwin/macos/10.11/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.11/x86/use.mask b/profiles/prefix/darwin/macos/10.11/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.11/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.12/eapi b/profiles/prefix/darwin/macos/10.12/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.12/make.defaults b/profiles/prefix/darwin/macos/10.12/make.defaults
new file mode 100644
index 000000000000..65768d98975f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.12"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.12/package.mask b/profiles/prefix/darwin/macos/10.12/package.mask
new file mode 100644
index 000000000000..3a93b13de32a
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.12/package.unmask b/profiles/prefix/darwin/macos/10.12/package.unmask
new file mode 100644
index 000000000000..9b6d7fac0541
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in >10.10.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.12/package.use.mask b/profiles/prefix/darwin/macos/10.12/package.use.mask
new file mode 100644
index 000000000000..45a85366bdbc
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.12/parent b/profiles/prefix/darwin/macos/10.12/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.12/profile.bashrc b/profiles/prefix/darwin/macos/10.12/profile.bashrc
new file mode 100644
index 000000000000..606735442cef
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.12
diff --git a/profiles/prefix/darwin/macos/10.12/x64/eapi b/profiles/prefix/darwin/macos/10.12/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.12/x64/make.defaults b/profiles/prefix/darwin/macos/10.12/x64/make.defaults
new file mode 100644
index 000000000000..46f92cb62b20
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin16"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.12/x64/package.mask b/profiles/prefix/darwin/macos/10.12/x64/package.mask
new file mode 100644
index 000000000000..5b64a27123b6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.12/x64/package.use.force b/profiles/prefix/darwin/macos/10.12/x64/package.use.force
new file mode 100644
index 000000000000..bbe3384ec5bb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.12/x64/package.use.mask b/profiles/prefix/darwin/macos/10.12/x64/package.use.mask
new file mode 100644
index 000000000000..2b71fbdac61e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.12/x64/parent b/profiles/prefix/darwin/macos/10.12/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.12/x64/use.mask b/profiles/prefix/darwin/macos/10.12/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.12/x86/eapi b/profiles/prefix/darwin/macos/10.12/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.12/x86/make.defaults b/profiles/prefix/darwin/macos/10.12/x86/make.defaults
new file mode 100644
index 000000000000..bdc6f366701e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin16"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.12/x86/package.mask b/profiles/prefix/darwin/macos/10.12/x86/package.mask
new file mode 100644
index 000000000000..dfef4895f302
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.12/x86/package.use.force b/profiles/prefix/darwin/macos/10.12/x86/package.use.force
new file mode 100644
index 000000000000..bbe3384ec5bb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.12/x86/package.use.mask b/profiles/prefix/darwin/macos/10.12/x86/package.use.mask
new file mode 100644
index 000000000000..2b71fbdac61e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.12/x86/parent b/profiles/prefix/darwin/macos/10.12/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.12/x86/use.mask b/profiles/prefix/darwin/macos/10.12/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.12/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.13/eapi b/profiles/prefix/darwin/macos/10.13/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.13/make.defaults b/profiles/prefix/darwin/macos/10.13/make.defaults
new file mode 100644
index 000000000000..6dc36a684969
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.13"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.13/package.mask b/profiles/prefix/darwin/macos/10.13/package.mask
new file mode 100644
index 000000000000..41658a130edd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.13/package.unmask b/profiles/prefix/darwin/macos/10.13/package.unmask
new file mode 100644
index 000000000000..40d7b786343e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in >10.10.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.13/package.use.mask b/profiles/prefix/darwin/macos/10.13/package.use.mask
new file mode 100644
index 000000000000..16ddb12d86d4
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.13/parent b/profiles/prefix/darwin/macos/10.13/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.13/profile.bashrc b/profiles/prefix/darwin/macos/10.13/profile.bashrc
new file mode 100644
index 000000000000..960cf84d39ab
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.13
diff --git a/profiles/prefix/darwin/macos/10.13/x64/eapi b/profiles/prefix/darwin/macos/10.13/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.13/x64/make.defaults b/profiles/prefix/darwin/macos/10.13/x64/make.defaults
new file mode 100644
index 000000000000..fa11dd005680
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin17"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.13/x64/package.mask b/profiles/prefix/darwin/macos/10.13/x64/package.mask
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.13/x64/package.use.force b/profiles/prefix/darwin/macos/10.13/x64/package.use.force
new file mode 100644
index 000000000000..4cd81fcc677c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.13/x64/package.use.mask b/profiles/prefix/darwin/macos/10.13/x64/package.use.mask
new file mode 100644
index 000000000000..70e5d808db3d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.13/x64/parent b/profiles/prefix/darwin/macos/10.13/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.13/x64/use.mask b/profiles/prefix/darwin/macos/10.13/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.13/x86/eapi b/profiles/prefix/darwin/macos/10.13/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.13/x86/make.defaults b/profiles/prefix/darwin/macos/10.13/x86/make.defaults
new file mode 100644
index 000000000000..801d199034d3
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin17"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.13/x86/package.mask b/profiles/prefix/darwin/macos/10.13/x86/package.mask
new file mode 100644
index 000000000000..94be57326b14
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.13/x86/package.use.force b/profiles/prefix/darwin/macos/10.13/x86/package.use.force
new file mode 100644
index 000000000000..4cd81fcc677c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.13/x86/package.use.mask b/profiles/prefix/darwin/macos/10.13/x86/package.use.mask
new file mode 100644
index 000000000000..70e5d808db3d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.13/x86/parent b/profiles/prefix/darwin/macos/10.13/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.13/x86/use.mask b/profiles/prefix/darwin/macos/10.13/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.13/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.4/eapi b/profiles/prefix/darwin/macos/10.4/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.4/make.defaults b/profiles/prefix/darwin/macos/10.4/make.defaults
new file mode 100644
index 000000000000..f8958c17eaf1
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/make.defaults
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.4"
diff --git a/profiles/prefix/darwin/macos/10.4/package.mask b/profiles/prefix/darwin/macos/10.4/package.mask
new file mode 100644
index 000000000000..92066a995673
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/package.mask
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (03 May 2012)
+# Needs 10.6 or up
+>=dev-lang/ghc-7
+
+# Fabian Groffen <grobian@gentoo.org> (11 Jul 2011)
+# Needs headers only available starting from 10.5 (Leopard)
+sys-process/lsof
+
+# Fabian Groffen <grobian@gentoo.org> (30 Apr 2011)
+# These releases got a rewrite that is no longer compatible with
+# CoreAudio as available on Tiger and Leopard
+>=media-libs/mediastreamer-2.7.3
diff --git a/profiles/prefix/darwin/macos/10.4/package.use.mask b/profiles/prefix/darwin/macos/10.4/package.use.mask
new file mode 100644
index 000000000000..abb881877509
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/package.use.mask
@@ -0,0 +1,12 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+# Fabian Groffen <grobian@gentoo.org> (28 Apr 2008)
+# mach_override.h missing
+# http://www.erlang.org/pipermail/erlang-questions/2007-July/027870.html
+dev-lang/erlang hipe
+
+# Elias Pipping <pipping@gentoo.org> (25 Nov 2007)
+# there's no (official) java6 on macosx
+dev-util/checkstyle test
diff --git a/profiles/prefix/darwin/macos/10.4/parent b/profiles/prefix/darwin/macos/10.4/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/eapi b/profiles/prefix/darwin/macos/10.4/ppc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/make.defaults b/profiles/prefix/darwin/macos/10.4/ppc/make.defaults
new file mode 100644
index 000000000000..a7ca397782c9
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="powerpc-apple-darwin8"
+CHOST_ppc="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/package.mask b/profiles/prefix/darwin/macos/10.4/ppc/package.mask
new file mode 100644
index 000000000000..2a5c2e63e2f4
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/package.mask
@@ -0,0 +1,3 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/package.use.mask b/profiles/prefix/darwin/macos/10.4/ppc/package.use.mask
new file mode 100644
index 000000000000..f7ac4607b395
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/package.use.mask
@@ -0,0 +1,3 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/parent b/profiles/prefix/darwin/macos/10.4/ppc/parent
new file mode 100644
index 000000000000..59ddeb924a6d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/parent
@@ -0,0 +1,2 @@
+..
+../../arch/ppc
diff --git a/profiles/prefix/darwin/macos/10.4/ppc/use.mask b/profiles/prefix/darwin/macos/10.4/ppc/use.mask
new file mode 100644
index 000000000000..cb5937b71a2e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/ppc/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-altivec
diff --git a/profiles/prefix/darwin/macos/10.4/profile.bashrc b/profiles/prefix/darwin/macos/10.4/profile.bashrc
new file mode 100644
index 000000000000..f227ae79ef20
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.4
diff --git a/profiles/prefix/darwin/macos/10.4/x86/eapi b/profiles/prefix/darwin/macos/10.4/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.4/x86/make.defaults b/profiles/prefix/darwin/macos/10.4/x86/make.defaults
new file mode 100644
index 000000000000..aa58c46bfa62
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin8"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.4/x86/package.unmask b/profiles/prefix/darwin/macos/10.4/x86/package.unmask
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/package.unmask
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.4/x86/package.use.force b/profiles/prefix/darwin/macos/10.4/x86/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.4/x86/package.use.mask b/profiles/prefix/darwin/macos/10.4/x86/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.4/x86/parent b/profiles/prefix/darwin/macos/10.4/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.4/x86/use.mask b/profiles/prefix/darwin/macos/10.4/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.4/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.5/eapi b/profiles/prefix/darwin/macos/10.5/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.5/make.defaults b/profiles/prefix/darwin/macos/10.5/make.defaults
new file mode 100644
index 000000000000..b4eacf03871f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.5"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.5/package.mask b/profiles/prefix/darwin/macos/10.5/package.mask
new file mode 100644
index 000000000000..daf51e691ebf
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/package.mask
@@ -0,0 +1,12 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (03 May 2012)
+# Needs 10.6 or up
+>=dev-lang/ghc-7
+
+# Fabian Groffen <grobian@gentoo.org> (06 Nov 2011)
+# These releases got a rewrite that is no longer compatible with
+# CoreAudio as available on Tiger and Leopard
+>=media-libs/mediastreamer-2.7.3
+
diff --git a/profiles/prefix/darwin/macos/10.5/package.use.mask b/profiles/prefix/darwin/macos/10.5/package.use.mask
new file mode 100644
index 000000000000..abb881877509
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/package.use.mask
@@ -0,0 +1,12 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+# Fabian Groffen <grobian@gentoo.org> (28 Apr 2008)
+# mach_override.h missing
+# http://www.erlang.org/pipermail/erlang-questions/2007-July/027870.html
+dev-lang/erlang hipe
+
+# Elias Pipping <pipping@gentoo.org> (25 Nov 2007)
+# there's no (official) java6 on macosx
+dev-util/checkstyle test
diff --git a/profiles/prefix/darwin/macos/10.5/parent b/profiles/prefix/darwin/macos/10.5/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/eapi b/profiles/prefix/darwin/macos/10.5/ppc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/make.defaults b/profiles/prefix/darwin/macos/10.5/ppc/make.defaults
new file mode 100644
index 000000000000..8b8ab7718059
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="powerpc-apple-darwin9"
+CHOST_ppc="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/package.mask b/profiles/prefix/darwin/macos/10.5/ppc/package.mask
new file mode 100644
index 000000000000..13d119cb0a6d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/package.unmask b/profiles/prefix/darwin/macos/10.5/ppc/package.unmask
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/package.unmask
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/package.use.force b/profiles/prefix/darwin/macos/10.5/ppc/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/package.use.mask b/profiles/prefix/darwin/macos/10.5/ppc/package.use.mask
new file mode 100644
index 000000000000..5e018747494e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/package.use.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+# flag returns compile errors
+media-video/mplayer cpudetection
+# libs mising
+media-video/mplayer sdl libcaca dv nas bidi enca cdparanoia samba live openal
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/parent b/profiles/prefix/darwin/macos/10.5/ppc/parent
new file mode 100644
index 000000000000..59ddeb924a6d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/parent
@@ -0,0 +1,2 @@
+..
+../../arch/ppc
diff --git a/profiles/prefix/darwin/macos/10.5/ppc/use.mask b/profiles/prefix/darwin/macos/10.5/ppc/use.mask
new file mode 100644
index 000000000000..cb5937b71a2e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/ppc/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-altivec
diff --git a/profiles/prefix/darwin/macos/10.5/profile.bashrc b/profiles/prefix/darwin/macos/10.5/profile.bashrc
new file mode 100644
index 000000000000..b623585a96cc
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.5
diff --git a/profiles/prefix/darwin/macos/10.5/x64/eapi b/profiles/prefix/darwin/macos/10.5/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.5/x64/make.defaults b/profiles/prefix/darwin/macos/10.5/x64/make.defaults
new file mode 100644
index 000000000000..dec1335075b7
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin9"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.5/x64/package.mask b/profiles/prefix/darwin/macos/10.5/x64/package.mask
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.5/x64/package.unmask b/profiles/prefix/darwin/macos/10.5/x64/package.unmask
new file mode 100644
index 000000000000..ca74cff56ac6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/package.unmask
@@ -0,0 +1,3 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
diff --git a/profiles/prefix/darwin/macos/10.5/x64/package.use.force b/profiles/prefix/darwin/macos/10.5/x64/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.5/x64/package.use.mask b/profiles/prefix/darwin/macos/10.5/x64/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.5/x64/parent b/profiles/prefix/darwin/macos/10.5/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.5/x64/use.mask b/profiles/prefix/darwin/macos/10.5/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.5/x86/eapi b/profiles/prefix/darwin/macos/10.5/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.5/x86/make.defaults b/profiles/prefix/darwin/macos/10.5/x86/make.defaults
new file mode 100644
index 000000000000..ce7d752b743c
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin9"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.5/x86/package.mask b/profiles/prefix/darwin/macos/10.5/x86/package.mask
new file mode 100644
index 000000000000..13d119cb0a6d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.5/x86/package.unmask b/profiles/prefix/darwin/macos/10.5/x86/package.unmask
new file mode 100644
index 000000000000..ca74cff56ac6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/package.unmask
@@ -0,0 +1,3 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
diff --git a/profiles/prefix/darwin/macos/10.5/x86/package.use.force b/profiles/prefix/darwin/macos/10.5/x86/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.5/x86/package.use.mask b/profiles/prefix/darwin/macos/10.5/x86/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.5/x86/parent b/profiles/prefix/darwin/macos/10.5/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.5/x86/use.mask b/profiles/prefix/darwin/macos/10.5/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.5/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.6/eapi b/profiles/prefix/darwin/macos/10.6/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.6/make.defaults b/profiles/prefix/darwin/macos/10.6/make.defaults
new file mode 100644
index 000000000000..7251a95b1ada
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.6"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.6/package.use.mask b/profiles/prefix/darwin/macos/10.6/package.use.mask
new file mode 100644
index 000000000000..cba856984633
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
+# Elias Pipping <pipping@gentoo.org> (25 Nov 2007)
+# there's no (official) java6 on macosx
+dev-util/checkstyle test
diff --git a/profiles/prefix/darwin/macos/10.6/parent b/profiles/prefix/darwin/macos/10.6/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.6/profile.bashrc b/profiles/prefix/darwin/macos/10.6/profile.bashrc
new file mode 100644
index 000000000000..21253613c396
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.6
diff --git a/profiles/prefix/darwin/macos/10.6/x64/eapi b/profiles/prefix/darwin/macos/10.6/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.6/x64/make.defaults b/profiles/prefix/darwin/macos/10.6/x64/make.defaults
new file mode 100644
index 000000000000..af0134eefb65
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin10"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.6/x64/package.mask b/profiles/prefix/darwin/macos/10.6/x64/package.mask
new file mode 100644
index 000000000000..0cc0ba14627f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.6/x64/package.use.force b/profiles/prefix/darwin/macos/10.6/x64/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.6/x64/package.use.mask b/profiles/prefix/darwin/macos/10.6/x64/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.6/x64/parent b/profiles/prefix/darwin/macos/10.6/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.6/x64/use.mask b/profiles/prefix/darwin/macos/10.6/x64/use.mask
new file mode 100644
index 000000000000..d25cb678586f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x64/use.mask
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Unmask osp, used by asterisk; bug 115798
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.6/x86/eapi b/profiles/prefix/darwin/macos/10.6/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.6/x86/make.defaults b/profiles/prefix/darwin/macos/10.6/x86/make.defaults
new file mode 100644
index 000000000000..89da7dfebd35
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin10"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.6/x86/package.mask b/profiles/prefix/darwin/macos/10.6/x86/package.mask
new file mode 100644
index 000000000000..2a5c2e63e2f4
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/package.mask
@@ -0,0 +1,3 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
diff --git a/profiles/prefix/darwin/macos/10.6/x86/package.use.force b/profiles/prefix/darwin/macos/10.6/x86/package.use.force
new file mode 100644
index 000000000000..eb7f4d25673f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.6/x86/package.use.mask b/profiles/prefix/darwin/macos/10.6/x86/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.6/x86/parent b/profiles/prefix/darwin/macos/10.6/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.6/x86/use.mask b/profiles/prefix/darwin/macos/10.6/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.6/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.7/eapi b/profiles/prefix/darwin/macos/10.7/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.7/make.defaults b/profiles/prefix/darwin/macos/10.7/make.defaults
new file mode 100644
index 000000000000..09b93d3de3f2
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.7"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.7/package.use.mask b/profiles/prefix/darwin/macos/10.7/package.use.mask
new file mode 100644
index 000000000000..61d76c7770fe
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.7/parent b/profiles/prefix/darwin/macos/10.7/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.7/profile.bashrc b/profiles/prefix/darwin/macos/10.7/profile.bashrc
new file mode 100644
index 000000000000..e335b82de74e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.7
diff --git a/profiles/prefix/darwin/macos/10.7/x64/eapi b/profiles/prefix/darwin/macos/10.7/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.7/x64/make.defaults b/profiles/prefix/darwin/macos/10.7/x64/make.defaults
new file mode 100644
index 000000000000..e6c8b3450d4b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin11"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.7/x64/package.mask b/profiles/prefix/darwin/macos/10.7/x64/package.mask
new file mode 100644
index 000000000000..c217bea65701
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.7/x64/package.use.force b/profiles/prefix/darwin/macos/10.7/x64/package.use.force
new file mode 100644
index 000000000000..3024cdfd84c2
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.7/x64/package.use.mask b/profiles/prefix/darwin/macos/10.7/x64/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.7/x64/parent b/profiles/prefix/darwin/macos/10.7/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.7/x64/use.mask b/profiles/prefix/darwin/macos/10.7/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.7/x86/eapi b/profiles/prefix/darwin/macos/10.7/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.7/x86/make.defaults b/profiles/prefix/darwin/macos/10.7/x86/make.defaults
new file mode 100644
index 000000000000..c1d087fbd5e6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin11"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.7/x86/package.mask b/profiles/prefix/darwin/macos/10.7/x86/package.mask
new file mode 100644
index 000000000000..6e7cf1fbfb04
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.7/x86/package.use.force b/profiles/prefix/darwin/macos/10.7/x86/package.use.force
new file mode 100644
index 000000000000..3024cdfd84c2
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.7/x86/package.use.mask b/profiles/prefix/darwin/macos/10.7/x86/package.use.mask
new file mode 100644
index 000000000000..1a1871bef0cb
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.7/x86/parent b/profiles/prefix/darwin/macos/10.7/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.7/x86/use.mask b/profiles/prefix/darwin/macos/10.7/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.7/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.8/eapi b/profiles/prefix/darwin/macos/10.8/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.8/make.defaults b/profiles/prefix/darwin/macos/10.8/make.defaults
new file mode 100644
index 000000000000..36cc9c2d39e6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.8"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.8/package.mask b/profiles/prefix/darwin/macos/10.8/package.mask
new file mode 100644
index 000000000000..0d1a44f9d1f3
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.8/package.unmask b/profiles/prefix/darwin/macos/10.8/package.unmask
new file mode 100644
index 000000000000..522ceb60c053
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in 10.8.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.8/package.use.mask b/profiles/prefix/darwin/macos/10.8/package.use.mask
new file mode 100644
index 000000000000..5d32c2572ec9
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.8/parent b/profiles/prefix/darwin/macos/10.8/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.8/profile.bashrc b/profiles/prefix/darwin/macos/10.8/profile.bashrc
new file mode 100644
index 000000000000..f9c6eec58bbd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.8
diff --git a/profiles/prefix/darwin/macos/10.8/x64/eapi b/profiles/prefix/darwin/macos/10.8/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.8/x64/make.defaults b/profiles/prefix/darwin/macos/10.8/x64/make.defaults
new file mode 100644
index 000000000000..1b8e40a7b3b6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin12"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.8/x64/package.mask b/profiles/prefix/darwin/macos/10.8/x64/package.mask
new file mode 100644
index 000000000000..633c704dafd1
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.8/x64/package.use.force b/profiles/prefix/darwin/macos/10.8/x64/package.use.force
new file mode 100644
index 000000000000..8e66f5a37ccd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.8/x64/package.use.mask b/profiles/prefix/darwin/macos/10.8/x64/package.use.mask
new file mode 100644
index 000000000000..7e1e64983ebd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.8/x64/parent b/profiles/prefix/darwin/macos/10.8/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.8/x64/use.mask b/profiles/prefix/darwin/macos/10.8/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.8/x86/eapi b/profiles/prefix/darwin/macos/10.8/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.8/x86/make.defaults b/profiles/prefix/darwin/macos/10.8/x86/make.defaults
new file mode 100644
index 000000000000..cda566d1f3c1
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin12"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.8/x86/package.mask b/profiles/prefix/darwin/macos/10.8/x86/package.mask
new file mode 100644
index 000000000000..6e7cf1fbfb04
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.8/x86/package.use.force b/profiles/prefix/darwin/macos/10.8/x86/package.use.force
new file mode 100644
index 000000000000..8e66f5a37ccd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.8/x86/package.use.mask b/profiles/prefix/darwin/macos/10.8/x86/package.use.mask
new file mode 100644
index 000000000000..7e1e64983ebd
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.8/x86/parent b/profiles/prefix/darwin/macos/10.8/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.8/x86/use.mask b/profiles/prefix/darwin/macos/10.8/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.8/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.9/eapi b/profiles/prefix/darwin/macos/10.9/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.9/make.defaults b/profiles/prefix/darwin/macos/10.9/make.defaults
new file mode 100644
index 000000000000..346de818f06b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MACOSX_DEPLOYMENT_TARGET="10.9"
+
+# sandbox is working with use of Mac OS X's seatbelt (since 10.5)
+# but it generates problems, #456234
+#FEATURES="sandbox"
diff --git a/profiles/prefix/darwin/macos/10.9/package.mask b/profiles/prefix/darwin/macos/10.9/package.mask
new file mode 100644
index 000000000000..8669e34bc83e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (30 Sep 2012)
+# Requires XQuartz, since Apple dropped much of X-support in 10.8
+# (a.k.a. Mountain Lion), bug #431182
+media-libs/opengl-apple
diff --git a/profiles/prefix/darwin/macos/10.9/package.unmask b/profiles/prefix/darwin/macos/10.9/package.unmask
new file mode 100644
index 000000000000..728cd4f5190e
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/package.unmask
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent releases are supported in 10.9.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/10.9/package.use.mask b/profiles/prefix/darwin/macos/10.9/package.use.mask
new file mode 100644
index 000000000000..fc77c22b7f25
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/package.use.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (10 Apr 2011)
+# as long as util-linux installs uuid.h which breaks the system headers
+# (hence we don't) we can't do uuid support here
+x11-libs/libSM -uuid
diff --git a/profiles/prefix/darwin/macos/10.9/parent b/profiles/prefix/darwin/macos/10.9/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/prefix/darwin/macos/10.9/profile.bashrc b/profiles/prefix/darwin/macos/10.9/profile.bashrc
new file mode 100644
index 000000000000..8a0c588ed92d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/profile.bashrc
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export MACOSX_DEPLOYMENT_TARGET=10.9
diff --git a/profiles/prefix/darwin/macos/10.9/x64/eapi b/profiles/prefix/darwin/macos/10.9/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.9/x64/make.defaults b/profiles/prefix/darwin/macos/10.9/x64/make.defaults
new file mode 100644
index 000000000000..def0ef7cdecf
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="x86_64-apple-darwin13"
+CHOST_amd64="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.9/x64/package.mask b/profiles/prefix/darwin/macos/10.9/x64/package.mask
new file mode 100644
index 000000000000..17532723914b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/prefix/darwin/macos/10.9/x64/package.use.force b/profiles/prefix/darwin/macos/10.9/x64/package.use.force
new file mode 100644
index 000000000000..7d3ab2bb8526
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.9/x64/package.use.mask b/profiles/prefix/darwin/macos/10.9/x64/package.use.mask
new file mode 100644
index 000000000000..a47b5f8b1d1d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.9/x64/parent b/profiles/prefix/darwin/macos/10.9/x64/parent
new file mode 100644
index 000000000000..269f6f48bb15
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x64
diff --git a/profiles/prefix/darwin/macos/10.9/x64/use.mask b/profiles/prefix/darwin/macos/10.9/x64/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x64/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/10.9/x86/eapi b/profiles/prefix/darwin/macos/10.9/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/10.9/x86/make.defaults b/profiles/prefix/darwin/macos/10.9/x86/make.defaults
new file mode 100644
index 000000000000..e46679e23636
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="i686-apple-darwin13"
+CHOST_x86="${CHOST}"
diff --git a/profiles/prefix/darwin/macos/10.9/x86/package.mask b/profiles/prefix/darwin/macos/10.9/x86/package.mask
new file mode 100644
index 000000000000..71da32f6e834
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The Carbon interface has been removed entirely in Lion, only tk-8.6
+# will come with Cocoa support. If you must have tk, you'll have to
+# force USE=-aqua, but don't report bugs for incompatabilities you might
+# encounter.
+# NOTE: keep this mask synced with arch/x64
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/10.9/x86/package.use.force b/profiles/prefix/darwin/macos/10.9/x86/package.use.force
new file mode 100644
index 000000000000..7d3ab2bb8526
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Elias Pipping <pipping@gentoo.org> (30 Sep 2007)
+# compiles with -aqua, doesn't work, though
+media-video/mplayer aqua
diff --git a/profiles/prefix/darwin/macos/10.9/x86/package.use.mask b/profiles/prefix/darwin/macos/10.9/x86/package.use.mask
new file mode 100644
index 000000000000..a47b5f8b1d1d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/package.use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+
diff --git a/profiles/prefix/darwin/macos/10.9/x86/parent b/profiles/prefix/darwin/macos/10.9/x86/parent
new file mode 100644
index 000000000000..93220d096824
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/parent
@@ -0,0 +1,2 @@
+..
+../../arch/x86
diff --git a/profiles/prefix/darwin/macos/10.9/x86/use.mask b/profiles/prefix/darwin/macos/10.9/x86/use.mask
new file mode 100644
index 000000000000..dcc0e997a9a8
--- /dev/null
+++ b/profiles/prefix/darwin/macos/10.9/x86/use.mask
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# Unmask x86 instruction sets
+-ifc
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_ssse3
+-svga
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# ibm is only used for ppc64 stuff
+ibm
diff --git a/profiles/prefix/darwin/macos/arch/eapi b/profiles/prefix/darwin/macos/arch/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/arch/ppc/eapi b/profiles/prefix/darwin/macos/arch/ppc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/arch/ppc/make.defaults b/profiles/prefix/darwin/macos/arch/ppc/make.defaults
new file mode 100644
index 000000000000..da7fa953c1fc
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="ppc-macos"
+ACCEPT_KEYWORDS="~ppc-macos"
+
+# multilib build stuff, single ABI (no multilib)
+MULTILIB_ABIS="ppc"
+DEFAULT_ABI="ppc"
+ABI="ppc"
+IUSE_IMPLICIT="abi_ppc_32"
+LIBDIR_ppc="lib"
diff --git a/profiles/prefix/darwin/macos/arch/ppc/package.mask b/profiles/prefix/darwin/macos/arch/ppc/package.mask
new file mode 100644
index 000000000000..55f215184f4b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/package.mask
@@ -0,0 +1,10 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The 32-bits profile is inherited by the 64-bits one!
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
+
+# Fabian Groffen <grobian@gentoo.org> (5 Mar 2012)
+# Apple removed entire PowerPC support from ld in ld64-128.2
+>=sys-devel/binutils-apple-4.3
diff --git a/profiles/prefix/darwin/macos/arch/ppc/package.use.force b/profiles/prefix/darwin/macos/arch/ppc/package.use.force
new file mode 100644
index 000000000000..5b234c4e9499
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (20 Dec 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_PowerPC
+sys-devel/llvm llvm_targets_PowerPC
diff --git a/profiles/prefix/darwin/macos/arch/ppc/package.use.mask b/profiles/prefix/darwin/macos/arch/ppc/package.use.mask
new file mode 100644
index 000000000000..8f009750a2ca
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/package.use.mask
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The 32-bits profile is inherited by the 64-bits one!
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
+
+# Elias Pipping <pipping@gentoo.org> (01 Sep 2007)
+# imlib2 does not compile with USE=mmx
+media-libs/imlib2 cpu_flags_x86_mmx
+
+# Elias Pipping <pipping@gentoo.org> (01 Sep 2007)
+# mpg123 does not compile with USE=mmx
+media-sound/mpg123 cpu_flags_x86_mmx
diff --git a/profiles/prefix/darwin/macos/arch/ppc/use.force b/profiles/prefix/darwin/macos/arch/ppc/use.force
new file mode 100644
index 000000000000..2df1dde89af6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the flag corresponding to the default ABI
+ppc-macos
+abi_ppc_32
diff --git a/profiles/prefix/darwin/macos/arch/ppc/use.mask b/profiles/prefix/darwin/macos/arch/ppc/use.mask
new file mode 100644
index 000000000000..837168ea147f
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/ppc/use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag corresponding to the default ABI
+-ppc-macos
+-abi_ppc_32
diff --git a/profiles/prefix/darwin/macos/arch/x64/eapi b/profiles/prefix/darwin/macos/arch/x64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/arch/x64/make.defaults b/profiles/prefix/darwin/macos/arch/x64/make.defaults
new file mode 100644
index 000000000000..f03f6a88c4ff
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/make.defaults
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="x64-macos"
+ACCEPT_KEYWORDS="~x64-macos"
+
+CPU_FLAGS_X86="mmx mmxext sse sse2"
+
+# multilib build stuff, single ABI (no multilib)
+MULTILIB_ABIS="amd64"
+DEFAULT_ABI="amd64"
+ABI="amd64"
+IUSE_IMPLICIT="abi_x86_64"
+LIBDIR_amd64="lib"
+# We use Clang, let it figure out what is the best to use
+CFLAGS="-march=native"
diff --git a/profiles/prefix/darwin/macos/arch/x64/package.mask b/profiles/prefix/darwin/macos/arch/x64/package.mask
new file mode 100644
index 000000000000..a1de0b1fec70
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/package.mask
@@ -0,0 +1,12 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The 32-bits profile is inherited by the 64-bits one!
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
+# The Carbon interface has been removed in the 64-bits userland, only
+# tk-8.6 will come with Cocoa support. If you must have tk, you'll have
+# to force USE=-aqua, but don't report bugs for incompatabilities you
+# might encounter.
+# NOTE: keep this mask synced with 10.7/x86
+<dev-lang/tk-8.6
diff --git a/profiles/prefix/darwin/macos/arch/x64/package.use.force b/profiles/prefix/darwin/macos/arch/x64/package.use.force
new file mode 100644
index 000000000000..84034d863e33
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (20 Dec 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_X86
+sys-devel/llvm llvm_targets_X86
diff --git a/profiles/prefix/darwin/macos/arch/x64/package.use.mask b/profiles/prefix/darwin/macos/arch/x64/package.use.mask
new file mode 100644
index 000000000000..42c047050b54
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/package.use.mask
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# The 32-bits profile is inherited by the 64-bits one!
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
+
+# Christoph Junghans <ottoxr@gentoo.org> (29 Dec 2014)
+# disable optimized assembly code, bug #529584
+media-libs/xvid -pic
+
+# Jeremy Olexa <darkside@gentoo.org> (29 Jul 2010)
+# Relocation issues on 32-bit OSX only, bug #329859
+media-sound/mpg123 -cpu_flags_x86_mmx -cpu_flags_x86_sse
+
+# Fabian Groffen <grobian@gentoo.org> (01 Feb 2009)
+# Doesn't compile on 32-bits OSX only, bug #257225
+media-video/ffmpeg -cpu_flags_x86_mmx
diff --git a/profiles/prefix/darwin/macos/arch/x64/use.force b/profiles/prefix/darwin/macos/arch/x64/use.force
new file mode 100644
index 000000000000..7ffc124249d7
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the flag corresponding to the default ABI
+x64-macos
+abi_x86_64
diff --git a/profiles/prefix/darwin/macos/arch/x64/use.mask b/profiles/prefix/darwin/macos/arch/x64/use.mask
new file mode 100644
index 000000000000..01a9fae674b6
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x64/use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag corresponding to the default ABI
+-x64-macos
+-abi_x86_64
diff --git a/profiles/prefix/darwin/macos/arch/x86/eapi b/profiles/prefix/darwin/macos/arch/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/arch/x86/make.defaults b/profiles/prefix/darwin/macos/arch/x86/make.defaults
new file mode 100644
index 000000000000..8870f4ea4e4d
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/make.defaults
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="x86-macos"
+ACCEPT_KEYWORDS="~x86-macos"
+
+CPU_FLAGS_X86="mmx mmxext sse sse2"
+
+# multilib build stuff, single ABI (no multilib)
+MULTILIB_ABIS="x86"
+DEFAULT_ABI="x86"
+ABI="x86"
+IUSE_IMPLICIT="abi_x86_32"
+LIBDIR_x86="lib"
+# We use Clang, let it figure out what is the best to use
+CFLAGS="-march=native"
diff --git a/profiles/prefix/darwin/macos/arch/x86/package.mask b/profiles/prefix/darwin/macos/arch/x86/package.mask
new file mode 100644
index 000000000000..216c87ab6373
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/package.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
diff --git a/profiles/prefix/darwin/macos/arch/x86/package.use.force b/profiles/prefix/darwin/macos/arch/x86/package.use.force
new file mode 100644
index 000000000000..84034d863e33
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (20 Dec 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_X86
+sys-devel/llvm llvm_targets_X86
diff --git a/profiles/prefix/darwin/macos/arch/x86/package.use.mask b/profiles/prefix/darwin/macos/arch/x86/package.use.mask
new file mode 100644
index 000000000000..0a0aaa598d36
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/package.use.mask
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All the Mac OS X profiles inherit from their matching arch profile here.
+
+
+# Alexandre Rostovtsev <tetromono@gentoo.org> (09 Jan 2012)
+# jsc JIT compilation is supported only on amd64/arm/x86 and their prefixes, so
+# it's masked in base profile and unmasked here (bug #396313).
+net-libs/webkit-gtk -jit
+
+# Jeremy Olexa <darkside@gentoo.org> (29 Jul 2010)
+# Relocation issues on 32-bit OSX, bug #329859
+media-sound/mpg123 cpu_flags_x86_mmx cpu_flags_x86_sse
+
+# Fabian Groffen <grobian@gentoo.org> (01 Feb 2009)
+# Doesn't compile, bug #257225
+media-video/ffmpeg cpu_flags_x86_mmx
diff --git a/profiles/prefix/darwin/macos/arch/x86/use.force b/profiles/prefix/darwin/macos/arch/x86/use.force
new file mode 100644
index 000000000000..e5de807ddf57
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the flag corresponding to the default ABI
+x86-macos
+abi_x86_32
diff --git a/profiles/prefix/darwin/macos/arch/x86/use.mask b/profiles/prefix/darwin/macos/arch/x86/use.mask
new file mode 100644
index 000000000000..64aad1244f84
--- /dev/null
+++ b/profiles/prefix/darwin/macos/arch/x86/use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag corresponding to the default ABI
+-x86-macos
+-abi_x86_32
diff --git a/profiles/prefix/darwin/macos/eapi b/profiles/prefix/darwin/macos/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/prefix/darwin/macos/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/prefix/darwin/macos/make.defaults b/profiles/prefix/darwin/macos/make.defaults
new file mode 100644
index 000000000000..3c693127c433
--- /dev/null
+++ b/profiles/prefix/darwin/macos/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# on OSX one should have objc available
+USE="objc objc++"
+
+# we have OSX, so let's use it's virtues
+USE="${USE} aqua coreaudio ipv6"
diff --git a/profiles/prefix/darwin/macos/package.mask b/profiles/prefix/darwin/macos/package.mask
new file mode 100644
index 000000000000..2adeb6a71837
--- /dev/null
+++ b/profiles/prefix/darwin/macos/package.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# Recent Oracle releases only support recent Mac OS releases. We can't
+# keep old versions due to vulnerabilities.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
diff --git a/profiles/prefix/darwin/macos/package.use.force b/profiles/prefix/darwin/macos/package.use.force
new file mode 100644
index 000000000000..24696d95b0f3
--- /dev/null
+++ b/profiles/prefix/darwin/macos/package.use.force
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Fabian Groffen <grobian@gentoo.org> (31 May 2015)
+# for clang ebuild to work, llvm must build the clang frontend
+sys-devel/llvm clang
+
+# Fabian Groffen <grobian@gentoo.org> (24 Mar 2012)
+# Non-threaded target doesn't exist for Mac OS X Intel
+media-gfx/tachyon threads opengl
+
+# Elias Pipping <pipping@gentoo.org> (29 Nov 2007)
+# won't compile without
+media-libs/libsdl opengl
diff --git a/profiles/prefix/darwin/macos/package.use.mask b/profiles/prefix/darwin/macos/package.use.mask
new file mode 100644
index 000000000000..cd0aa4ef5dba
--- /dev/null
+++ b/profiles/prefix/darwin/macos/package.use.mask
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# JavaFX is included on Mac OS. I think a browser plugin is too but as
+# libjvm rather than libnpjp2 like on Linux so keep nsplugin masked.
+dev-java/oracle-jdk-bin -javafx
+dev-java/oracle-jre-bin -javafx
+
+# Fabian Groffen <grobian@gentoo.org> (30 Oct 2009)
+# X and linux only
+media-video/mplayer xvmc xv dga X xinerama xscreensaver
+media-video/mplayer dvb lirc jack joystick
+
+# Fabian Groffen <grobian@gentoo.org> (06 Aug 2008)
+# runtime loading is horribly broken (it uses fixed .so.0, but when
+# that's fixed it still doesn't work)
+dev-vcs/subversion dso
+
+# Elias Pipping <pipping@gentoo.org> (27 Aug 2007)
+# elinks does not compile with USE=perl (tested with 0.11.{2,3})
+www-client/elinks perl
diff --git a/profiles/prefix/darwin/macos/packages b/profiles/prefix/darwin/macos/packages
new file mode 100644
index 000000000000..a16706c6fe74
--- /dev/null
+++ b/profiles/prefix/darwin/macos/packages
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mac OS X is built with LLVM/Clang
+-*sys-devel/gcc
+-*sys-devel/gcc-config
+*sys-devel/clang
diff --git a/profiles/prefix/darwin/macos/parent b/profiles/prefix/darwin/macos/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/prefix/darwin/macos/parent
@@ -0,0 +1 @@
+..