diff options
Diffstat (limited to 'media-sound/spek')
-rw-r--r-- | media-sound/spek/Manifest | 10 | ||||
-rw-r--r-- | media-sound/spek/files/spek-0.8.1-disable-updates.patch | 11 | ||||
-rw-r--r-- | media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch | 33 | ||||
-rw-r--r-- | media-sound/spek/files/spek-0.8.3-ffmpeg3.patch | 37 | ||||
-rw-r--r-- | media-sound/spek/files/spek-0.8.3-replace-gnu+11-with-c++11.patch | 11 | ||||
-rw-r--r-- | media-sound/spek/files/spek-0.8.3-stdlib.patch | 22 | ||||
-rw-r--r-- | media-sound/spek/metadata.xml | 12 | ||||
-rw-r--r-- | media-sound/spek/spek-0.8.3-r1.ebuild | 47 |
8 files changed, 183 insertions, 0 deletions
diff --git a/media-sound/spek/Manifest b/media-sound/spek/Manifest new file mode 100644 index 000000000000..4daa7b0edb5b --- /dev/null +++ b/media-sound/spek/Manifest @@ -0,0 +1,10 @@ +AUX spek-0.8.1-disable-updates.patch 273 SHA256 973125ff157a6b5b8f087652ba465ac30cefdb3c510a9a708de9a55b62d3e38e SHA512 90ca3adcf4fb677953ae4d7e50dc1bed62ba21e92f52dd9ec724b146244084bcde15da3317dab0feac9da522d0b3e49e5bad17c16209a3f0cc9b1b8780141040 WHIRLPOOL 21a3096cdeda443039588925938c62ddf56f7ea8b4aba58854a953ac295b9a3ce5b38f98a736ff12140149fbd380648effe2a4f6f363caefa64ced6b75cc0ef3 +AUX spek-0.8.3-ffmpeg3-1.patch 1314 SHA256 284eaf717a6998ed5b22fcc74b9046e99d2a0b79998dec9cbd3742b88896fe5b SHA512 86f3668bff3ae9475d5db10c69ebbf277c0d03b18da3a1e8abc5531c80ebd22c4124e2fa700d9dfa4afda42d3141fc5fb569e4f7f2d9be2c6986577a3285eaaa WHIRLPOOL d70b38012f541178c6c36ca1e97ea25b33e234c6683c1ad82d6145b57191b4bba9e8321b38e36e55dcca99afeda8ae1f09dd7320ba3f7cb58668a9ef75599d5b +AUX spek-0.8.3-ffmpeg3.patch 1253 SHA256 50b6139bebfb342b69c7f168a0cf0e8e2a3fa6dbd33e2afe54396b2989b6f6ba SHA512 3e56b1965e0bd07f11089c8e09af1d12f03ca34244f74703a006e5bb420cbcb9ae5f4af4e984b0735198f68b74143486bcc27f07c14dce4780b05b57fb87ed86 WHIRLPOOL 455d21773b70a51afe1605a3235bdc37628fb2334ca08a4a4230cb69ea47489ef393184b852482c4ac1a56e52a12a5b75b0dfda969cd4e224fb037eea4d27d8f +AUX spek-0.8.3-replace-gnu+11-with-c++11.patch 248 SHA256 83ed703310d93df57cf88d1d4a07c33e5e44fd1e9829936e16d4577bd59020b9 SHA512 5bb0ac9970656a03d0c7ab7ddbde59660a0b443ffda59bf3a0e9897d8705f0b49211b8fec52f218c25aa7764d646eb47c489eb7b992bc6f32c7f82382e8d17b3 WHIRLPOOL 94e9f585dca469acf3b39b608f2338423dd8123812e3cc99776724fa081df62f75f455a348091bb4cb9a9ffeb4d9f61b4955cb8e79f29f57dff533d7b2baae11 +AUX spek-0.8.3-stdlib.patch 472 SHA256 e560e20740447b9fc1b04abd04d17bcb9193bcc5696d7d8235056f22d80bb655 SHA512 d42906e7fbb0707fb8eefc3e3cc19a18c28f4af9b56995cdfa486fd3fab92c11cc313bc3b76fd115e99ada892e3191ff80f33020b0c4cc56fb26a0540b526ea4 WHIRLPOOL 6f89ef2ea375bcd50b89b09a97e551ae96ebea818ceea0bcc9d80fa2451903c6e6672eb6847a2ca2945e11c7a275817479d47acc5d308a09f4ec8d636009a126 +DIST spek-0.8.3.tar.gz 1349573 SHA256 f5c09d0062aaafe882e2e617f6d5db2ab540e2a657c1bee38260f7f0567bf175 SHA512 a4b54746316d295574bc963e650728b23b3730ee6bcc8d78b043a5678baac70a0e859870120de2b0e6a17059e9e3757075f4691e2abde98c083afc393e93e17c WHIRLPOOL f88082cbba6ca51d016034860c4908c5c94a993a9e820733f845afc97ef7af484d2d7ece9cb6c36008f1c3f9910986edf313e8e31557a97492d06baf8a2bbdfa +EBUILD spek-0.8.3-r1.ebuild 1146 SHA256 ac5de07cf648290aad7f1109919a6a151ad652ec7cc112ca4c72077e24a8de2d SHA512 82acede7bcd11c44d2c86eb9c92e6c75780f99e34db96c928e99f216c218085fd99bb03b06063b320a9cb7fc7832f5371fd9f0f8513fd696c237d26afdcf16d6 WHIRLPOOL 7230b0d9bd6c303d424d0120807e65a472d38729ea05674edae097331b1177ad5e7d3c6cedac9bad73ec679cc11be936c1e68f4137a103e983b70fb152d2bdae +MISC ChangeLog 2937 SHA256 ccfa932e6fae69f59ec91d25fd02c64221fbc9fec895d2144d5b920068a30791 SHA512 bcb019cfccddf400fcba7f74c4523283e62d89104d0cde6c30bfbea96976a7834b2317fa03c5180fe2590c7f6c475366b6e2aca5ccbfc1c70d552bca3f61b21a WHIRLPOOL 21ff4bfef81c77bc4927c0ea4f26e3974b61dd0ae5d778e0c95e75c871af29d1b30102340dcc997d6b998b474e7d6a450a743837cf68eb7140ef143975c3ee1a +MISC ChangeLog-2015 2014 SHA256 72c94da710f0df02fdb555a67924288fcead297f2b703d979b3a0267afb0edee SHA512 d87ff4c741ed00dcb522ac4df220b01c20559a6aa6631c52dcff9ee6a1c3462f0da52e5db4e24c691a478468a77b6c88d884a8885fff48b211f83e68e17831bb WHIRLPOOL f44d3548b3c5ca981b7e4ef8d56081d70b4ae93c03d24190eff8c5e1d9df5a5bf2236b071aabbefc03d2e2124aad29f8d506bdd0629787b4bc268b1dabdeada1 +MISC metadata.xml 369 SHA256 31213ae819bbbc20afb271f0c9fcdefe9763be87e6d0a2673a2a3cf6402d3845 SHA512 004106612127320eb7094fbf59b4e0dda0eba73520c37e54094439a27c1bfe2705f2f89183712ac9bbebc268c625c407ecb0ab628ab598f8f1c7b30ec1fbde14 WHIRLPOOL 460805bcd4b16dec411bc461608dc1d14ff23eaeaf76233ba1947b3ce4f3dff1a6795218da9846a1251ae3ee134ceb2f0103b5faae677487c63cebd2e0c7290f diff --git a/media-sound/spek/files/spek-0.8.1-disable-updates.patch b/media-sound/spek/files/spek-0.8.1-disable-updates.patch new file mode 100644 index 000000000000..e035a4c60819 --- /dev/null +++ b/media-sound/spek/files/spek-0.8.1-disable-updates.patch @@ -0,0 +1,11 @@ +--- spek-0.8.1/src/spek-preferences.cc ++++ spek-0.8.1/src/spek-preferences.cc +@@ -62,7 +62,7 @@ + + bool SpekPreferences::get_check_update() + { +- bool result = true; ++ bool result = false; + this->config->Read(wxT("/update/check"), &result); + return result; + } diff --git a/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch b/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch new file mode 100644 index 000000000000..dee0e3ca0f8f --- /dev/null +++ b/media-sound/spek/files/spek-0.8.3-ffmpeg3-1.patch @@ -0,0 +1,33 @@ +https://github.com/alexkay/spek/commit/ee8bc49ed4a93a14a933ecb0eebfe424111f8413 + +Index: spek-0.8.3/src/spek-audio.cc +=================================================================== +--- spek-0.8.3.orig/src/spek-audio.cc ++++ spek-0.8.3/src/spek-audio.cc +@@ -202,7 +202,7 @@ AudioFileImpl::AudioFileImpl( + this->packet.data = nullptr; + this->packet.size = 0; + this->offset = 0; +- this->frame = avcodec_alloc_frame(); ++ this->frame = av_frame_alloc(); + this->buffer_size = 0; + this->buffer = nullptr; + this->frames_per_interval = 0; +@@ -218,7 +218,7 @@ AudioFileImpl::~AudioFileImpl() + if (this->frame) { + // TODO: Remove this check after Debian switches to libav 9. + #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 28, 0) +- avcodec_free_frame(&this->frame); ++ av_frame_free(&this->frame); + #else + av_freep(&this->frame); + #endif +@@ -258,7 +258,7 @@ int AudioFileImpl::read() + + for (;;) { + while (this->packet.size > 0) { +- avcodec_get_frame_defaults(this->frame); ++ av_frame_unref(this->frame); + auto codec_context = this->format_context->streams[this->audio_stream]->codec; + int got_frame = 0; + int len = avcodec_decode_audio4(codec_context, this->frame, &got_frame, &this->packet); diff --git a/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch b/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch new file mode 100644 index 000000000000..ad82a38c31c5 --- /dev/null +++ b/media-sound/spek/files/spek-0.8.3-ffmpeg3.patch @@ -0,0 +1,37 @@ +commit 1ef950dcbf89dd8adf816009b54009f487828a45 +Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> +Date: Sun Mar 27 14:19:42 2016 -0700 + + Replace deprecated FFmpeg API + +diff --git a/src/spek-audio.cc b/src/spek-audio.cc +index b7633bc..21ea7a4 100644 +--- a/src/spek-audio.cc ++++ b/src/spek-audio.cc +@@ -222,7 +222,7 @@ AudioFileImpl::~AudioFileImpl() + this->packet.data -= this->offset; + this->packet.size += this->offset; + this->offset = 0; +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + if (this->format_context) { + if (this->audio_stream >= 0) { +@@ -326,7 +326,7 @@ int AudioFileImpl::read() + this->packet.data -= this->offset; + this->packet.size += this->offset; + this->offset = 0; +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + + int res = 0; +@@ -334,7 +334,7 @@ int AudioFileImpl::read() + if (this->packet.stream_index == this->audio_stream) { + break; + } +- av_free_packet(&this->packet); ++ av_packet_unref(&this->packet); + } + if (res < 0) { + // End of file or error. diff --git a/media-sound/spek/files/spek-0.8.3-replace-gnu+11-with-c++11.patch b/media-sound/spek/files/spek-0.8.3-replace-gnu+11-with-c++11.patch new file mode 100644 index 000000000000..624e969dba4a --- /dev/null +++ b/media-sound/spek/files/spek-0.8.3-replace-gnu+11-with-c++11.patch @@ -0,0 +1,11 @@ +--- spek-0.8.3/configure.ac ++++ spek-0.8.3/configure.ac +@@ -6,7 +6,7 @@ + + AC_LANG([C++]) + AC_PROG_CXX +-CXXFLAGS="$CXXFLAGS -std=gnu++11 -Wall -Wextra" ++CXXFLAGS="$CXXFLAGS -std=c++11 -Wall -Wextra" + AC_PROG_CXXCPP + AC_PROG_RANLIB + AC_PROG_INSTALL diff --git a/media-sound/spek/files/spek-0.8.3-stdlib.patch b/media-sound/spek/files/spek-0.8.3-stdlib.patch new file mode 100644 index 000000000000..c0ffa16b4d52 --- /dev/null +++ b/media-sound/spek/files/spek-0.8.3-stdlib.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/519450 + +--- spek-0.8.3/src/spek-fft.cc ++++ spek-0.8.3/src/spek-fft.cc +@@ -17,6 +17,7 @@ + */ + + #include <math.h> ++#include <stdlib.h> + + #define __STDC_CONSTANT_MACROS + extern "C" { +--- spek-0.8.3/src/spek-events.cc ++++ spek-0.8.3/src/spek-events.cc +@@ -16,6 +16,7 @@ + * along with Spek. If not, see <http://www.gnu.org/licenses/>. + */ + ++#include <stdlib.h> + #include "spek-events.h" + + //IMPLEMENT_DYNAMIC_CLASS(SpekHaveSampleEvent, wxEvent) diff --git a/media-sound/spek/metadata.xml b/media-sound/spek/metadata.xml new file mode 100644 index 000000000000..b809ea2b22b0 --- /dev/null +++ b/media-sound/spek/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <upstream> + <remote-id type="google-code">spek</remote-id> + <remote-id type="github">alexkay/spek</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-sound/spek/spek-0.8.3-r1.ebuild b/media-sound/spek/spek-0.8.3-r1.ebuild new file mode 100644 index 000000000000..8c09e95c5562 --- /dev/null +++ b/media-sound/spek/spek-0.8.3-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +WX_GTK_VER="3.0" + +inherit autotools eutils toolchain-funcs wxwidgets + +DESCRIPTION="Analyse your audio files by showing their spectrogram" +HOMEPAGE="http://www.spek-project.org/" +SRC_URI="https://github.com/alexkay/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libav" + +RDEPEND=" + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:0= ) + x11-libs/wxGTK:${WX_GTK_VER}[X] +" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + >=sys-devel/gcc-4.7 + sys-devel/gettext +" + +src_prepare() { + need-wxwidgets unicode + + if [ $(gcc-major-version) -lt "4" ] ; then + die "You need to activate at least gcc:4.7" + fi + if [ $(gcc-major-version) -eq "4" -a $(gcc-minor-version) -lt "7" ] ; then + die "You need to activate at least gcc:4.7" + fi + + epatch \ + "${FILESDIR}"/${PN}-0.8.1-disable-updates.patch \ + "${FILESDIR}"/${P}-replace-gnu+11-with-c++11.patch \ + "${FILESDIR}"/${P}-stdlib.patch \ + "${FILESDIR}"/${P}-ffmpeg3.patch \ + "${FILESDIR}"/${P}-ffmpeg3-1.patch + eautoreconf +} |