aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-08-17 20:49:52 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-18 00:06:31 +0000
commit694302d57b8ac5b820e99b31f397e8bfa1f31e74 (patch)
tree284683bfb25373ab3b75e6cad42caef81134b7f2
parent44b733238227a81195743e7ca9cb1ed66ca0c878 (diff)
downloadaports-694302d57b8ac5b820e99b31f397e8bfa1f31e74.tar.gz
aports-694302d57b8ac5b820e99b31f397e8bfa1f31e74.tar.bz2
aports-694302d57b8ac5b820e99b31f397e8bfa1f31e74.tar.xz
testing/aubio: upgrade to 0.4.9
-rw-r--r--testing/aubio/APKBUILD16
-rw-r--r--testing/aubio/unversioned-python.patch24
2 files changed, 36 insertions, 4 deletions
diff --git a/testing/aubio/APKBUILD b/testing/aubio/APKBUILD
index 11edf3e2ad..2167409e8b 100644
--- a/testing/aubio/APKBUILD
+++ b/testing/aubio/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=aubio
-pkgver=0.4.8
+pkgver=0.4.9
pkgrel=0
pkgdesc="tool designed for the extraction of annotations from audio signals"
url="https://aubio.org"
@@ -14,15 +14,23 @@ makedepends="ffmpeg-dev
libsndfile-dev
python3"
subpackages="$pkgname-static $pkgname-dev"
-source="https://aubio.org/pub/aubio-$pkgver.tar.bz2"
-options="!check" # No tests
+source="https://aubio.org/pub/aubio-$pkgver.tar.bz2
+ unversioned-python.patch
+ "
build() {
python3 waf configure --prefix=/usr
}
+check() {
+ # The waf file does not have a check target but the tests are run during the
+ # package() function
+ :
+}
+
package() {
python3 waf install --destdir="$pkgdir"
}
-sha512sums="e58b32beda36865a5243ec7ed4647cf96e3652a25fd319fc697c08f93487f895070dc66b830700b40b879220c2e3a53b8cdc255ce2e34770ba5e34b36a4f51b4 aubio-0.4.8.tar.bz2"
+sha512sums="0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130 aubio-0.4.9.tar.bz2
+08ef8497caec4a6025bfada1e7718469943f71e1847d2b340731483d6b396da7d367b1a180f87d70590109bfe2e7bd74141aebc458c607f5f96fd42e618e7ea7 unversioned-python.patch"
diff --git a/testing/aubio/unversioned-python.patch b/testing/aubio/unversioned-python.patch
new file mode 100644
index 0000000000..b3979261fd
--- /dev/null
+++ b/testing/aubio/unversioned-python.patch
@@ -0,0 +1,24 @@
+ff --git a/tests/create_tests_source.py b/tests/create_tests_source.py
+index 1feb1443..2c5560f4 100755
+--- a/tests/create_tests_source.py
++++ b/tests/create_tests_source.py
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#!/usr/bin/python3
+
+ """ Create a simple stereo file containing a sine tone at 441 Hz, using only
+ python's built-in modules. """
+diff --git a/tests/wscript_build b/tests/wscript_build
+index c99a051e..d3fd0633 100644
+--- a/tests/wscript_build
++++ b/tests/wscript_build
+@@ -13,7 +13,7 @@ test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
+ test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')
+
+ b = bld(name='create_tests_source',
+- rule='python ${SRC} ${TGT}',
++ rule='python3 ${SRC} ${TGT}',
+ source='create_tests_source.py',
+ target=test_sound_target)
+ # use post() to create the task, keep a reference to it
+