From 55ca969427eb13eca39addc636aa64cede317067 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 10 Aug 2008 05:17:43 +0000 Subject: [PATCH] Add sample code for the new src_configure and src_compile phase functions. svn path=/main/trunk/; revision=11385 --- doc/package/ebuild/eapi/2.docbook | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/package/ebuild/eapi/2.docbook b/doc/package/ebuild/eapi/2.docbook index 1bd1c986c..8e152f21d 100644 --- a/doc/package/ebuild/eapi/2.docbook +++ b/doc/package/ebuild/eapi/2.docbook @@ -109,6 +109,19 @@ src_configure function is called in between the src_unpack and src_compile functions. + +src_configure() { + if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then + econf + fi +} + +src_compile() { + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then + emake || die "emake failed" + fi +} + Execution Order of Phase Functions -- 2.26.2