commit:     811fff30b782a18f80c85e8d1edf10fcec392445
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 22 16:57:53 2020 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Nov 22 17:00:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=811fff30

app-office/libreoffice: Add useflag custom-cflags

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 app-office/libreoffice/libreoffice-7.0.3.1.ebuild  |  9 ++++++++-
 app-office/libreoffice/libreoffice-7.0.9999.ebuild |  9 ++++++++-
 app-office/libreoffice/libreoffice-9999.ebuild     | 11 +++++++++--
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/app-office/libreoffice/libreoffice-7.0.3.1.ebuild 
b/app-office/libreoffice/libreoffice-7.0.3.1.ebuild
index 0ead7020099..a83494ecc5e 100644
--- a/app-office/libreoffice/libreoffice-7.0.3.1.ebuild
+++ b/app-office/libreoffice/libreoffice-7.0.3.1.ebuild
@@ -405,7 +405,6 @@ src_configure() {
                NM=llvm-nm
                RANLIB=llvm-ranlib
                LDFLAGS+=" -fuse-ld=lld"
-               strip-unsupported-flags
        else
                # Force gcc
                einfo "Enforcing the use of gcc due to USE=-clang ..."
@@ -414,8 +413,16 @@ src_configure() {
                CXX=${CHOST}-g++
                NM=gcc-nm
                RANLIB=gcc-ranlib
+       fi
+
+       if use custom-cflags ; then
+               elog "USE=custom-cflags has been selected. You are on your own 
to make sure that"
+               elog "the build succeeds. Good luck!"
                strip-unsupported-flags
+       else
+               strip-flags
        fi
+
        export CLANG_CC=${CC}
        export CLANG_CXX=${CXX}
 

diff --git a/app-office/libreoffice/libreoffice-7.0.9999.ebuild 
b/app-office/libreoffice/libreoffice-7.0.9999.ebuild
index c04d5929a50..1423e832b11 100644
--- a/app-office/libreoffice/libreoffice-7.0.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-7.0.9999.ebuild
@@ -401,7 +401,6 @@ src_configure() {
                NM=llvm-nm
                RANLIB=llvm-ranlib
                LDFLAGS+=" -fuse-ld=lld"
-               strip-unsupported-flags
        else
                # Force gcc
                einfo "Enforcing the use of gcc due to USE=-clang ..."
@@ -410,8 +409,16 @@ src_configure() {
                CXX=${CHOST}-g++
                NM=gcc-nm
                RANLIB=gcc-ranlib
+       fi
+
+       if use custom-cflags ; then
+               elog "USE=custom-cflags has been selected. You are on your own 
to make sure that"
+               elog "the build succeeds. Good luck!"
                strip-unsupported-flags
+       else
+               strip-flags
        fi
+
        export CLANG_CC=${CC}
        export CLANG_CXX=${CXX}
 

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild 
b/app-office/libreoffice/libreoffice-9999.ebuild
index 816e95d62a1..cc2390bea4c 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -82,7 +82,7 @@ unset ADDONS_SRC
 # Extensions that need extra work:
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
-IUSE="accessibility base bluetooth +branding clang coinmp +cups +dbus debug 
eds firebird
+IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags 
+dbus debug eds firebird
 googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
@@ -401,7 +401,6 @@ src_configure() {
                NM=llvm-nm
                RANLIB=llvm-ranlib
                LDFLAGS+=" -fuse-ld=lld"
-               strip-unsupported-flags
        else
                # Force gcc
                einfo "Enforcing the use of gcc due to USE=-clang ..."
@@ -410,8 +409,16 @@ src_configure() {
                CXX=${CHOST}-g++
                NM=gcc-nm
                RANLIB=gcc-ranlib
+       fi
+
+       if use custom-cflags ; then
+               elog "USE=custom-cflags has been selected. You are on your own 
to make sure that"
+               elog "the build succeeds. Good luck!"
                strip-unsupported-flags
+       else
+               strip-flags
        fi
+
        export LO_CLANG_CC=${CC}
        export LO_CLANG_CXX=${CXX}
 

Reply via email to