commit: e62775916f1ef4bb75b3683dd4af90f2044ada8a
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 19 22:40:04 2016 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Nov 19 22:41:00 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6277591
app-office/libreoffice: do not call is-flagq in global scope, bug 593424
Package-Manager: portage-2.3.2
app-office/libreoffice/libreoffice-5.2.9999.ebuild | 25 ++++++++++++++--------
app-office/libreoffice/libreoffice-9999.ebuild | 25 ++++++++++++++--------
2 files changed, 32 insertions(+), 18 deletions(-)
diff --git a/app-office/libreoffice/libreoffice-5.2.9999.ebuild
b/app-office/libreoffice/libreoffice-5.2.9999.ebuild
index 663d010..f71cc06 100644
--- a/app-office/libreoffice/libreoffice-5.2.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-5.2.9999.ebuild
@@ -247,19 +247,18 @@ PATCHES=(
"${FILESDIR}/${PN}-5.2-system-pyuno.patch"
)
-CHECKREQS_MEMORY="512M"
-
-if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
- CHECKREQS_DISK_BUILD="22G"
-elif [[ ${MERGE_TYPE} != binary ]] ; then
- CHECKREQS_DISK_BUILD="6G"
-fi
-
pkg_pretend() {
use java || \
ewarn "If you plan to use lbase application you should enable
java or you will get various crashes."
if [[ ${MERGE_TYPE} != binary ]]; then
+
+ CHECKREQS_MEMORY="512M"
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ CHECKREQS_DISK_BUILD="22G"
+ else
+ CHECKREQS_DISK_BUILD="6G"
+ fi
check-reqs_pkg_pretend
if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
@@ -287,7 +286,15 @@ pkg_setup() {
python-single-r1_pkg_setup
xdg_environment_reset
- [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ CHECKREQS_MEMORY="512M"
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ CHECKREQS_DISK_BUILD="22G"
+ else
+ CHECKREQS_DISK_BUILD="6G"
+ fi
+ check-reqs_pkg_setup
+ fi
}
src_unpack() {
diff --git a/app-office/libreoffice/libreoffice-9999.ebuild
b/app-office/libreoffice/libreoffice-9999.ebuild
index ebc28aa..d43f7ea 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -246,19 +246,18 @@ PATCHES=(
"${FILESDIR}/${PN}-5.3-system-pyuno.patch"
)
-CHECKREQS_MEMORY="512M"
-
-if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
- CHECKREQS_DISK_BUILD="22G"
-elif [[ ${MERGE_TYPE} != binary ]] ; then
- CHECKREQS_DISK_BUILD="6G"
-fi
-
pkg_pretend() {
use java || \
ewarn "If you plan to use lbase application you should enable
java or you will get various crashes."
if [[ ${MERGE_TYPE} != binary ]]; then
+
+ CHECKREQS_MEMORY="512M"
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ CHECKREQS_DISK_BUILD="22G"
+ else
+ CHECKREQS_DISK_BUILD="6G"
+ fi
check-reqs_pkg_pretend
if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
@@ -286,7 +285,15 @@ pkg_setup() {
python-single-r1_pkg_setup
xdg_environment_reset
- [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ CHECKREQS_MEMORY="512M"
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then
+ CHECKREQS_DISK_BUILD="22G"
+ else
+ CHECKREQS_DISK_BUILD="6G"
+ fi
+ check-reqs_pkg_setup
+ fi
}
src_unpack() {