aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2017-12-21 19:12:40 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2018-01-03 00:17:11 -0500
commit8c24be3239906196b973ff14197650e7702e953c (patch)
treebbf3488a56dd83b525e37fc40547ba4090c71be9 /general-concepts
parentebuild-maintenance: remove the Gentoo-Bug tag in the package removal subsection (diff)
downloaddevmanual-8c24be3239906196b973ff14197650e7702e953c.tar.gz
devmanual-8c24be3239906196b973ff14197650e7702e953c.tar.bz2
devmanual-8c24be3239906196b973ff14197650e7702e953c.zip
Change the indentation for ebuild <codesample/> snippets from spaces to tabs
Diffstat (limited to 'general-concepts')
-rw-r--r--general-concepts/autotools/text.xml16
-rw-r--r--general-concepts/dependencies/text.xml44
-rw-r--r--general-concepts/portage-cache/text.xml28
-rw-r--r--general-concepts/use-flags/text.xml24
-rw-r--r--general-concepts/user-environment/text.xml6
5 files changed, 59 insertions, 59 deletions
diff --git a/general-concepts/autotools/text.xml b/general-concepts/autotools/text.xml
index 554943a..beb3ff6 100644
--- a/general-concepts/autotools/text.xml
+++ b/general-concepts/autotools/text.xml
@@ -129,18 +129,18 @@ EAPI=5
inherit autotools
src_prepare() {
- # Remove problematic LDFLAGS declaration
- sed -i -e '/^LDFLAGS/d' src/Makefile.am || die
+ # Remove problematic LDFLAGS declaration
+ sed -i -e '/^LDFLAGS/d' src/Makefile.am || die
- # Rerun autotools
- einfo "Regenerating autotools files..."
- WANT_AUTOCONF=2.5 eautoconf
- WANT_AUTOMAKE=1.9 eautomake
+ # Rerun autotools
+ einfo "Regenerating autotools files..."
+ WANT_AUTOCONF=2.5 eautoconf
+ WANT_AUTOMAKE=1.9 eautomake
}
src_compile() {
- econf $(use_enable nls)
- emake
+ econf $(use_enable nls)
+ emake
}
</codesample>
diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml
index 7c8caeb..e43390c 100644
--- a/general-concepts/dependencies/text.xml
+++ b/general-concepts/dependencies/text.xml
@@ -104,8 +104,8 @@ A basic <c>DEPEND</c> specification might look like the following:
<codesample lang="ebuild">
DEPEND="dev-lang/ruby
- dev-ruby/ruby-gtk2
- dev-ruby/mysql-ruby"
+ dev-ruby/ruby-gtk2
+ dev-ruby/mysql-ruby"
</codesample>
<p>
@@ -308,7 +308,7 @@ the package name, where 'SLOT' is the <c>SLOT</c> of the package wanted:
<codesample lang="ebuild">
DEPEND="qt3? ( x11-libs/qt:3 )
- gtk? ( x11-libs/gtk+:2 )
+ gtk? ( x11-libs/gtk+:2 )
</codesample>
<p>
@@ -317,7 +317,7 @@ To depend on a specific version or version-range within a SLOT we use:
<codesample lang="ebuild">
DEPEND="qt3? ( ~x11-libs/qt-3.3.8:3 )
- gtk? ( >=x11-libs/gtk+-2.24.9:2 )
+ gtk? ( >=x11-libs/gtk+-2.24.9:2 )
</codesample>
<subsection>
@@ -353,7 +353,7 @@ For example:
<codesample lang="ebuild">
RDEPEND="media-libs/cogl:1.0=
- gnutls? ( &gt;=net-libs/gnutls-2.8:= )"
+ gnutls? ( &gt;=net-libs/gnutls-2.8:= )"
</codesample>
</body>
@@ -372,8 +372,8 @@ To depend upon a certain package if and only if a given <c>USE</c> flag is set:
<codesample lang="ebuild">
DEPEND="perl? ( dev-lang/perl )
- ruby? ( &gt;=dev-lang/ruby-1.8 )
- python? ( dev-lang/python )"
+ ruby? ( &gt;=dev-lang/ruby-1.8 )
+ python? ( dev-lang/python )"
</codesample>
<p>
@@ -398,20 +398,20 @@ This can be nested:
<codesample lang="ebuild">
DEPEND="!build? (
- gcj? (
- gtk? (
- x11-libs/libXt
- x11-libs/libX11
- x11-libs/libXtst
- x11-proto/xproto
- x11-proto/xextproto
- >=x11-libs/gtk+-2.2
- x11-libs/pango
- )
- >=media-libs/libart_lgpl-2.1
- )
- >=sys-libs/ncurses-5.2-r2
- nls? ( sys-devel/gettext )
+ gcj? (
+ gtk? (
+ x11-libs/libXt
+ x11-libs/libX11
+ x11-libs/libXtst
+ x11-proto/xproto
+ x11-proto/xextproto
+ >=x11-libs/gtk+-2.2
+ x11-libs/pango
+ )
+ >=media-libs/libart_lgpl-2.1
+ )
+ >=sys-libs/ncurses-5.2-r2
+ nls? ( sys-devel/gettext )
)"
</codesample>
@@ -564,7 +564,7 @@ following, which should be used instead:
<codesample lang="ebuild">
DEPEND="use-flag? ( app-misc/foo )
- !use-flag? ( app-misc/bar )"
+ !use-flag? ( app-misc/bar )"
</codesample>
<p>
diff --git a/general-concepts/portage-cache/text.xml b/general-concepts/portage-cache/text.xml
index f185f62..f985d56 100644
--- a/general-concepts/portage-cache/text.xml
+++ b/general-concepts/portage-cache/text.xml
@@ -18,9 +18,9 @@ So, the following will not work:
<codesample lang="ebuild">
# DO NOT DO THIS!
if ! has_version "x11-libs/gtk+" ; then
- DEPEND="${DEPEND}
- gtk? ( >=x11-libs/gtk+-2 )
- !gtk? ( =x11-libs/gtk+-1.2* )"
+ DEPEND="${DEPEND}
+ gtk? ( >=x11-libs/gtk+-2 )
+ !gtk? ( =x11-libs/gtk+-1.2* )"
fi
</codesample>
@@ -33,17 +33,17 @@ However, this is legal, since <c>versionator.eclass</c> works upon <c>PV</c>, an
inherit versionator
if [[ $(get_major_version) -ge 7 ]] ; then
- IUSE="${IUSE} tcltk mzscheme"
- DEPEND="${DEPEND}
- tcltk? ( dev-lang/tcl )
- mzscheme? ( dev-lisp/mzscheme )"
- RDEPEND="${RDEPEND}
- tcltk? ( dev-lang/tcl )
- mzscheme? ( dev-lisp/mzscheme )"
+ IUSE="${IUSE} tcltk mzscheme"
+ DEPEND="${DEPEND}
+ tcltk? ( dev-lang/tcl )
+ mzscheme? ( dev-lisp/mzscheme )"
+ RDEPEND="${RDEPEND}
+ tcltk? ( dev-lang/tcl )
+ mzscheme? ( dev-lisp/mzscheme )"
- if [[ "${MY_PN}" != "vim-core" ]] ; then
- RDEPEND="${RDEPEND} !&lt;app-vim/align-30-r1"
- fi
+ if [[ "${MY_PN}" != "vim-core" ]] ; then
+ RDEPEND="${RDEPEND} !&lt;app-vim/align-30-r1"
+ fi
fi
</codesample>
</body>
@@ -65,7 +65,7 @@ do:
<codesample lang="ebuild">
if [[ "${PN##*-}" == "cvs" ]] ; then
- inherit cvs
+ inherit cvs
fi
</codesample>
diff --git a/general-concepts/use-flags/text.xml b/general-concepts/use-flags/text.xml
index 4728d0f..88da628 100644
--- a/general-concepts/use-flags/text.xml
+++ b/general-concepts/use-flags/text.xml
@@ -192,21 +192,21 @@ RDEPEND="fakemedia? ( >=media-libs/fakemedia-1-1 )"
<codesample lang="ebuild">
src_compile() {
- local myconf
+ local myconf
- if use ssl &amp;&amp; use gnutls ; then
- myconf="${myconf} --enable-ssl --with-ssl=gnutls"
- elif use ssl &amp;&amp; ! use gnutls ; then
- myconf="${myconf} --enable-ssl --with-ssl=openssl"
- else
- myconf="${myconf} --disable-ssl"
- fi
+ if use ssl &amp;&amp; use gnutls ; then
+ myconf="${myconf} --enable-ssl --with-ssl=gnutls"
+ elif use ssl &amp;&amp; ! use gnutls ; then
+ myconf="${myconf} --enable-ssl --with-ssl=openssl"
+ else
+ myconf="${myconf} --disable-ssl"
+ fi
- econf \
- # Other stuff
- ${myconf}
+ econf \
+ # Other stuff
+ ${myconf}
- emake || die "make failed"
+ emake || die "make failed"
}
</codesample>
diff --git a/general-concepts/user-environment/text.xml b/general-concepts/user-environment/text.xml
index b7a0926..d28b844 100644
--- a/general-concepts/user-environment/text.xml
+++ b/general-concepts/user-environment/text.xml
@@ -30,10 +30,10 @@ The simplest way to unset all locale-related variables is:
<codesample lang="ebuild">
pkg_setup() {
- # Unset all locale related variables, they can make the
- # build fail.
+ # Unset all locale related variables, they can make the
+ # build fail.
- eval unset ${!LC_*} LANG
+ eval unset ${!LC_*} LANG
}
</codesample>
</body>