media-libs/osl: remove test files for install #935147

We need the files for src_test so we remove them during src_install.

Close: https://bugs.gentoo.org/935147
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2025-01-09 23:04:02 +00:00
committed by Sam James
parent c6bd548361
commit 515ec0fefd
4 changed files with 28 additions and 0 deletions
+7
View File
@@ -391,6 +391,13 @@ src_test() {
src_install() {
cmake_src_install
if use test; then
rm \
"${ED}/usr/bin/test"{render,shade{,_dso}} \
"${ED}/usr/$(get_libdir)/libtestshade.so"* \
|| die
fi
if use amd64; then
find "${ED}/usr/$(get_libdir)" -type f -name 'lib_*_oslexec.so' -print0 \
| while IFS= read -r -d $'\0' batched_lib; do
+7
View File
@@ -320,6 +320,13 @@ src_install() {
rm -rf "${ED}/usr/build-scripts" || die
fi
if use test; then
rm \
"${ED}/usr/bin/test"{render,shade{,_dso}} \
"${ED}/usr/$(get_libdir)/libtestshade.so"* \
|| die
fi
if use amd64; then
find "${ED}/usr/$(get_libdir)" -type f -name 'lib_*_oslexec.so' -print0 \
| while IFS= read -r -d $'\0' batched_lib; do
+7
View File
@@ -319,6 +319,13 @@ src_install() {
rm -rf "${ED}/usr/build-scripts" || die
fi
if use test; then
rm \
"${ED}/usr/bin/test"{render,shade{,_dso}} \
"${ED}/usr/$(get_libdir)/libtestshade.so"* \
|| die
fi
if use amd64; then
find "${ED}/usr/$(get_libdir)" -type f -name 'lib_*_oslexec.so' -print0 \
| while IFS= read -r -d $'\0' batched_lib; do
+7
View File
@@ -319,6 +319,13 @@ src_install() {
rm -rf "${ED}/usr/build-scripts" || die
fi
if use test; then
rm \
"${ED}/usr/bin/test"{render,shade{,_dso}} \
"${ED}/usr/$(get_libdir)/libtestshade.so"* \
|| die
fi
if use amd64; then
find "${ED}/usr/$(get_libdir)" -type f -name 'lib_*_oslexec.so' -print0 \
| while IFS= read -r -d $'\0' batched_lib; do