Add icecream support
diff --git a/man/make.conf.5 b/man/make.conf.5
index 13b8042..1d1cfeb 100644
--- a/man/make.conf.5
+++ b/man/make.conf.5
@@ -411,6 +411,9 @@
Force emerges to always try to fetch files from the \fIPORTAGE_BINHOST\fR. See
\fBmake.conf\fR(5) for more information.
.TP
+.B icecream
+Enable portage support for the icecream package.
+.TP
.B installsources
Install source code into /usr/src/debug/${CATEGORY}/${PF} (also see
\fBsplitdebug\fR). This feature works only if debugedit is installed and CFLAGS
diff --git a/pym/portage/const.py b/pym/portage/const.py
index 722893e..6c4f613 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -148,6 +148,7 @@
"force-mirror",
"force-prefix",
"getbinpkg",
+ "icecream",
"installsources",
"ipc-sandbox",
"keeptemp",
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 5e4d7b1..431a013 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -465,7 +465,9 @@
ccache = "ccache" in mysettings.features
distcc = "distcc" in mysettings.features
- if ccache or distcc:
+ icecream = "icecream" in mysettings.features
+
+ if ccache or distcc or icecream:
# Use default ABI libdir in accordance with bug #355283.
libdir = None
default_abi = mysettings.get("DEFAULT_ABI")
@@ -478,6 +480,10 @@
mysettings["PATH"] = os.path.join(os.sep, eprefix_lstrip,
"usr", libdir, "distcc", "bin") + ":" + mysettings["PATH"]
+ if icecream:
+ mysettings["PATH"] = os.path.join(os.sep, eprefix_lstrip,
+ "usr", 'libexec', "icecc", "bin") + ":" + mysettings["PATH"]
+
if ccache:
mysettings["PATH"] = os.path.join(os.sep, eprefix_lstrip,
"usr", libdir, "ccache", "bin") + ":" + mysettings["PATH"]