* Fix type in econf --host argument.
authorZac Medico <zmedico@gentoo.org>
Sat, 12 Dec 2009 08:50:35 +0000 (08:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 Dec 2009 08:50:35 +0000 (08:50 -0000)
* Add missing econf --build and --target arguments.
* Use tabs instead of spaces for indentation.

svn path=/main/trunk/; revision=15048

doc/package/ebuild/eapi/3.docbook
man/ebuild.5

index 7bab213bb28fa55b4bac7f9fa4ac27c0b9d98763..4665b095590aabe75b22bc2384e0250dd05a1940 100644 (file)
@@ -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>
index 4872d56d493f474d08cda735a7c72097ee69aead..b3521e2224a5ed8836a85cd7b8faae53fff5ceb0 100644 (file)
@@ -783,13 +783,15 @@ directory. The function will append \fIsource\fR to the \fBDISTDIR\fR variable.
 This is used as a replacement for configure.  Performs:
 .nf
 ${\fIECONF_SOURCE\fR:-.}/configure \\
+       ${CBUILD:+\-\-build=${CBUILD}} \\
+       \-\-datadir="${EPREFIX}"/usr/share \\
+       \-\-host=${CHOST} \\
+       \-\-infodir="${EPREFIX}"/usr/share/info \\
+       \-\-localstatedir="${EPREFIX}"/var/lib \\
        \-\-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 \\
+       ${CTARGET:+\-\-target=${CTARGET}} \\
        \fI${EXTRA_ECONF}\fR \\
        \fIconfigure options\fR || die "econf failed"
 .fi