aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-06-30 11:24:14 +0200
committerUlrich Müller <ulm@gentoo.org>2023-08-26 07:29:02 +0200
commit84304f7b8fa1706c6aa046cb84be4fa33c46d9f8 (patch)
tree5a3ceab29b07a791cac666fe560e847160101bd5
parentgeneral-concepts/use-flags: Clarification about compiler flags (diff)
downloaddevmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.tar.gz
devmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.tar.bz2
devmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.zip
eclass-writing: Use underscores for function names in the example
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--eclass-writing/text.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml
index ef58547..2b3033e 100644
--- a/eclass-writing/text.xml
+++ b/eclass-writing/text.xml
@@ -795,34 +795,35 @@ BDEPEND="&gt;=sys-devel/jmake-2"
# @DESCRIPTION:
# Passes all arguments through to the appropriate "jmake configure"
# command.
-jmake-configure() {
+jmake_configure() {
jmake configure --prefix=/usr "$@"
}
# @FUNCTION: jmake_src_configure
# @USAGE: [additional-args]
# @DESCRIPTION:
-# Calls jmake-configure() to configure a jmake project. Passes all
+# Calls jmake_configure() to configure a jmake project. Passes all
# arguments through to the appropriate "jmake configure" command.
jmake_src_configure() {
- jmake-configure "$@" || die "configure failed"
+ jmake_configure "$@" || die "configure failed"
}
-# @FUNCTION: jmake-build
+# @FUNCTION: jmake_build
# @USAGE: [additional-args]
# @DESCRIPTION:
# First builds all dependencies, and then passes through its arguments
# to the appropriate "jmake build" command.
-jmake-build() {
+jmake_build() {
jmake dep &amp;&amp; jmake build "$@"
}
# @FUNCTION: jmake_src_compile
# @DESCRIPTION:
-# Calls jmake-build() to compile a jmake project.
+# Calls jmake_build() to compile a jmake project.
jmake_src_compile() {
- jmake-build || die "build failed"
+ jmake_build || die "build failed"
}
+
fi
EXPORT_FUNCTIONS src_configure src_compile