mate.eclass: drop static-libs whenever possible

Whenever package doesn't have static-libs available and selected,
if configure script has static-libs selectable, explicitly disable

Bug: https://bugs.gentoo.org/695878
Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>
This commit is contained in:
Adam Feldman
2020-08-19 15:54:38 -04:00
parent 11b731d3a2
commit f59be307fb
+11 -1
View File
@@ -115,7 +115,17 @@ mate_src_prepare() {
# MATE specific configure handling
# Stub to gnome2_src_configure()
mate_src_configure() {
gnome2_src_configure "$@"
local mateconf=()
# Pass --disable-static whenever possible
if ! use_if_iuse static-libs; then
if grep -q "enable-static" "${ECONF_SOURCE:-.}"/configure; then
mateconf+=( --disable-static )
fi
fi
gnome2_src_configure "${mateconf[@]} $@"
}
# @FUNCTION: mate_src_install