From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RXU4d-0003e1-5L for garchives@archives.gentoo.org; Mon, 05 Dec 2011 08:38:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5016E21C030; Mon, 5 Dec 2011 08:38:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 20E4421C030 for ; Mon, 5 Dec 2011 08:38:28 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 99F121B4024 for ; Mon, 5 Dec 2011 08:38:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D69C18004F for ; Mon, 5 Dec 2011 08:38:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <7287d370d6e50b791f5a75a7f1cbfc3d69bae114.mgorny@gentoo> Subject: [gentoo-commits] dev/mgorny:master commit in: eclass/ X-VCS-Repository: dev/mgorny X-VCS-Files: eclass/autotools-utils.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7287d370d6e50b791f5a75a7f1cbfc3d69bae114 Date: Mon, 5 Dec 2011 08:38:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: df19b3c3-0983-49fd-8692-755d6714f6fe X-Archives-Hash: 40b4e56843e99a15042473708b713c92 commit: 7287d370d6e50b791f5a75a7f1cbfc3d69bae114 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Nov 30 09:19:31 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Nov 30 23:02:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/mgorny.git;a=3D= commit;h=3D7287d370 autotools-utils: support AUTOTOOLS_AUTORECONF. --- eclass/autotools-utils.eclass | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclas= s index 2ad6e38..9b1b81e 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.eclass @@ -93,11 +93,20 @@ case ${EAPI:-0} in *) die "EAPI=3D${EAPI} is not supported" ;; esac =20 -AUTOTOOLS_AUTO_DEPEND=3Dno \ +# @ECLASS-VARIABLE: AUTOTOOLS_AUTORECONF +# @DEFAULT-UNSET +# @DESCRIPTION: +# Set to enable running autoreconf in src_prepare() and adding autotools +# dependencies. +[[ ${AUTOTOOLS_AUTORECONF} ]] || _autotools_auto_dep=3Dno + +AUTOTOOLS_AUTO_DEPEND=3D${_autotools_auto_dep} \ inherit autotools eutils libtool =20 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_t= est =20 +unset _autotools_auto_dep + # @ECLASS-VARIABLE: AUTOTOOLS_BUILD_DIR # @DEFAULT_UNSET # @DESCRIPTION: @@ -262,7 +271,14 @@ autotools-utils_src_prepare() { [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" epatch_user =20 - elibtoolize --patch-only + local want_autoreconf=3D${AUTOTOOLS_AUTORECONF} + + base_src_prepare + if [[ ${want_autoreconf} ]]; then + eautoreconf + else + elibtoolize --patch-only + fi } =20 # @FUNCTION: autotools-utils_src_configure