media-libs/dr_flac: use the edo eclass

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2024-02-25 10:35:04 +01:00
parent d08f6e3b58
commit fefd0fc087

View File

@@ -1,9 +1,9 @@
# Copyright 2023 Gentoo Authors # Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
inherit toolchain-funcs inherit edo toolchain-funcs
DESCRIPTION="Single-header FLAC audio decoder library" DESCRIPTION="Single-header FLAC audio decoder library"
HOMEPAGE="https://github.com/mackron/dr_libs/" HOMEPAGE="https://github.com/mackron/dr_libs/"
@@ -60,7 +60,6 @@ src_compile() {
pushd tests > /dev/null || die pushd tests > /dev/null || die
for tcase in ${TESTCASES[@]}; do for tcase in ${TESTCASES[@]}; do
einfo "Compiling test case ${tcase}."
case ${tcase} in case ${tcase} in
*.cpp) *.cpp)
MY_C=${MY_CXX} MY_C=${MY_CXX}
@@ -84,7 +83,7 @@ src_compile() {
*) *)
;; ;;
esac esac
${MY_BUILD} || die "Build failed: ${MY_BUILD}" edo ${MY_BUILD}
done done
popd || die popd || die
fi fi
@@ -93,8 +92,7 @@ src_compile() {
src_test() { src_test() {
pushd tests > /dev/null || die pushd tests > /dev/null || die
for tcase in ${TESTCASES[@]}; do for tcase in ${TESTCASES[@]}; do
einfo "Running test case ${tcase}." edo bin/${tcase}
./bin/${tcase} || die "Test case ${tcase} failed."
done done
popd || die popd || die
} }