summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/sonic-visualiser')
-rw-r--r--media-sound/sonic-visualiser/Manifest1
-rw-r--r--media-sound/sonic-visualiser/files/notest.patch33
-rw-r--r--media-sound/sonic-visualiser/sonic-visualiser-3.0.2.ebuild101
3 files changed, 135 insertions, 0 deletions
diff --git a/media-sound/sonic-visualiser/Manifest b/media-sound/sonic-visualiser/Manifest
index 6bc95a9bbcb6..3eab3db5452a 100644
--- a/media-sound/sonic-visualiser/Manifest
+++ b/media-sound/sonic-visualiser/Manifest
@@ -1 +1,2 @@
DIST sonic-visualiser-2.5.tar.gz 4112133 SHA256 5a66f20bae002876c64bc26d79dcba4f4c96c3c71ae160b5aafb40cfeacecdbe SHA512 ec48456f5b089453ee9e8bdca5449da92b248a9278423b38a63dda4598b0496432337a152d8b296e8c5dcc2b434bc68c8d1dde225e398bf9bee1f4bbb6c8d7e6 WHIRLPOOL 0038c197a731e503c01d4f69b3b1aa6d347df95e84bc4ed75b7cd670bb50eeeb615e1ae9bfb357d6414fbc338fdfce6179635e8390cf835c37f7c5029767df9f
+DIST sonic-visualiser-3.0.2.tar.gz 5123229 SHA256 9ca9c37e1da5e6197bb61e5b05b29544cbf8389523467efbd465527f1dd6d8b3 SHA512 25259df72175e397c63e76dca25f0099139c6569153c1e5750f90bcf5d661f20dd8c02aba53272567e72e661bfc66ec19cb3b3066795f978a6b76c826a5bf825 WHIRLPOOL 15ce603c4d34ffb0783138d7408ab903a3b1d1d776a997bf69c3d1de02f916f4d96e980e15b431450c6177d1d4ba85031b927dc7bdc9577bf6bceba2d3b37635
diff --git a/media-sound/sonic-visualiser/files/notest.patch b/media-sound/sonic-visualiser/files/notest.patch
new file mode 100644
index 000000000000..59b4d04f9336
--- /dev/null
+++ b/media-sound/sonic-visualiser/files/notest.patch
@@ -0,0 +1,33 @@
+Index: sonic-visualiser-3.0.2/test-svcore-base.pro
+===================================================================
+--- sonic-visualiser-3.0.2.orig/test-svcore-base.pro
++++ sonic-visualiser-3.0.2/test-svcore-base.pro
+@@ -28,6 +28,3 @@ include(svcore/base/test/files.pri)
+ for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/base/test/%1", $$file) }
+ for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/base/test/%1", $$file) }
+
+-!win32* {
+- QMAKE_POST_LINK = ./$${TARGET}
+-}
+Index: sonic-visualiser-3.0.2/test-svcore-data-fileio.pro
+===================================================================
+--- sonic-visualiser-3.0.2.orig/test-svcore-data-fileio.pro
++++ sonic-visualiser-3.0.2/test-svcore-data-fileio.pro
+@@ -28,6 +28,3 @@ include(svcore/data/fileio/test/files.pr
+ for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/data/fileio/test/%1", $$file) }
+ for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/data/fileio/test/%1", $$file) }
+
+-!win32* {
+- QMAKE_POST_LINK = ./$${TARGET}
+-}
+Index: sonic-visualiser-3.0.2/test-svcore-data-model.pro
+===================================================================
+--- sonic-visualiser-3.0.2.orig/test-svcore-data-model.pro
++++ sonic-visualiser-3.0.2/test-svcore-data-model.pro
+@@ -28,6 +28,3 @@ include(svcore/data/model/test/files.pri
+ for (file, TEST_SOURCES) { SOURCES += $$sprintf("svcore/data/model/test/%1", $$file) }
+ for (file, TEST_HEADERS) { HEADERS += $$sprintf("svcore/data/model/test/%1", $$file) }
+
+-!win32* {
+- QMAKE_POST_LINK = ./$${TARGET}
+-}
diff --git a/media-sound/sonic-visualiser/sonic-visualiser-3.0.2.ebuild b/media-sound/sonic-visualiser/sonic-visualiser-3.0.2.ebuild
new file mode 100644
index 000000000000..30abc7213afb
--- /dev/null
+++ b/media-sound/sonic-visualiser/sonic-visualiser-3.0.2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qmake-utils autotools fdo-mime
+
+DESCRIPTION="Music audio files viewer and analiser"
+HOMEPAGE="http://www.sonicvisualiser.org/"
+SRC_URI="https://code.soundsoftware.ac.uk/attachments/download/2222/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="id3tag jack mad ogg osc +portaudio pulseaudio"
+
+RDEPEND="dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtxml:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsvg:5
+ media-libs/libsndfile
+ media-libs/libsamplerate
+ app-arch/bzip2
+ >=media-libs/dssi-0.9.1
+ media-libs/liblrdf
+ media-libs/ladspa-sdk
+ media-libs/speex
+ >=media-libs/vamp-plugin-sdk-2.0
+ media-libs/rubberband
+ dev-libs/sord
+ dev-libs/serd
+ sci-libs/fftw:3.0
+ >=dev-libs/capnproto-0.6:=
+ osc? ( media-libs/liblo )
+ portaudio? ( >=media-libs/portaudio-19_pre20071207 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ mad? ( media-libs/libmad )
+ id3tag? ( media-libs/libid3tag )
+ ogg? ( media-libs/libfishsound >=media-libs/liboggz-1.1.0 )
+ pulseaudio? ( media-sound/pulseaudio )"
+
+DEPEND="${RDEPEND}
+ dev-qt/qttest:5
+ virtual/pkgconfig"
+
+REQUIRED_USE="|| ( jack pulseaudio portaudio )"
+
+sv_disable_opt() {
+ einfo "Disabling $1"
+ for i in . svapp svcore svgui ; do
+ sed -i -e "/$1/d" "${S}/$i/configure.ac" || die "failed to remove $1 support"
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/notest.patch"
+
+ use id3tag || sv_disable_opt id3tag
+ use jack || sv_disable_opt jack
+ use mad || sv_disable_opt mad
+ use ogg || sv_disable_opt fishsound
+ use ogg || sv_disable_opt oggz
+ use osc || sv_disable_opt liblo
+ use portaudio || sv_disable_opt portaudio
+ use pulseaudio || sv_disable_opt libpulse
+
+ eautoreconf
+}
+
+src_configure() {
+ export QMAKE="$(qt5_get_bindir)"/qmake
+ econf
+ eqmake5 -r sonic-visualiser.pro
+}
+
+src_test() {
+ for i in test-svcore-base test-svcore-data-fileio test-svcore-data-model ; do
+ einfo "Running ${i}"
+ ./${i} || die
+ done
+}
+
+src_install() {
+ dobin ${PN} piper-vamp-simple-server piper-convert vamp-plugin-load-checker
+ dodoc README*
+ #install samples
+ insinto /usr/share/${PN}/samples
+ doins samples/*
+ # desktop entry
+ doicon icons/sv-icon.svg
+ domenu *.desktop
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}