* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2023-09-02 19:46 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2023-09-02 19:46 UTC (permalink / raw
To: gentoo-commits
commit: 650b661efa85f53fc331a097b2e0c4d4fbc84471
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sat Sep 2 15:49:02 2023 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sat Sep 2 19:46:29 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=650b661e
media-libs/dr_wav: new package, add 0.13.32
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 3 ++
media-libs/dr_wav/dr_wav-0.13.32.ebuild | 92 +++++++++++++++++++++++++++++++++
media-libs/dr_wav/metadata.xml | 11 ++++
3 files changed, 106 insertions(+)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
new file mode 100644
index 0000000000..4f2756b168
--- /dev/null
+++ b/media-libs/dr_wav/Manifest
@@ -0,0 +1,3 @@
+DIST dr_wav-0.13.32-README.md 1243 BLAKE2B 5b22e00252f4307b5407b2b7cdbc237fa60975f86b9151f5a8eeea8faa1e81d1eec15a22a1952d1440a1f0b76b1e59782a30eb38473cab978a47fcfa391c8a9a SHA512 661529e69639367920276c5f6ff425fdd176ac8a7475212a1c1e1e2ccdbdf076f1a26eae1a1913f98da0d9e1c6ca04a48e0de69f3c681b1a7574674d7015bbb6
+DIST dr_wav-0.13.32.gh.h 351384 BLAKE2B 2bcbeab7e7aa6a7519bea978742494205625a60b8c0a464305c6f6fb7eec33be54640fdb2578437c4143e50e5ad2d18730351ecdd824d25ab6e0f8af3b8d018c SHA512 a4a681546716b1a1a9e55321796828828b1872bf223c7c02529a1553b8beafe2a89ffe72a38e5aa3bf457a8ce4dd2dcf9cba7a9cde28e59586a8388f1439a8a1
+DIST dr_wav-0.13.32.gh.tar.gz 518394 BLAKE2B 49447a2b845f95e9896fb45ac2cd9de8f59d45d3271e30e26c0e519355c3578b96f2c2978677d2774c1bfa4656a8213eafda00207cdd89f72d6823cf0f1b77cf SHA512 34126c8eb65f0735b77f058db9f1618b3c4e820698804b47f7a629c47df571e9cbbeefd4cce193409ebd715d37ed5faf1c3c27a7240e0f5418089cffe853f1ea
diff --git a/media-libs/dr_wav/dr_wav-0.13.32.ebuild b/media-libs/dr_wav/dr_wav-0.13.32.ebuild
new file mode 100644
index 0000000000..b9ed2c4cac
--- /dev/null
+++ b/media-libs/dr_wav/dr_wav-0.13.32.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="WAV audio loader and writer"
+HOMEPAGE="https://github.com/mackron/dr_libs/"
+COMMIT="d35a3bc5efd02455d98cbe12b94647136f09b42d"
+SRC_URI="https://raw.githubusercontent.com/mackron/dr_libs/${COMMIT}/dr_wav.h -> ${P}.gh.h
+ https://raw.githubusercontent.com/mackron/dr_libs/${COMMIT}/README.md -> ${P}-README.md
+ test? ( 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 )"
+
+S="${DISTDIR}"
+
+src_prepare() {
+ if use test; then
+ pushd "${WORKDIR}/dr_libs-${COMMIT}" > /dev/null || die
+ # Remove some unused parts of the source tree that could contribute different
+ # (but acceptable) license terms if they were used—just to prove that we do not
+ # use them.
+ rm -rv old
+
+ # Unbundle library with incorrect include path.
+ sed -i 's,"../../../miniaudio/miniaudio.h",<miniaudio/miniaudio.h>,' \
+ tests/wav/dr_wav_playback.c || die
+ # Profiling tests aren't implemented.
+ sed -i 's/doProfiling = DRWAV_TRUE/doProfiling = DRWAV_FALSE/' \
+ tests/wav/dr_wav_decoding.c || die
+ popd || die
+ fi
+ default
+}
+
+src_test() {
+ local MY_{C,CC,CXX,BUILD,FLAGS,RUN} TESTCASES
+ TESTCASES=(
+ dr_wav_encoding.c
+ dr_wav_{decoding,test_0}.{c,cpp}
+ )
+ MY_CC=$(tc-getCC)
+ MY_CXX=$(tc-getCXX)
+
+ pushd "${WORKDIR}/dr_libs-${COMMIT}/tests" > /dev/null || die
+ for tcase in ${TESTCASES[@]}; do
+ einfo "Compiling and running test case ${tcase}."
+ 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}"
+ MY_RUN="./bin/${tcase}"
+ case ${tcase%.*} in
+ dr_wav_encoding)
+ MY_BUILD="${MY_BUILD} -lm"
+ MY_RUN="${MY_RUN} testvectors/wav/tests/test_encode_gentoo"
+ mkdir testvectors/wav/tests || die
+ ;;
+ *)
+ ;;
+ esac
+ echo "${MY_BUILD}" || die
+ ${MY_BUILD} || die "Build failed: ${MY_BUILD}"
+ echo "${MY_RUN}" || die
+ ${MY_RUN} || die "Test case ${MY_RUN} failed."
+ done
+ popd || die
+}
+
+src_install() {
+ newheader ${P}.gh.h ${PN}.h
+ newdoc ${P}-README.md README.md
+}
diff --git a/media-libs/dr_wav/metadata.xml b/media-libs/dr_wav/metadata.xml
new file mode 100644
index 0000000000..6b41d45a1f
--- /dev/null
+++ b/media-libs/dr_wav/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>watermanpaint@posteo.net</email>
+ <name>Lucio Sauer</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mackron/dr_libs</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2023-12-07 1:55 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2023-12-07 1:55 UTC (permalink / raw
To: gentoo-commits
commit: bbbe3e11b7e8c19cd44fd37806e3ba093b087954
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Dec 7 01:51:27 2023 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Dec 7 01:51:39 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bbbe3e11
media-libs/dr_wav: add 0.13.12, drop 0.13.32
The original version should have been 0.13.12, not 0.13.32!
Fixed in coordination with #gentoo-dev-help:
[02:33] colores: I accidentally pushed a package with the
wrong version specifier to GURU. The recently
released new version would trigger a
"downgrade" from the incorrectly-named
old one. Do I simply push the new version and
delete the old one? They don't need to
co-exist anyway.
[snip]
[02:37] @ sam_: uh oh...
[02:37] @ sam_: 1) yes, it's fine to git mv to the proper
version in this case, just do it quickly
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 4 ++--
media-libs/dr_wav/{dr_wav-0.13.32.ebuild => dr_wav-0.13.12.ebuild} | 0
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index b4652ddbc6..f47932ccdc 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1,2 +1,2 @@
-DIST dr_wav-0.13.32.gh.tar.gz 518394 BLAKE2B 49447a2b845f95e9896fb45ac2cd9de8f59d45d3271e30e26c0e519355c3578b96f2c2978677d2774c1bfa4656a8213eafda00207cdd89f72d6823cf0f1b77cf SHA512 34126c8eb65f0735b77f058db9f1618b3c4e820698804b47f7a629c47df571e9cbbeefd4cce193409ebd715d37ed5faf1c3c27a7240e0f5418089cffe853f1ea
-DIST dr_wav-0.13.32.h 351384 BLAKE2B 2bcbeab7e7aa6a7519bea978742494205625a60b8c0a464305c6f6fb7eec33be54640fdb2578437c4143e50e5ad2d18730351ecdd824d25ab6e0f8af3b8d018c SHA512 a4a681546716b1a1a9e55321796828828b1872bf223c7c02529a1553b8beafe2a89ffe72a38e5aa3bf457a8ce4dd2dcf9cba7a9cde28e59586a8388f1439a8a1
+DIST dr_wav-0.13.12.gh.tar.gz 518394 BLAKE2B 49447a2b845f95e9896fb45ac2cd9de8f59d45d3271e30e26c0e519355c3578b96f2c2978677d2774c1bfa4656a8213eafda00207cdd89f72d6823cf0f1b77cf SHA512 34126c8eb65f0735b77f058db9f1618b3c4e820698804b47f7a629c47df571e9cbbeefd4cce193409ebd715d37ed5faf1c3c27a7240e0f5418089cffe853f1ea
+DIST dr_wav-0.13.12.h 351384 BLAKE2B 2bcbeab7e7aa6a7519bea978742494205625a60b8c0a464305c6f6fb7eec33be54640fdb2578437c4143e50e5ad2d18730351ecdd824d25ab6e0f8af3b8d018c SHA512 a4a681546716b1a1a9e55321796828828b1872bf223c7c02529a1553b8beafe2a89ffe72a38e5aa3bf457a8ce4dd2dcf9cba7a9cde28e59586a8388f1439a8a1
diff --git a/media-libs/dr_wav/dr_wav-0.13.32.ebuild b/media-libs/dr_wav/dr_wav-0.13.12.ebuild
similarity index 100%
rename from media-libs/dr_wav/dr_wav-0.13.32.ebuild
rename to media-libs/dr_wav/dr_wav-0.13.12.ebuild
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2023-12-07 2:30 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2023-12-07 2:30 UTC (permalink / raw
To: gentoo-commits
commit: 368e388955c2865fcc2aceb298343f559b9ed4d7
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Dec 7 02:27:11 2023 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Dec 7 02:27:11 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=368e3889
media-libs/dr_wav: add 0.13.13
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 1 +
media-libs/dr_wav/dr_wav-0.13.13.ebuild | 106 ++++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index f47932ccdc..5403d480fc 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1,2 +1,3 @@
DIST dr_wav-0.13.12.gh.tar.gz 518394 BLAKE2B 49447a2b845f95e9896fb45ac2cd9de8f59d45d3271e30e26c0e519355c3578b96f2c2978677d2774c1bfa4656a8213eafda00207cdd89f72d6823cf0f1b77cf SHA512 34126c8eb65f0735b77f058db9f1618b3c4e820698804b47f7a629c47df571e9cbbeefd4cce193409ebd715d37ed5faf1c3c27a7240e0f5418089cffe853f1ea
DIST dr_wav-0.13.12.h 351384 BLAKE2B 2bcbeab7e7aa6a7519bea978742494205625a60b8c0a464305c6f6fb7eec33be54640fdb2578437c4143e50e5ad2d18730351ecdd824d25ab6e0f8af3b8d018c SHA512 a4a681546716b1a1a9e55321796828828b1872bf223c7c02529a1553b8beafe2a89ffe72a38e5aa3bf457a8ce4dd2dcf9cba7a9cde28e59586a8388f1439a8a1
+DIST dr_wav-0.13.13.gh.tar.gz 518461 BLAKE2B 28a606f184edb697cb3683d2bab6efd134eb304948cfea74c7d3ef1f292402c02c617ba5b2c2ed4c6b6af783a75d83b2e77afac63545a5ec4e772c19e92a1426 SHA512 1266af7606a1d08270e4f5aa4b72054c0df3931e04a6a2134ce14a0b137ea77abd8b746a6affb34881571269561e7fdd45ef50072186aa52d1401e490e9c356a
diff --git a/media-libs/dr_wav/dr_wav-0.13.13.ebuild b/media-libs/dr_wav/dr_wav-0.13.13.ebuild
new file mode 100644
index 0000000000..c9d7718d79
--- /dev/null
+++ b/media-libs/dr_wav/dr_wav-0.13.13.ebuild
@@ -0,0 +1,106 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Single-header WAV audio loader and writer library"
+HOMEPAGE="https://github.com/mackron/dr_libs/"
+COMMIT="9eed1be421749ba68a87e5b4c3b10858f8580689"
+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
+
+ sed -n "11,135p" dr_wav.h > README.md || die
+ sed -n "8348,8752p" dr_wav.h > CHANGELOG || die
+ 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
+ einfo "Compiling test case ${tcase}."
+ 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
+ ${MY_BUILD} || die "Build failed: ${MY_BUILD}"
+ done
+ popd || die
+ fi
+}
+
+src_test() {
+ local MY_RUN
+
+ pushd tests || die
+ for tcase in ${TESTCASES[@]}; do
+ einfo "Running test case ${tcase}."
+ MY_RUN="./bin/${tcase}"
+ case ${tcase%.*} in
+ dr_wav_encoding)
+ MY_RUN="${MY_RUN} testvectors/wav/tests/test_encode_gentoo"
+ ;;
+ *)
+ ;;
+ esac
+ ${MY_RUN} || die "Test case ${tcase} failed."
+ done
+ popd || die
+}
+
+src_install() {
+ einstalldocs
+ doheader dr_wav.h
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-01-25 10:18 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-01-25 10:18 UTC (permalink / raw
To: gentoo-commits
commit: 9c2f984eb6f3153f6c9c188f34a736e60eede169
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jan 25 10:17:00 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jan 25 10:17:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c2f984e
media-libs/dr_wav: add 0.13.15
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 1 +
media-libs/dr_wav/dr_wav-0.13.15.ebuild | 108 ++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index 71fba75e16..d7c32dcdd5 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1 +1,2 @@
DIST dr_wav-0.13.13.gh.tar.gz 518461 BLAKE2B 28a606f184edb697cb3683d2bab6efd134eb304948cfea74c7d3ef1f292402c02c617ba5b2c2ed4c6b6af783a75d83b2e77afac63545a5ec4e772c19e92a1426 SHA512 1266af7606a1d08270e4f5aa4b72054c0df3931e04a6a2134ce14a0b137ea77abd8b746a6affb34881571269561e7fdd45ef50072186aa52d1401e490e9c356a
+DIST dr_wav-0.13.15.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
diff --git a/media-libs/dr_wav/dr_wav-0.13.15.ebuild b/media-libs/dr_wav/dr_wav-0.13.15.ebuild
new file mode 100644
index 0000000000..c3f9c8dd95
--- /dev/null
+++ b/media-libs/dr_wav/dr_wav-0.13.15.ebuild
@@ -0,0 +1,108 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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
+ einfo "Compiling test case ${tcase}."
+ 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
+ ${MY_BUILD} || die "Build failed: ${MY_BUILD}"
+ done
+ popd || die
+ fi
+}
+
+src_test() {
+ local MY_RUN
+
+ pushd tests || die
+ for tcase in ${TESTCASES[@]}; do
+ einfo "Running test case ${tcase}."
+ MY_RUN="./bin/${tcase}"
+ case ${tcase%.*} in
+ dr_wav_encoding)
+ MY_RUN="${MY_RUN} testvectors/wav/tests/test_encode_gentoo"
+ ;;
+ *)
+ ;;
+ esac
+ ${MY_RUN} || die "Test case ${tcase} failed."
+ done
+ popd || die
+}
+
+src_install() {
+ einstalldocs
+ doheader dr_wav.h
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-01-25 10:18 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-01-25 10:18 UTC (permalink / raw
To: gentoo-commits
commit: f237d7c1cd331a1c5b472d7bde7a0f2df0d28a59
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jan 25 10:17:23 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jan 25 10:17:23 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f237d7c1
media-libs/dr_wav: drop 0.13.13
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 1 -
media-libs/dr_wav/dr_wav-0.13.13.ebuild | 106 --------------------------------
2 files changed, 107 deletions(-)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index d7c32dcdd5..10943227fd 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1,2 +1 @@
-DIST dr_wav-0.13.13.gh.tar.gz 518461 BLAKE2B 28a606f184edb697cb3683d2bab6efd134eb304948cfea74c7d3ef1f292402c02c617ba5b2c2ed4c6b6af783a75d83b2e77afac63545a5ec4e772c19e92a1426 SHA512 1266af7606a1d08270e4f5aa4b72054c0df3931e04a6a2134ce14a0b137ea77abd8b746a6affb34881571269561e7fdd45ef50072186aa52d1401e490e9c356a
DIST dr_wav-0.13.15.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
diff --git a/media-libs/dr_wav/dr_wav-0.13.13.ebuild b/media-libs/dr_wav/dr_wav-0.13.13.ebuild
deleted file mode 100644
index c9d7718d79..0000000000
--- a/media-libs/dr_wav/dr_wav-0.13.13.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="Single-header WAV audio loader and writer library"
-HOMEPAGE="https://github.com/mackron/dr_libs/"
-COMMIT="9eed1be421749ba68a87e5b4c3b10858f8580689"
-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
-
- sed -n "11,135p" dr_wav.h > README.md || die
- sed -n "8348,8752p" dr_wav.h > CHANGELOG || die
- 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
- einfo "Compiling test case ${tcase}."
- 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
- ${MY_BUILD} || die "Build failed: ${MY_BUILD}"
- done
- popd || die
- fi
-}
-
-src_test() {
- local MY_RUN
-
- pushd tests || die
- for tcase in ${TESTCASES[@]}; do
- einfo "Running test case ${tcase}."
- MY_RUN="./bin/${tcase}"
- case ${tcase%.*} in
- dr_wav_encoding)
- MY_RUN="${MY_RUN} testvectors/wav/tests/test_encode_gentoo"
- ;;
- *)
- ;;
- esac
- ${MY_RUN} || die "Test case ${tcase} failed."
- done
- popd || die
-}
-
-src_install() {
- einstalldocs
- doheader dr_wav.h
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-02-25 9:35 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-02-25 9:35 UTC (permalink / raw
To: gentoo-commits
commit: ed0f73030fb60d5f5dcaf93c74284e37220e0b82
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Feb 25 09:28:33 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Feb 25 09:29:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ed0f7303
media-libs/dr_wav: use the edo eclass
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/dr_wav-0.13.15.ebuild | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/media-libs/dr_wav/dr_wav-0.13.15.ebuild b/media-libs/dr_wav/dr_wav-0.13.15.ebuild
index c3f9c8dd95..79ac1a95ca 100644
--- a/media-libs/dr_wav/dr_wav-0.13.15.ebuild
+++ b/media-libs/dr_wav/dr_wav-0.13.15.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit toolchain-funcs
+inherit edo toolchain-funcs
DESCRIPTION="Single-header WAV audio loader and writer library"
HOMEPAGE="https://github.com/mackron/dr_libs/"
@@ -55,7 +55,6 @@ src_compile() {
pushd tests > /dev/null || die
for tcase in ${TESTCASES[@]}; do
- einfo "Compiling test case ${tcase}."
case ${tcase} in
*.cpp)
MY_C=${MY_CXX}
@@ -77,7 +76,7 @@ src_compile() {
*)
;;
esac
- ${MY_BUILD} || die "Build failed: ${MY_BUILD}"
+ edo ${MY_BUILD}
done
popd || die
fi
@@ -88,7 +87,6 @@ src_test() {
pushd tests || die
for tcase in ${TESTCASES[@]}; do
- einfo "Running test case ${tcase}."
MY_RUN="./bin/${tcase}"
case ${tcase%.*} in
dr_wav_encoding)
@@ -97,7 +95,7 @@ src_test() {
*)
;;
esac
- ${MY_RUN} || die "Test case ${tcase} failed."
+ edo ${MY_RUN}
done
popd || die
}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-03-01 23:20 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-03-01 23:20 UTC (permalink / raw
To: gentoo-commits
commit: 2ac693cb42dfc872a451cc77a09818aa001e4e58
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Fri Mar 1 23:08:05 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Fri Mar 1 23:08:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2ac693cb
media-libs/dr_wav: add 0.13.16
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 1 +
media-libs/dr_wav/dr_wav-0.13.16.ebuild | 106 ++++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index 10943227fd..04a0baf47d 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1 +1,2 @@
DIST dr_wav-0.13.15.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
+DIST dr_wav-0.13.16.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
diff --git a/media-libs/dr_wav/dr_wav-0.13.16.ebuild b/media-libs/dr_wav/dr_wav-0.13.16.ebuild
new file mode 100644
index 0000000000..79ac1a95ca
--- /dev/null
+++ b/media-libs/dr_wav/dr_wav-0.13.16.ebuild
@@ -0,0 +1,106 @@
+# 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
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-03-01 23:20 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-03-01 23:20 UTC (permalink / raw
To: gentoo-commits
commit: 8fbe6ae70472aa3c0a5be34aa1048ef8e4b50fdb
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Fri Mar 1 23:08:30 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Fri Mar 1 23:08:30 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8fbe6ae7
media-libs/dr_wav: drop 0.13.15
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 1 -
media-libs/dr_wav/dr_wav-0.13.15.ebuild | 106 --------------------------------
2 files changed, 107 deletions(-)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index 04a0baf47d..0ab28d97c8 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1,2 +1 @@
-DIST dr_wav-0.13.15.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
DIST dr_wav-0.13.16.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
diff --git a/media-libs/dr_wav/dr_wav-0.13.15.ebuild b/media-libs/dr_wav/dr_wav-0.13.15.ebuild
deleted file mode 100644
index 79ac1a95ca..0000000000
--- a/media-libs/dr_wav/dr_wav-0.13.15.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
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-03-03 9:01 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-03-03 9:01 UTC (permalink / raw
To: gentoo-commits
commit: d05015c8e1187c133f5dc67c06e5592e4bfda014
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Mar 3 09:00:45 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Mar 3 09:00:55 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d05015c8
media-libs/dr_wav: drop 0.13.16 with incorrect COMMIT
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/dr_wav-0.13.16.ebuild | 106 --------------------------------
1 file changed, 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 79ac1a95ca..0000000000
--- 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
-}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-03-03 9:01 Lucio Sauer
0 siblings, 0 replies; 11+ messages in thread
From: Lucio Sauer @ 2024-03-03 9:01 UTC (permalink / raw
To: gentoo-commits
commit: e87a744dba321798691e29daa1dc656aee4d43a2
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Mar 3 08:58:20 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Mar 3 08:58:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e87a744d
media-libs/dr_wav: update COMMIT to fetch 0.13.16 instead of 0.13.15
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
media-libs/dr_wav/Manifest | 2 +-
media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild | 106 +++++++++++++++++++++++++++++
2 files changed, 107 insertions(+), 1 deletion(-)
diff --git a/media-libs/dr_wav/Manifest b/media-libs/dr_wav/Manifest
index 0ab28d97c8..aea22197c8 100644
--- a/media-libs/dr_wav/Manifest
+++ b/media-libs/dr_wav/Manifest
@@ -1 +1 @@
-DIST dr_wav-0.13.16.gh.tar.gz 518698 BLAKE2B 9598008c392fcb24448f15771bb47e6479c99b529164e28af00600d3eb7066ffb49f328bcaca88cb89ac0348551ff60cbf9c965d1f39e460319a0867b4141821 SHA512 8d6b8324db7a0864b1c264a1aea7f29eb282f726aa2d6ba8be8fb27892dd7c3c047b3b669bcc9744e52b4fb57899437bb42ba17b5cefd3520c98cb17570e68dd
+DIST dr_wav-0.13.16.gh.tar.gz 518708 BLAKE2B 33c55d2e7dcba5e01421dc3003a5f1a520a13c0f32a9720625771f9c4625fd47d6f6567642dba8cfdf8c59561fab5074b02f6ad86e97c9ab6b970a6529332cb6 SHA512 604752b11f0c51eb25a1c51b8e74c7c11473f0267b2d48a2ec2637c3ea881b9a29867a5a0aa016b7a1dced67bd271abc62b20fe771e0c20862dc14afccd39b09
diff --git a/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild b/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild
new file mode 100644
index 0000000000..cb5955edd6
--- /dev/null
+++ b/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild
@@ -0,0 +1,106 @@
+# 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="4ec70a37c4450b021a6653f0813f1b9ceaae65fb"
+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
+}
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/
@ 2024-03-13 23:26 Piotr Kubaj
0 siblings, 0 replies; 11+ messages in thread
From: Piotr Kubaj @ 2024-03-13 23:26 UTC (permalink / raw
To: gentoo-commits
commit: 21a544fe33bebefeeff61557c5cbe142c0278521
Author: Piotr Kubaj <pkubaj <AT> anongoth <DOT> pl>
AuthorDate: Wed Mar 13 23:23:41 2024 +0000
Commit: Piotr Kubaj <pkubaj <AT> anongoth <DOT> pl>
CommitDate: Wed Mar 13 23:25:57 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=21a544fe
media-libs/dr_wav: keyword 0.13.16-r1 for ~ppc64
Signed-off-by: Piotr Kubaj <pkubaj <AT> anongoth.pl>
media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild b/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild
index cb5955edd6..274907ba47 100644
--- a/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild
+++ b/media-libs/dr_wav/dr_wav-0.13.16-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/mackron/dr_libs/archive/${COMMIT}.tar.gz -> ${P}.gh.
LICENSE="|| ( MIT-0 public-domain )"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~ppc64"
IUSE="test"
RESTRICT="!test? ( test )"
^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-03-13 23:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 2:30 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_wav/ Lucio Sauer
-- strict thread matches above, loose matches on Subject: below --
2024-03-13 23:26 Piotr Kubaj
2024-03-03 9:01 Lucio Sauer
2024-03-03 9:01 Lucio Sauer
2024-03-01 23:20 Lucio Sauer
2024-03-01 23:20 Lucio Sauer
2024-02-25 9:35 Lucio Sauer
2024-01-25 10:18 Lucio Sauer
2024-01-25 10:18 Lucio Sauer
2023-12-07 1:55 Lucio Sauer
2023-09-02 19:46 Lucio Sauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox