aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2017-05-16 23:40:57 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-05-20 06:55:19 +0700
commitaf8fb2f32679d6a1ba3df013faf96c58509ad0b6 (patch)
treee952ba777fd26187740256921b0ecd772a50f5c6
parent9396aba6b0650dc50afe10e31192218dab681f20 (diff)
office/LibreOffice: Added USE_CCACHE option (default off)
Signed-off-by: Christoph Willing <chris.willing@linux.com>
-rw-r--r--office/LibreOffice/LibreOffice.SlackBuild4
-rw-r--r--office/LibreOffice/README7
2 files changed, 9 insertions, 2 deletions
diff --git a/office/LibreOffice/LibreOffice.SlackBuild b/office/LibreOffice/LibreOffice.SlackBuild
index 047ba69a35fd..7bdcd23dad7b 100644
--- a/office/LibreOffice/LibreOffice.SlackBuild
+++ b/office/LibreOffice/LibreOffice.SlackBuild
@@ -28,7 +28,7 @@ PRGNAM=LibreOffice
SRCNAM=libreoffice
VERSION=${VERSION:-5.3.3.2}
SHORT_VERSION=${VERSION%.*.*}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PACKAGER=${PACKAGER:-"AnonymousCoward"}
@@ -87,6 +87,7 @@ avahi="" ; [ "${AVAHI:-no}" != "no" ] && avahi="--enable-avahi"
vlc="" ; [ "${VLC:-no}" != "no" ] && vlc="--enable-vlc"
kde4="--enable-kde4" ; [ "${KDE4:-yes}" != "yes" ] && kde4="--disable-kde4"
LOLANGS=${LOLANGS:-"de es fr id it ja nl vi zh-CN"}
+use_ccache="--disable-ccache" ; [ "${USE_CCACHE:-no}" != "no" ] && use_ccache=""
# By default, LibreOffice ignores MAKEFLAGS -j option and uses all available cpu cores.
parallel=""
@@ -130,6 +131,7 @@ fi
$avahi \
$vlc \
$kde4 \
+ $use_ccache \
$use_java \
$parallel \
--with-x \
diff --git a/office/LibreOffice/README b/office/LibreOffice/README
index 0e1df33c6782..344e25882ff0 100644
--- a/office/LibreOffice/README
+++ b/office/LibreOffice/README
@@ -51,9 +51,14 @@ Build time environment variables that may set to vary features are as follows:
which would limit building to a single make process, overriding any value set
with the -j option in MAKEFLAGS.
+7. Use of ccache during building is turned off by default to save disk space (and
+ possible build failure due to lack of disk space). It may be reinstated by
+ setting the USE_CCACHE environment to "yes" e.g.
+ USE_CCACHE=yes sh LibreOffice.SlackBuild
+
For performance reasons, this Slackbuild sets GTK2 to be used at runtime.
Alternatives (gen, gtk3, kde4) may still be used by setting SAL_USE_VCLPLUGIN
-in the user environment.
+in the user's runtime environment.
Spell checking of documents at runtime requires installation of a suitable
wordlist for the language concerned. This can be achieved in either of two