aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass-writing/text.xml')
-rw-r--r--eclass-writing/text.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml
index 9064616..db7d9f1 100644
--- a/eclass-writing/text.xml
+++ b/eclass-writing/text.xml
@@ -627,11 +627,11 @@ a single function, <c>domacosapp</c>.
# [new-file] is given, it will be used as the new (installed) name of
# the file. Otherwise &lt;app-file&gt; is installed as-is.
domacosapp() {
- [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; [new file]"
- if use ppc-macos ; then
- insinto /Applications
- newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
- fi
+ [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; [new file]"
+ if use ppc-macos ; then
+ insinto /Applications
+ newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
+ fi
}
</codesample>
@@ -667,7 +667,7 @@ eclass-defined defaults <d/> for example, say we had <c>fnord.eclass</c>:
EXPORT_FUNCTIONS src_compile
fnord_src_compile() {
- do_stuff || die
+ do_stuff || die
}
</codesample>
@@ -679,9 +679,9 @@ Then an ebuild could do this:
inherit fnord.eclass
src_compile() {
- do_pre_stuff || die
- fnord_src_compile
- do_post_stuff || die
+ do_pre_stuff || die
+ fnord_src_compile
+ do_post_stuff || die
}
</codesample>
@@ -722,7 +722,7 @@ DEPEND="&gt;=sys-devel/jmake-2"
# Passes all arguments through to the appropriate &quot;jmake configure&quot;
# command.
jmake-configure() {
- jmake configure --prefix=/usr "$@"
+ jmake configure --prefix=/usr "$@"
}
# @FUNCTION: jmake-build
@@ -731,15 +731,15 @@ jmake-configure() {
# First builds all dependencies, and then passes through its arguments
# to the appropriate &quot;jmake build&quot; command.
jmake-build() {
- jmake dep &amp;&amp; jmake build "$@"
+ jmake dep &amp;&amp; jmake build "$@"
}
# @FUNCTION: jmake-src_compile
# @DESCRIPTION:
# Calls jmake-configure() and jmake-build() to compile a jmake project.
jmake_src_compile() {
- jmake-configure || die "configure failed"
- jmake-build || die "build failed"
+ jmake-configure || die "configure failed"
+ jmake-build || die "build failed"
}
</codesample>
@@ -769,8 +769,8 @@ for an eclass to invoke die from the global scope. For example:
# @BLURB: Calls die when used with an invalid EAPI.
case ${EAPI:-0} in
- 0) die "this eclass doesn't support EAPI 0" ;;
- *) ;;
+ 0) die "this eclass doesn't support EAPI 0" ;;
+ *) ;;
esac
</codesample>
</body>