summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-10 04:56:54 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-10 04:56:54 +0000
commitc8c10f8c9ca2624481ef43775c9fa94ec6864241 (patch)
treee5832951cb6a3c8784397c34891bd1ad7ff8dacb /doc
parentAdd new sections for EAPI 0 and 1 (currently empty). (diff)
downloadportage-multirepo-c8c10f8c9ca2624481ef43775c9fa94ec6864241.tar.gz
portage-multirepo-c8c10f8c9ca2624481ef43775c9fa94ec6864241.tar.bz2
portage-multirepo-c8c10f8c9ca2624481ef43775c9fa94ec6864241.zip
Document the differences between EAPIs 0 and 1.
svn path=/main/trunk/; revision=11384
Diffstat (limited to 'doc')
-rw-r--r--doc/package/ebuild/eapi/0.docbook16
-rw-r--r--doc/package/ebuild/eapi/1.docbook51
2 files changed, 67 insertions, 0 deletions
diff --git a/doc/package/ebuild/eapi/0.docbook b/doc/package/ebuild/eapi/0.docbook
index bba6db93..72e998b9 100644
--- a/doc/package/ebuild/eapi/0.docbook
+++ b/doc/package/ebuild/eapi/0.docbook
@@ -1,3 +1,19 @@
<sect1 id='package-ebuild-eapi-0'>
<title>EAPI 0</title>
+ <sect2 id='package-ebuild-eapi-0-phases'>
+ <title>Phases</title>
+ <sect3 id='package-ebuild-eapi-0-phases-default-src-compile'>
+ <title>Default src_compile Phase Function</title>
+ <programlisting>
+src_compile() {
+ if [ -x ./configure ] ; then
+ econf
+ fi
+ if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then
+ emake || die "emake failed"
+ fi
+}
+ </programlisting>
+ </sect3>
+ </sect2>
</sect1>
diff --git a/doc/package/ebuild/eapi/1.docbook b/doc/package/ebuild/eapi/1.docbook
index 0cc3df75..ad84ae6f 100644
--- a/doc/package/ebuild/eapi/1.docbook
+++ b/doc/package/ebuild/eapi/1.docbook
@@ -1,3 +1,54 @@
<sect1 id='package-ebuild-eapi-1'>
<title>EAPI 1</title>
+ <sect2 id='package-ebuild-eapi-1-phases'>
+ <title>Phases</title>
+ <sect3 id='package-ebuild-eapi-1-phases-default-src-compile'>
+ <title>Default src_compile Phase Function</title>
+ <para>
+ Support for the ECONF_SOURCE variable, which is also supported
+ by econf, has been added to the default src_compile implementation.
+ </para>
+ <programlisting>
+src_compile() {
+ if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
+ econf
+ fi
+ if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then
+ emake || die "emake failed"
+ fi
+}
+ </programlisting>
+ </sect3>
+ </sect2>
+ <sect2 id='package-ebuild-eapi-1-slot-deps'>
+ <title>SLOT Dependencies</title>
+ <para>
+ 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.
+ </para>
+ <table><title>Slot Dependency Examples</title>
+ <tgroup cols='1' align='left' >
+ <colspec colname='atom'/>
+ <thead>
+ <row>
+ <entry>Atom</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>x11-libs/qt:3</entry>
+ </row>
+ <row>
+ <entry>~x11-libs/qt-3.3.8:3</entry>
+ </row>
+ <row>
+ <entry>&gt;=x11-libs/qt-3.3.8:3</entry>
+ </row>
+ <row>
+ <entry>=x11-libs/qt-3.3*:3</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </sect2>
</sect1>