From e508676583bcc5c32ebdcd76317dc610d3051376 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 12 Dec 2009 01:10:41 +0000 Subject: [PATCH] Update for EAPI 3_pre2. svn path=/main/trunk/; revision=15043 --- doc/package/ebuild/eapi/3.docbook | 99 +++++++++++++++++++++++++++++-- 1 file changed, 93 insertions(+), 6 deletions(-) diff --git a/doc/package/ebuild/eapi/3.docbook b/doc/package/ebuild/eapi/3.docbook index 7be24f29c..7bab213bb 100644 --- a/doc/package/ebuild/eapi/3.docbook +++ b/doc/package/ebuild/eapi/3.docbook @@ -1,15 +1,102 @@ -
-EAPI 3_pre1 -
+
+EAPI 3_pre2 +
Helpers -
+
unpack -
+
Support for the xz file extension -The xz file extension is now supported. +The unpack helper now supports the xz file extension.
+
+Support for installation prefix +
+Helpers + +Beginning with EAPI 3, all helpers use ${ED} instead of ${D} +when appropriate. For example, see econf and einstall below. + +
+econf + +${ECONF_SOURCE:-.}/configure \ + --prefix="${EPREFIX}"/usr \ + --host="${EPREFIX}${CHOST} \ + --mandir="${EPREFIX}"/usr/share/man \ + --infodir="${EPREFIX}"/usr/share/info \ + --datadir="${EPREFIX}"/usr/share \ + --sysconfdir="${EPREFIX}"/etc \ + --localstatedir="${EPREFIX}"/var/lib \ + ${EXTRA_ECONF} \ + configure options || die "econf failed" + +
+
+einstall + +Note that, for make-based packages, 'emake install DESTDIR=${D}' (with +DESTDIR=${D} rather than ${ED}) is still preferred over einstall. + + +make \ + prefix=${ED}/usr \ + datadir=${ED}/usr/share \ + infodir=${ED}/usr/share/info \ + localstatedir=${ED}/var/lib \ + mandir=${ED}/usr/share/man \ + sysconfdir=${ED}/etc \ + ${EXTRA_EINSTALL} \ + make options \ + install + +
+
+
+Variables +Installation Prefix Variables + + + + + + Variable Name + Description + + + + + ED + Contains the path + "${D%/}${EPREFIX}/" for convenience purposes. + For EAPI values prior to EAPI 3 which do not + support ${ED}, helpers use ${D} where they would + otherwise use ${ED}. Do not modify this variable. + + + + EPREFIX + Contains the offset + that this Portage was configured for during + installation. The offset is sometimes necessary + in an ebuild or eclass, and is available in such + cases as ${EPREFIX}. EPREFIX does not contain a + trailing slash, therefore an absent offset is + represented by the empty string. Do not modify + this variable. + + + EROOT + Contains + "${ROOT%/}${EPREFIX}/" for convenience purposes. + Do not modify this variable. + + + +
+
+
-- 2.26.2