From c8c10f8c9ca2624481ef43775c9fa94ec6864241 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 10 Aug 2008 04:56:54 +0000 Subject: Document the differences between EAPIs 0 and 1. svn path=/main/trunk/; revision=11384 --- doc/package/ebuild/eapi/0.docbook | 16 ++++++++++++ doc/package/ebuild/eapi/1.docbook | 51 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) (limited to 'doc/package/ebuild') diff --git a/doc/package/ebuild/eapi/0.docbook b/doc/package/ebuild/eapi/0.docbook index bba6db93c..72e998b9c 100644 --- a/doc/package/ebuild/eapi/0.docbook +++ b/doc/package/ebuild/eapi/0.docbook @@ -1,3 +1,19 @@ EAPI 0 + + Phases + + Default src_compile Phase Function + +src_compile() { + if [ -x ./configure ] ; then + econf + fi + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then + emake || die "emake failed" + fi +} + + + diff --git a/doc/package/ebuild/eapi/1.docbook b/doc/package/ebuild/eapi/1.docbook index 0cc3df75c..ad84ae6f9 100644 --- a/doc/package/ebuild/eapi/1.docbook +++ b/doc/package/ebuild/eapi/1.docbook @@ -1,3 +1,54 @@ EAPI 1 + + Phases + + Default src_compile Phase Function + + Support for the ECONF_SOURCE variable, which is also supported + by econf, has been added to the default src_compile implementation. + + +src_compile() { + if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then + econf + fi + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then + emake || die "emake failed" + fi +} + + + + + SLOT Dependencies + + Any valid atom can be constrained to match a specific SLOT. This is + accomplished by appending a colon to the atom, followed by a SLOT value. + + Slot Dependency Examples + + + + + Atom + + + + + x11-libs/qt:3 + + + ~x11-libs/qt-3.3.8:3 + + + >=x11-libs/qt-3.3.8:3 + + + =x11-libs/qt-3.3*:3 + + + +
+
-- cgit v1.2.3-1-g7c22