commit:     ef3a89f0fd63f5515029bdb7c55be88716578cc4
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Mon Dec 28 14:15:38 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 28 14:15:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3a89f0

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 <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/tap-reverbed-0-fno-common.patch          | 65 ++++++++++++++++++++++
 media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild  | 24 ++++----
 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 00000000000..c01461f62f0
--- /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 cb0e9050ffb..94d080247be 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

Reply via email to