media-sound/alsamixergui: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 23:48:52 +0000 (00:48 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 23:48:52 +0000 (00:48 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild
media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch
media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch
media-sound/alsamixergui/files/segfault-on-exit.patch

index 2a3d2ac79e918d141c4ba9a6b303fed34fe365f3..bca2f9d1f9959bc6d3a6139bcd3c87d860ee7ee1 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit autotools eutils flag-o-matic
+EAPI=7
+
+inherit autotools desktop flag-o-matic
 
 MY_P=${PN}-0.9.0rc1-2
 
@@ -15,32 +16,34 @@ SLOT="0"
 KEYWORDS="amd64 arm ppc ppc64 sparc x86"
 IUSE=""
 
-RDEPEND="media-libs/alsa-lib
+RDEPEND="
+       media-libs/alsa-lib:=
        media-sound/alsa-utils
        x11-libs/fltk:1"
 DEPEND="${RDEPEND}"
 
-S=${WORKDIR}/${MY_P}
-
-DOCS=( AUTHORS ChangeLog README )
+S="${WORKDIR}/${MY_P}"
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc34.patch
+       "${FILESDIR}"/segfault-on-exit.patch
+       "${FILESDIR}"/${P}-fltk-1.1.patch
+)
 
 src_prepare() {
-       epatch \
-               "${FILESDIR}"/${P}-gcc34.patch \
-               "${FILESDIR}"/segfault-on-exit.patch \
-               "${FILESDIR}"/${P}-fltk-1.1.patch
-
+       default
+       mv configure.{in,ac} || die
        eautoreconf
 }
 
 src_configure() {
-       append-ldflags "-L$(dirname $(fltk-config --libs))"
-       append-flags "-I$(fltk-config --includedir)"
+       append-libs "-L$(dirname $(fltk-config --libs))"
+       append-cppflags "-I$(fltk-config --includedir)"
        econf
 }
 
 src_install() {
        default
+
        newicon src/images/alsalogo.xpm ${PN}.xpm
        make_desktop_entry ${PN} "Alsa Mixer GUI"
 }
index a7c121dbc9d1974ccfd4282afc450d8e53debed8..8c65014198598534747744cd9eee24a269d92f9f 100644 (file)
@@ -1,5 +1,5 @@
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -11,11 +11,11 @@
  AC_PROG_LN_S
  
index 6f37970aa568ed10245415d8ae07ffbef0c629e6..a17452cbbe49da30d0c562ecb564a3554eede38e 100644 (file)
@@ -1,5 +1,5 @@
---- src/alsamixer.cxx
-+++ src/alsamixer.cxx
+--- a/src/alsamixer.cxx
++++ b/src/alsamixer.cxx
 @@ -654,7 +654,7 @@
        if (joined) {
  #ifdef ALSAMIXER_GUI
index 6dc2feb8cc581b5e02decdd31a6ac518db8a7229..f2106d088416616939ec9f524ed6e4835aea77ae 100644 (file)
@@ -1,5 +1,5 @@
---- src/alsamixer.cxx
-+++ src/alsamixer.cxx
+--- a/src/alsamixer.cxx
++++ b/src/alsamixer.cxx
 @@ -1869,7 +1869,7 @@
                        if (procWindow) delete procWindow;
                        if (mainWindow) delete mainWindow;