aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio Sauer <watermanpaint@posteo.net>2024-03-03 10:00:45 +0100
committerLucio Sauer <watermanpaint@posteo.net>2024-03-03 10:00:55 +0100
commitd05015c8e1187c133f5dc67c06e5592e4bfda014 (patch)
treef319900fa4bb5f6545abb99513abb3bb644db502 /media-libs
parentmedia-libs/dr_wav: update COMMIT to fetch 0.13.16 instead of 0.13.15 (diff)
downloadguru-d05015c8e1187c133f5dc67c06e5592e4bfda014.tar.gz
guru-d05015c8e1187c133f5dc67c06e5592e4bfda014.tar.bz2
guru-d05015c8e1187c133f5dc67c06e5592e4bfda014.zip
media-libs/dr_wav: drop 0.13.16 with incorrect COMMIT
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/dr_wav/dr_wav-0.13.16.ebuild106
1 files changed, 0 insertions, 106 deletions
diff --git a/media-libs/dr_wav/dr_wav-0.13.16.ebuild b/media-libs/dr_wav/dr_wav-0.13.16.ebuild
deleted file mode 100644
index 79ac1a95c..000000000
--- a/media-libs/dr_wav/dr_wav-0.13.16.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit edo toolchain-funcs
-
-DESCRIPTION="Single-header WAV audio loader and writer library"
-HOMEPAGE="https://github.com/mackron/dr_libs/"
-COMMIT="e4a7765e598e9e54dc0f520b7e4416359bee80cc"
-SRC_URI="https://github.com/mackron/dr_libs/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="|| ( MIT-0 public-domain )"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="test? ( media-libs/libsndfile )"
-
-TESTCASES=(
- dr_wav_encoding.c
- dr_wav_{decoding,test_0}.{c,cpp}
-)
-
-S="${WORKDIR}/dr_libs-${COMMIT}"
-
-src_prepare() {
- if use test; then
- # Unbundle library with incorrect include path.
- sed -i 's,"../../../miniaudio/miniaudio.h",<miniaudio/miniaudio.h>,' \
- tests/wav/dr_wav_playback.c || die
- # Disable profiling tests as they are not relevant downstream.
- sed -i 's/doProfiling = DRWAV_TRUE/doProfiling = DRWAV_FALSE/' \
- tests/wav/dr_wav_decoding.c || die
- # Test cases dr_wav_{en,de}coding.{c,cpp} write and read a file from a
- # missing directory.
- mkdir tests/testvectors/wav/tests || die
- fi
-
- awk '/Introduction/,/\*\//' dr_wav.h | sed '$d' > README.md
- assert
- awk '/REVISION HISTORY/,/\*\//' dr_wav.h | sed '$d' > CHANGELOG
- assert
- default
-
-}
-
-src_compile() {
- if use test; then
- local MY_{C,CC,CXX,BUILD,FLAGS}
- MY_CC=$(tc-getCC)
- MY_CXX=$(tc-getCXX)
-
- pushd tests > /dev/null || die
- for tcase in ${TESTCASES[@]}; do
- case ${tcase} in
- *.cpp)
- MY_C=${MY_CXX}
- MY_FLAGS=${CXXFLAGS}
- ;;
- *.c)
- MY_C=${MY_CC}
- MY_FLAGS=${CFLAGS}
- ;;
- *)
- die "Unknown test case ${tcase}"
- ;;
- esac
- MY_BUILD="${MY_C} wav/${tcase} -o bin/${tcase} ${MY_FLAGS} ${CPPFLAGS}"
- case ${tcase%.*} in
- dr_wav_encoding)
- MY_BUILD="${MY_BUILD} -lm ${LDFLAGS}"
- ;;
- *)
- ;;
- esac
- edo ${MY_BUILD}
- done
- popd || die
- fi
-}
-
-src_test() {
- local MY_RUN
-
- pushd tests || die
- for tcase in ${TESTCASES[@]}; do
- MY_RUN="./bin/${tcase}"
- case ${tcase%.*} in
- dr_wav_encoding)
- MY_RUN="${MY_RUN} testvectors/wav/tests/test_encode_gentoo"
- ;;
- *)
- ;;
- esac
- edo ${MY_RUN}
- done
- popd || die
-}
-
-src_install() {
- einstalldocs
- doheader dr_wav.h
-}