diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-08-27 15:25:26 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-08-29 12:55:00 -0400 |
commit | 4f872e7afdb0940351b194e7b2ad6264ce2fa86b (patch) | |
tree | e665b594020f50841139a9cd859f193c07a44d80 /eclass/meson.eclass | |
parent | profiles/package.deprecated: removed dev-java/commons-lang (diff) | |
download | gentoo-4f872e7afdb0940351b194e7b2ad6264ce2fa86b.tar.gz gentoo-4f872e7afdb0940351b194e7b2ad6264ce2fa86b.tar.bz2 gentoo-4f872e7afdb0940351b194e7b2ad6264ce2fa86b.zip |
meson.eclass: introduce meson_install helper function
This will be called from meson.eclass and meson-multilib.eclass.
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r-- | eclass/meson.eclass | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass index 8b22797da718..a3cf8740b26b 100644 --- a/eclass/meson.eclass +++ b/eclass/meson.eclass @@ -404,11 +404,11 @@ meson_src_test() { "$@" || die "tests failed" } -# @FUNCTION: meson_src_install +# @FUNCTION: meson_install # @USAGE: [extra meson install arguments] # @DESCRIPTION: -# This is the meson_src_install function. -meson_src_install() { +# Calls meson install with suitable arguments +meson_install() { debug-print-function ${FUNCNAME} "$@" local mesoninstallargs=( @@ -420,10 +420,17 @@ meson_src_install() { set -- meson install "${mesoninstallargs[@]}" echo "$@" >&2 "$@" || die "install failed" +} + +# @FUNCTION: meson_src_install +# @USAGE: [extra meson install arguments] +# @DESCRIPTION: +# This is the meson_src_install function. +meson_src_install() { + debug-print-function ${FUNCNAME} "$@" - pushd "${S}" > /dev/null || die + meson_install "$@" einstalldocs - popd > /dev/null || die } fi |