summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-02-13 20:25:15 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-02-13 20:25:30 +0100
commit663f5d4793c32c07c78b8913b66ec0ad9b36571f (patch)
tree16bee927045bad0044f6b1cdb27ab05beeb6ba83 /media-sound
parentmedia-libs/libde265: Stabilize 1.0.8 arm64, #768147 (diff)
downloadgentoo-663f5d4793c32c07c78b8913b66ec0ad9b36571f.tar.gz
gentoo-663f5d4793c32c07c78b8913b66ec0ad9b36571f.tar.bz2
gentoo-663f5d4793c32c07c78b8913b66ec0ad9b36571f.zip
media-sound/sonic-visualiser: bump to 4.3, switched to meson
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/sonic-visualiser/Manifest1
-rw-r--r--media-sound/sonic-visualiser/files/sonic-visualiser-4.3-meson.build.patch182
-rw-r--r--media-sound/sonic-visualiser/sonic-visualiser-4.3.ebuild79
3 files changed, 262 insertions, 0 deletions
diff --git a/media-sound/sonic-visualiser/Manifest b/media-sound/sonic-visualiser/Manifest
index 989343543f5e..75ca1fed0dda 100644
--- a/media-sound/sonic-visualiser/Manifest
+++ b/media-sound/sonic-visualiser/Manifest
@@ -1 +1,2 @@
DIST sonic-visualiser-4.2.tar.gz 6532519 BLAKE2B 8cc92b2cd932d3c9f014161635cd767aa6ffa671217fca7c63ec6b882ae46cc1ed790e108e9be59d536aab0cbead726057987c2920c501d451fd353b2bf83018 SHA512 186d723c74d3b2865588370d9ff3afaf9f5356957e670483ea52303477c6acd17bb99b44c05db0fe4c0dc9757ba17c5e25b7b2fda5a15e85d9e193322ce8f2c3
+DIST sonic-visualiser-4.3.tar.gz 6467269 BLAKE2B 4c9bbfc751f94dfc0e8c93a8ba791b0a4bf949fe1f528a081da583ad720dcb25b3e6f84e31104f11ab5003b338b62a1ca1a9572bc9ec820d0a4269d25cbe0e04 SHA512 cbe0edee9f346545222e05156e4536710db932d6ec335687e91f2f4b24582e7f47703a3ecade87574ead8fa78dca821fd9ff2eb0d6e44c2b9c33c8d053fd738d
diff --git a/media-sound/sonic-visualiser/files/sonic-visualiser-4.3-meson.build.patch b/media-sound/sonic-visualiser/files/sonic-visualiser-4.3-meson.build.patch
new file mode 100644
index 000000000000..d92c07d587f7
--- /dev/null
+++ b/media-sound/sonic-visualiser/files/sonic-visualiser-4.3-meson.build.patch
@@ -0,0 +1,182 @@
+diff --git a/meson.build b/meson.build
+index d1771e1..b18a5b6 100644
+--- a/meson.build
++++ b/meson.build
+@@ -90,17 +90,7 @@ if system == 'linux'
+ serd_dep = dependency('serd-0', version: '>= 0.5')
+ capnp_dep = dependency('capnp', version: '>= 0.6')
+ lrdf_dep = dependency('lrdf', version: '>= 0.2')
+- oggz_dep = dependency('oggz', version: '>= 1.0.0')
+- fishsound_dep = dependency('fishsound', version: '>= 1.0.0')
+- mad_dep = dependency('mad', version: '>= 0.15.0')
+- id3tag_dep = dependency('id3tag', version: '>= 0.15.0')
+- opus_dep = dependency('opusfile')
+- lo_dep = dependency('liblo')
+- jack_dep = dependency('jack', version: '>= 0.100')
+- libpulse_dep = dependency('libpulse', version: '>= 0.9')
+ alsa_dep = dependency('alsa')
+-
+- portaudio_dep = dependency('portaudio-2.0', version: '>= 19', required: false)
+
+ feature_dependencies = [
+ bzip2_dep,
+@@ -113,23 +103,8 @@ if system == 'linux'
+ serd_dep,
+ capnp_dep,
+ lrdf_dep,
+- oggz_dep,
+- fishsound_dep,
+- mad_dep,
+- id3tag_dep,
+- opus_dep,
+- lo_dep,
+- portaudio_dep,
+- jack_dep,
+- libpulse_dep,
+ alsa_dep,
+ ]
+-
+- server_dependencies = [
+- capnp_dep,
+- sord_dep,
+- dl_dep,
+- ]
+
+ feature_defines = [
+ '-DHAVE_BZ2',
+@@ -142,26 +117,110 @@ if system == 'linux'
+ '-DHAVE_SERD',
+ '-DHAVE_CAPNP',
+ '-DHAVE_LRDF',
+- '-DHAVE_OGGZ',
+- '-DHAVE_FISHSOUND',
+- '-DHAVE_MAD',
+- '-DHAVE_ID3TAG',
+- '-DHAVE_OPUS',
+- '-DHAVE_LIBLO',
+- '-DHAVE_JACK', '-DDYNAMIC_JACK',
+- '-DHAVE_LIBPULSE',
+ '-D__LINUX_ALSASEQ__',
+ '-D__LINUX_ALSA__' # for RtMidi
+ ]
+
+- if portaudio_dep.found()
++ enable_id3tag = get_option('id3tag')
++ if enable_id3tag
++ id3tag_dep = dependency('id3tag', version: '>= 0.15.0')
++ feature_dependencies += [
++ id3tag_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_ID3TAG',
++ ]
++ endif
++
++ enable_jack = get_option('jack')
++ if enable_jack
++ jack_dep = dependency('jack', version: '>= 0.100')
++ feature_dependencies += [
++ jack_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_JACK',
++ '-DDYNAMIC_JACK',
++ ]
++ endif
++
++ enable_mad = get_option('mad')
++ if enable_mad
++ mad_dep = dependency('mad', version: '>= 0.15.0')
++ feature_dependencies += [
++ mad_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_MAD',
++ ]
++
++ svcore_moc_args = [
++ '-DHAVE_MAD'
++ ]
++ endif
++
++ enable_ogg = get_option('ogg')
++ if enable_ogg
++ oggz_dep = dependency('oggz', version: '>= 1.0.0')
++ fishsound_dep = dependency('fishsound', version: '>= 1.0.0')
++ feature_dependencies += [
++ oggz_dep,
++ fishsound_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_OGGZ',
++ '-DHAVE_FISHSOUND',
++ ]
++ endif
++
++ enable_opus = get_option('opus')
++ if enable_opus
++ opus_dep = dependency('opusfile')
++ feature_dependencies += [
++ opus_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_OPUS',
++ ]
++ endif
++
++ enable_osc = get_option('osc')
++ if enable_osc
++ lo_dep = dependency('liblo')
++ feature_dependencies += [
++ lo_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_LIBLO',
++ ]
++ endif
++
++ enable_portaudio = get_option('portaudio')
++ if enable_portaudio
++ portaudio_dep = dependency('portaudio-2.0', version: '>= 19', required: false)
++ feature_dependencies += [
++ portaudio_dep,
++ ]
+ feature_defines += [
+ '-DHAVE_PORTAUDIO',
+ ]
+ endif
+
+- svcore_moc_args = [
+- '-DHAVE_MAD'
++ enable_pulseaudio = get_option('pulseaudio')
++ if enable_pulseaudio
++ libpulse_dep = dependency('libpulse', version: '>= 0.9')
++ feature_dependencies += [
++ libpulse_dep,
++ ]
++ feature_defines += [
++ '-DHAVE_LIBPULSE',
++ ]
++ endif
++
++ server_dependencies = [
++ capnp_dep,
++ sord_dep,
++ dl_dep,
+ ]
+
+ elif system == 'darwin'
+diff --git a/meson_options.txt b/meson_options.txt
+new file mode 100644
+index 0000000..e0da4fb
+--- /dev/null
++++ b/meson_options.txt
+@@ -0,0 +1,8 @@
++option('id3tag', type: 'boolean', value: false)
++option('jack', type: 'boolean', value: false)
++option('mad', type: 'boolean', value: false)
++option('ogg', type: 'boolean', value: false)
++option('opus', type: 'boolean', value: false)
++option('osc', type: 'boolean', value: false)
++option('portaudio', type: 'boolean', value: false)
++option('pulseaudio', type: 'boolean', value: false)
diff --git a/media-sound/sonic-visualiser/sonic-visualiser-4.3.ebuild b/media-sound/sonic-visualiser/sonic-visualiser-4.3.ebuild
new file mode 100644
index 000000000000..79ea3cb16090
--- /dev/null
+++ b/media-sound/sonic-visualiser/sonic-visualiser-4.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson desktop xdg
+
+DESCRIPTION="Music audio files viewer and analiser"
+HOMEPAGE="https://www.sonicvisualiser.org/"
+SRC_URI="https://code.soundsoftware.ac.uk/attachments/download/2755/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="id3tag jack mad ogg opus osc +portaudio pulseaudio test"
+
+BDEPEND="
+ dev-qt/qttest:5
+ virtual/pkgconfig
+"
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/capnproto:=
+ dev-libs/serd
+ dev-libs/sord
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ media-libs/alsa-lib
+ media-libs/dssi
+ media-libs/ladspa-sdk
+ media-libs/liblrdf
+ media-libs/libsamplerate
+ media-libs/libsndfile
+ media-libs/rubberband
+ media-libs/speex
+ media-libs/vamp-plugin-sdk
+ sci-libs/fftw:3.0=
+ id3tag? ( media-libs/libid3tag )
+ jack? ( virtual/jack )
+ mad? ( media-libs/libmad )
+ ogg? (
+ media-libs/libfishsound
+ media-libs/liboggz
+ )
+ opus? ( media-libs/opusfile )
+ osc? ( media-libs/liblo )
+ portaudio? ( media-libs/portaudio )
+ pulseaudio? ( media-sound/pulseaudio )
+"
+DEPEND="${RDEPEND}"
+
+# tests fail without mp3 support
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ || ( jack pulseaudio portaudio )
+ test? ( id3tag mad )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-meson.build.patch"
+)
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use id3tag)
+ $(meson_use jack)
+ $(meson_use mad)
+ $(meson_use ogg)
+ $(meson_use opus)
+ $(meson_use osc)
+ $(meson_use portaudio)
+ $(meson_use pulseaudio)
+ )
+ meson_src_configure
+}