diff --git a/dev-libs/OpenNI/OpenNI-1.5.7.10-r4.ebuild b/dev-libs/OpenNI/OpenNI-1.5.7.10-r4.ebuild index ddb7749056436..953a8814d8d89 100644 --- a/dev-libs/OpenNI/OpenNI-1.5.7.10-r4.ebuild +++ b/dev-libs/OpenNI/OpenNI-1.5.7.10-r4.ebuild @@ -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() { diff --git a/dev-libs/OpenNI/OpenNI-9999.ebuild b/dev-libs/OpenNI/OpenNI-9999.ebuild index be002df28a155..49cb5d355e76a 100644 --- a/dev-libs/OpenNI/OpenNI-9999.ebuild +++ b/dev-libs/OpenNI/OpenNI-9999.ebuild @@ -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() {