From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1B0A1138247 for ; Tue, 21 Jan 2014 17:09:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80D97E0F3E; Tue, 21 Jan 2014 17:09:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F9CEE0F3E for ; Tue, 21 Jan 2014 17:09:03 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AD9F33E974 for ; Tue, 21 Jan 2014 17:09:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B9FBA18096 for ; Tue, 21 Jan 2014 17:09:00 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1390324020.de224473100c442774072427618a9718fa29df12.jlec@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/autotools/ X-VCS-Repository: proj/devmanual X-VCS-Files: general-concepts/autotools/text.xml X-VCS-Directories: general-concepts/autotools/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: de224473100c442774072427618a9718fa29df12 X-VCS-Branch: master Date: Tue, 21 Jan 2014 17:09:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b449fa03-6ead-493a-aa57-d4e6f13feb36 X-Archives-Hash: 634794a5c1e1acdced3073081113aa36 commit: de224473100c442774072427618a9718fa29df12 Author: Justin Lecher gentoo org> AuthorDate: Tue Jan 21 17:07:00 2014 +0000 Commit: Justin Lecher gentoo org> CommitDate: Tue Jan 21 17:07:00 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=de224473 Use eauto* functions instead of plain tools in example Bump to EAPI=5 and reference to autotools.eclass. Signed-off-by: Justin Lecher gentoo.org> --- general-concepts/autotools/text.xml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/general-concepts/autotools/text.xml b/general-concepts/autotools/text.xml index 6fb7bd8..7ae2024 100644 --- a/general-concepts/autotools/text.xml +++ b/general-concepts/autotools/text.xml @@ -97,6 +97,8 @@ The autoreconf tool supposedly runs autoconf (and automake, autoheader, aclocal, autopoint and libtoolize) as necessary. Sometimes it works. Some packages ship a shell script named autogen.sh which does the same thing (this is not related to autogen). +The autotools.eclass contains helper functions for the stand-alone tools with their +corresponding names e.g. eautoconf and eautomake.

@@ -122,22 +124,23 @@ either Makefile.am or configure.ac:

-src_unpack() { - unpack ${A} - cd "${S}" +EAPI="5" +inherit autotools + +src_prepare() { # Remove problematic LDFLAGS declaration - sed -i -e '/^LDFLAGS/d' src/Makefile.am + sed -i -e '/^LDFLAGS/d' src/Makefile.am || die # Rerun autotools einfo "Regenerating autotools files..." - WANT_AUTOCONF=2.5 autoconf || die "autoconf failed" - WANT_AUTOMAKE=1.9 automake || die "automake failed" + WANT_AUTOCONF=2.5 eautoconf + WANT_AUTOMAKE=1.9 eautomake } src_compile() { econf $(use_enable nls) - emake || die "emake failed" + emake }