dev-libs/OpenNI: introduce eapi9-pipestatus

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/39848
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-01-20 12:44:53 +01:00
committed by Florian Schmaus
parent 59be1c4cba
commit 9f156f818d
2 changed files with 7 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
EGIT_REPO_URI="https://github.com/OpenNI/OpenNI"
fi
inherit ${SCM} flag-o-matic toolchain-funcs java-pkg-opt-2
inherit ${SCM} eapi9-pipestatus flag-o-matic java-pkg-opt-2 toolchain-funcs
if [ "${PV#9999}" != "${PV}" ] ; then
SRC_URI=""
@@ -61,8 +61,10 @@ src_prepare() {
echo "" > ${i}
done
local status
find . -type f -print0 |
xargs -0 sed -i "s:\".*/SamplesConfig.xml:\"${EPREFIX}/usr/share/${PN}/SamplesConfig.xml:" || die
xargs -0 sed -i "s:\".*/SamplesConfig.xml:\"${EPREFIX}/usr/share/${PN}/SamplesConfig.xml:"
status=$(pipestatus -v) || die "fails to sed SamplesConfig, (PIPESTATUS: ${status})"
}
src_compile() {

View File

@@ -9,7 +9,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
EGIT_REPO_URI="https://github.com/OpenNI/OpenNI"
fi
inherit ${SCM} flag-o-matic toolchain-funcs java-pkg-opt-2
inherit ${SCM} eapi9-pipestatus flag-o-matic java-pkg-opt-2 toolchain-funcs
if [ "${PV#9999}" != "${PV}" ] ; then
SRC_URI=""
@@ -61,7 +61,8 @@ src_prepare() {
done
find . -type f -print0 |
xargs -0 sed -i "s:\".*/SamplesConfig.xml:\"${EPREFIX}/usr/share/${PN}/SamplesConfig.xml:" || die
xargs -0 sed -i "s:\".*/SamplesConfig.xml:\"${EPREFIX}/usr/share/${PN}/SamplesConfig.xml:"
status=$(pipestatus -v) || die "fails to sed SamplesConfig, (PIPESTATUS: ${status})"
}
src_compile() {