summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/package/ebuild/eapi/3.docbook')
-rw-r--r--doc/package/ebuild/eapi/3.docbook38
1 files changed, 20 insertions, 18 deletions
diff --git a/doc/package/ebuild/eapi/3.docbook b/doc/package/ebuild/eapi/3.docbook
index 7bab213b..4665b095 100644
--- a/doc/package/ebuild/eapi/3.docbook
+++ b/doc/package/ebuild/eapi/3.docbook
@@ -24,15 +24,17 @@ when appropriate. For example, see econf and einstall below.
<title>econf</title>
<programlisting>
${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"
+ ${CBUILD:+--build=${CBUILD}} \
+ --datadir="${EPREFIX}"/usr/share \
+ --host=${CHOST} \
+ --infodir="${EPREFIX}"/usr/share/info \
+ --localstatedir="${EPREFIX}"/var/lib \
+ --prefix="${EPREFIX}"/usr \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --sysconfdir="${EPREFIX}"/etc \
+ ${CTARGET:+--target=${CTARGET}} \
+ ${EXTRA_ECONF} \
+ configure options || die "econf failed"
</programlisting>
</section>
<section id='package-ebuild-eapi-3_pre2-prefix-helpers-einstall'>
@@ -43,15 +45,15 @@ DESTDIR=${D} rather than ${ED}) is still preferred over einstall.
</para>
<programlisting>
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
+ 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
</programlisting>
</section>
</section>