summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-12-28 15:15:38 +0100
committerDavid Seifert <soap@gentoo.org>2020-12-28 15:15:38 +0100
commitef3a89f0fd63f5515029bdb7c55be88716578cc4 (patch)
treefce429b7577b163ffb506a1bf1f3c32eb821121a /media-sound
parentdev-util/dwdiff: Drop old (diff)
downloadgentoo-ef3a89f0fd63f5515029bdb7c55be88716578cc4.tar.gz
gentoo-ef3a89f0fd63f5515029bdb7c55be88716578cc4.tar.bz2
gentoo-ef3a89f0fd63f5515029bdb7c55be88716578cc4.zip
media-sound/tap-reverbed: Port to EAPI 7
Closes: https://bugs.gentoo.org/707858 Package-Manager: Portage-3.0.9, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch65
-rw-r--r--media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild24
2 files changed, 79 insertions, 10 deletions
diff --git a/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch b/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch
new file mode 100644
index 000000000000..c01461f62f09
--- /dev/null
+++ b/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch
@@ -0,0 +1,65 @@
+--- a/src/ports.c
++++ b/src/ports.c
+@@ -37,6 +37,16 @@
+ #define LIST_WIDTH 200
+ #define LIST_HEIGHT 100
+
++extern unsigned long sample_rate;
++extern jack_client_t * client;
++extern const char ** ports_in;
++extern const char ** ports_out;
++
++extern jack_port_t * in_L_port;
++extern jack_port_t * in_R_port;
++extern jack_port_t * out_L_port;
++extern jack_port_t * out_R_port;
++
+
+ extern GtkWidget * ports_button;
+
+--- a/src/sound.c
++++ b/src/sound.c
+@@ -44,6 +44,16 @@
+ */
+ /* #define REVERBED_CALC_FLOAT */
+
++unsigned long sample_rate;
++jack_client_t * client;
++const char ** ports_in;
++const char ** ports_out;
++
++jack_port_t * in_L_port;
++jack_port_t * in_R_port;
++jack_port_t * out_L_port;
++jack_port_t * out_R_port;
++
+
+ extern int client_running;
+ extern REVTYPE * curr;
+--- a/src/sound.h
++++ b/src/sound.h
+@@ -24,15 +24,15 @@
+
+
+
+-unsigned long sample_rate;
+-jack_client_t * client;
+-const char ** ports_in;
+-const char ** ports_out;
+-
+-jack_port_t * in_L_port;
+-jack_port_t * in_R_port;
+-jack_port_t * out_L_port;
+-jack_port_t * out_R_port;
++extern unsigned long sample_rate;
++extern jack_client_t * client;
++extern const char ** ports_in;
++extern const char ** ports_out;
++
++extern jack_port_t * in_L_port;
++extern jack_port_t * in_R_port;
++extern jack_port_t * out_L_port;
++extern jack_port_t * out_R_port;
+
+ void comp_coeffs(void);
+ void load_revtype_data(void);
diff --git a/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild b/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild
index cb0e9050ffb5..94d080247bed 100644
--- a/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild
+++ b/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit autotools
@@ -13,17 +13,21 @@ SRC_URI="mirror://sourceforge/tap-plugins/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-RDEPEND="media-libs/ladspa-sdk
+RDEPEND="
+ media-libs/ladspa-sdk
media-plugins/tap-plugins
- x11-libs/gtk+:2
- media-sound/jack-audio-connection-kit"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+ media-sound/jack-audio-connection-kit
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
-S=${WORKDIR}/${MY_P}
-PATCHES=( "${FILESDIR}/${PN}-flags.patch" )
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-flags.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+)
src_prepare() {
default