gnome2.eclass: Allow to decide more easily if we can run eautoreconf OR only elibtool...
authorPacho Ramos <pacho@gentoo.org>
Sun, 15 Jan 2017 16:27:05 +0000 (17:27 +0100)
committerPacho Ramos <pacho@gentoo.org>
Sun, 15 Jan 2017 16:44:33 +0000 (17:44 +0100)
eclass/gnome2.eclass

index de7a636173fe2936fe64561f20473e3ec0eee162..d64b31b73c6bfb4db97f61b7c0ce97578ce9d9ca 100644 (file)
 # Exports portage base functions used by ebuilds written for packages using the
 # GNOME framework. For additional functions, see gnome2-utils.eclass.
 
-inherit eutils libtool gnome.org gnome2-utils xdg
+# @ECLASS-VARIABLE: GNOME2_EAUTORECONF
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Run eautoreconf instead of only elibtoolize
+GNOME2_EAUTORECONF=${GNOME2_EAUTORECONF:-""}
+
+if [[ ${GNOME2_EAUTORECONF} == 'yes' ]] ; then
+        AUTOTOOLS_AUTO_DEPEND=yes
+else
+        : ${AUTOTOOLS_AUTO_DEPEND:=no}
+fi
+
+inherit autotools eutils libtool gnome.org gnome2-utils xdg
 
 case "${EAPI:-0}" in
        4|5)
@@ -113,9 +125,13 @@ gnome2_src_prepare() {
        # Disable all deprecation warnings
        gnome2_disable_deprecation_warning
 
-       # Run libtoolize
+       # Run libtoolize or eautoreconf, bug #591584
        # https://bugzilla.gnome.org/show_bug.cgi?id=655517
-       elibtoolize ${ELTCONF}
+       if [[ ${GNOME2_EAUTORECONF} == 'yes' ]]; then
+               eautoreconf
+       else
+               elibtoolize ${ELTCONF}
+       fi
 }
 
 # @FUNCTION: gnome2_src_configure