aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio Sauer <watermanpaint@posteo.net>2024-03-02 00:09:06 +0100
committerLucio Sauer <watermanpaint@posteo.net>2024-03-02 00:09:06 +0100
commitfdbf051f39d274643870fe293ef80801a2a8c2e7 (patch)
treee09c94892eff423d3c47578476720c2bfac5ada8 /media-libs/dr_mp3
parentmedia-libs/dr_wav: drop 0.13.15 (diff)
downloadguru-fdbf051f39d274643870fe293ef80801a2a8c2e7.tar.gz
guru-fdbf051f39d274643870fe293ef80801a2a8c2e7.tar.bz2
guru-fdbf051f39d274643870fe293ef80801a2a8c2e7.zip
media-libs/dr_mp3: add 0.6.39
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Diffstat (limited to 'media-libs/dr_mp3')
-rw-r--r--media-libs/dr_mp3/Manifest1
-rw-r--r--media-libs/dr_mp3/dr_mp3-0.6.39.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/media-libs/dr_mp3/Manifest b/media-libs/dr_mp3/Manifest
index 3052d6bd7..cfd7d3353 100644
--- a/media-libs/dr_mp3/Manifest
+++ b/media-libs/dr_mp3/Manifest
@@ -1 +1,2 @@
DIST dr_mp3-0.6.38.gh.tar.gz 518478 BLAKE2B 4ef68a7ba24b84d5a3c87271d399b7abe9d367137d34b68f0533414f968315bafa59fc8ae6e9d40b6d82542060420e821c47ee3337fbd1589fceb0d0aded129f SHA512 2aa595a926bf72c56c3012fa7ea13ac7141952d1dc454f7135674286ba0df900554121624e7885fb242104c4bf0598826ed36952f591055033d419199a6b66fc
+DIST dr_mp3-0.6.39.gh.tar.gz 518478 BLAKE2B 4ef68a7ba24b84d5a3c87271d399b7abe9d367137d34b68f0533414f968315bafa59fc8ae6e9d40b6d82542060420e821c47ee3337fbd1589fceb0d0aded129f SHA512 2aa595a926bf72c56c3012fa7ea13ac7141952d1dc454f7135674286ba0df900554121624e7885fb242104c4bf0598826ed36952f591055033d419199a6b66fc
diff --git a/media-libs/dr_mp3/dr_mp3-0.6.39.ebuild b/media-libs/dr_mp3/dr_mp3-0.6.39.ebuild
new file mode 100644
index 000000000..224d735f0
--- /dev/null
+++ b/media-libs/dr_mp3/dr_mp3-0.6.39.ebuild
@@ -0,0 +1,57 @@
+# 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 MP3 audio decoder library"
+HOMEPAGE="https://github.com/mackron/dr_libs/"
+COMMIT="01d23df76776faccee3bc456f685900dcc273b4c"
+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 )"
+
+S="${WORKDIR}/dr_libs-${COMMIT}"
+
+# Unfortunately, the only other test is interactive.
+TESTCASES=(
+ dr_mp3_test_0.c
+)
+
+src_prepare() {
+ sed -n "36,83p" dr_mp3.h > README.md || die
+ sed -n "4496,4776p" dr_mp3.h > CHANGELOG || die
+ default
+}
+
+src_compile() {
+ if use test; then
+ local MY_{CC,BUILD}
+ MY_CC=$(tc-getCC)
+
+ pushd tests > /dev/null || die
+ for tcase in ${TESTCASES[@]}; do
+ MY_BUILD="${MY_CC} mp3/${tcase} -o bin/${tcase} ${CFLAGS} ${CPPFLAGS}"
+ edo ${MY_BUILD}
+ done
+ popd || die
+ fi
+}
+
+src_test() {
+ pushd tests > /dev/null || die
+ for tcase in ${TESTCASES[@]}; do
+ edo bin/${tcase}
+ done
+ popd || die
+}
+
+src_install() {
+ einstalldocs
+ doheader dr_mp3.h
+}