From f1e3c28422851b8ec3a95c0b0c2c2413d8a4c6e4 Mon Sep 17 00:00:00 2001
From: georg <georg@riseup.net>
Date: Sun, 24 Feb 2019 21:43:20 +0000
Subject: [PATCH] Install ccache on gentoo to speed up the build

---
 gentoo | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gentoo b/gentoo
index 5d62edc..0e06d46 100644
--- a/gentoo
+++ b/gentoo
@@ -6,14 +6,16 @@ COPY --from=portage /usr/portage /usr/portage
 ENV ACCEPT_KEYWORDS="~amd64" \
     EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=8 --with-bdeps=y" \
     FEATURES="-sandbox -usersandbox" \
-    MAKEOPTS="-j9 -l8" \
+    MAKEOPTS="-ccache -j9 -l8" \
     USE="cairo introspection jpeg tiff"
 
 RUN eselect locale set en_US.utf8 \
 &&  . /etc/profile \
+&&  mkdir -p /gentoo/ccache \
 &&  emerge app-text/poppler \
     dev-python/pycairo \
     dev-python/pygobject \
+    dev-util/ccache \
     media-libs/exiftool \
     media-libs/mutagen \
     sys-apps/bubblewrap \
-- 
GitLab