sox, revbump for libid3tag, add test case (#11401)

This commit is contained in:
Schrijvers Luc
2024-12-02 12:46:18 +01:00
committed by GitHub
parent 7d0db6cb17
commit 8642e57636
2 changed files with 38 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
From 36e7868b80c3f53896e647b06ad8d96baf925e05 Mon Sep 17 00:00:00 2001
From 5a01e27e402cf83edbd190ee2d02a71d3f40f9e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?=
<adrian.arroyocalle@gmail.com>
Date: Fri, 28 Aug 2015 12:23:33 +0000
@@ -19,5 +19,28 @@ index 724a4cd..079cd9a 100644
#elif defined _MSC_VER || defined _WIN32 || defined _WIN64 || \
defined _ISO_STDIO_ISO_H || defined __sgi
--
2.2.2
2.45.2
From afd8fd6252f2db10bb6f675914c7a3b6b3ea1942 Mon Sep 17 00:00:00 2001
From: Schrijvers Luc <begasus@gmail.com>
Date: Mon, 2 Dec 2024 12:36:41 +0100
Subject: Fix path for "time" (fixes tests)
diff --git a/src/tests.sh b/src/tests.sh
index 51a6ede..231c74b 100755
--- a/src/tests.sh
+++ b/src/tests.sh
@@ -182,7 +182,7 @@ stderr_time () {
}
# Reading and writing performance test
-time="/usr/bin/time -p"
+time="/bin/time -p"
timeIO () {
$time ${bindir}/sox${EXEEXT} -c $channels -r $rate -n tmp.sox synth $samples's' saw 0:`expr $rate / 2` noise brown vol .9 2> tmp.write
echo TIME synth channels=$channels samples=$samples `stderr_time tmp.write`s
--
2.45.2

View File

@@ -6,7 +6,7 @@ bonus, SoX can play and record audio files on most platforms."
HOMEPAGE="http://sox.sourceforge.net"
COPYRIGHT="1991-2015 Lance Norskog"
LICENSE="GNU GPL v2"
REVISION="5"
REVISION="6"
SOURCE_URI="https://downloads.sf.net/sox/sox-$portVersion.tar.bz2"
CHECKSUM_SHA256="81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c"
PATCHES="sox-$portVersion.patchset"
@@ -52,6 +52,7 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
gcc${secondaryArchSuffix}_syslibs_devel
devel:libao$secondaryArchSuffix
devel:libflac$secondaryArchSuffix
devel:libid3tag$secondaryArchSuffix
@@ -74,6 +75,11 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
TEST_REQUIRES="
cmd:cmp
cmd:time
"
defineDebugInfoPackage sox$secondaryArchSuffix \
"$libDir"/libsox.so.$libVersion
@@ -96,3 +102,9 @@ INSTALL()
packageEntries devel \
"$developDir"
}
TEST()
{
cd src
./tests.sh
}