media-sound/mhwaveedit: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 12:10:55 +0000 (13:10 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 12:10:55 +0000 (13:10 +0100)
* Fix missing include

Closes: https://bugs.gentoo.org/490574
Closes: https://bugs.gentoo.org/699914
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/mhwaveedit/files/mhwaveedit-1.4.23-missing-include.patch [new file with mode: 0644]
media-sound/mhwaveedit/mhwaveedit-1.4.23.ebuild

diff --git a/media-sound/mhwaveedit/files/mhwaveedit-1.4.23-missing-include.patch b/media-sound/mhwaveedit/files/mhwaveedit-1.4.23-missing-include.patch
new file mode 100644 (file)
index 0000000..6da9db1
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/sound-pulse.c
++++ b/src/sound-pulse.c
+@@ -21,6 +21,7 @@
+ #include <poll.h>
+ #include <pulse/pulseaudio.h>
++#include "int_box.h"
+ #ifndef PA_CHECK_VERSION
+ #define PA_CHECK_VERSION(a,b,c) (0)
index 4ed52f0b3b5355cb2c3d93824b5f66d077e443e7..c6117c93bd72a10ffbb19484f4cab2a53e81e988 100644 (file)
@@ -1,35 +1,37 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 DESCRIPTION="GTK+ Sound file editor (wav, and a few others.)"
-HOMEPAGE="https://gna.org/projects/mhwaveedit"
-SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2"
+HOMEPAGE="https://github.com/magnush/mhwaveedit/"
+SRC_URI="https://github.com/magnush/mhwaveedit/${PN}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
 IUSE="alsa jack ladspa libsamplerate nls oss pulseaudio sdl sndfile sox"
 
-RDEPEND="x11-libs/gtk+:2
+RDEPEND="
+       x11-libs/gtk+:2
        x11-libs/pango
-       sndfile? ( >=media-libs/libsndfile-1.0.10 )
-       sdl? ( >=media-libs/libsdl-1.2.3 )
-       alsa? ( media-libs/alsa-lib )
-       jack? ( >=media-sound/jack-audio-connection-kit-0.98 )
-       libsamplerate? ( media-libs/libsamplerate )
+       sndfile? ( media-libs/libsndfile:= )
+       sdl? ( media-libs/libsdl:= )
+       alsa? ( media-libs/alsa-lib:= )
+       jack? ( virtual/jack )
+       libsamplerate? ( media-libs/libsamplerate:= )
        ladspa? ( media-libs/ladspa-sdk )
-       pulseaudio? ( >=media-sound/pulseaudio-0.9.10 )
-       sox? ( media-sound/sox )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+       pulseaudio? ( media-sound/pulseaudio )
+       sox? ( media-sound/sox:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
-DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
+PATCHES=( "${FILESDIR}"/${PN}-1.4.23-missing-include.patch )
 
 src_configure() {
        econf \
                --without-arts \
+               --without-esound \
                --without-portaudio \
                $(use_enable nls) \
                $(use_with sndfile libsndfile) \
@@ -38,6 +40,5 @@ src_configure() {
                $(use_with alsa alsalib) \
                $(use_with oss) \
                $(use_with jack) \
-               $(use_with pulseaudio pulse) \
-               --without-esound
+               $(use_with pulseaudio pulse)
 }