summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-12-11 00:48:52 +0100
committerDavid Seifert <soap@gentoo.org>2019-12-11 00:48:52 +0100
commit1253c252ba356a624323718c0f7c120f1310275d (patch)
tree5500ad26900dd85566d7074d23221db44e8ccc2b /media-sound/alsamixergui
parentmedia-sound/retrovol: Port to EAPI 7 (diff)
downloadgentoo-1253c252ba356a624323718c0f7c120f1310275d.tar.gz
gentoo-1253c252ba356a624323718c0f7c120f1310275d.tar.bz2
gentoo-1253c252ba356a624323718c0f7c120f1310275d.zip
media-sound/alsamixergui: Port to EAPI 7
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/alsamixergui')
-rw-r--r--media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild31
-rw-r--r--media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch4
-rw-r--r--media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch4
-rw-r--r--media-sound/alsamixergui/files/segfault-on-exit.patch4
4 files changed, 23 insertions, 20 deletions
diff --git a/media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild b/media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild
index 2a3d2ac79e91..bca2f9d1f995 100644
--- a/media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild
+++ b/media-sound/alsamixergui/alsamixergui-0.9.0.1.2-r4.ebuild
@@ -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"
}
diff --git a/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch b/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch
index a7c121dbc9d1..8c6501419859 100644
--- a/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch
+++ b/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-fltk-1.1.patch
@@ -1,5 +1,5 @@
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -11,11 +11,11 @@
AC_PROG_LN_S
diff --git a/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch b/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch
index 6f37970aa568..a17452cbbe49 100644
--- a/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch
+++ b/media-sound/alsamixergui/files/alsamixergui-0.9.0.1.2-gcc34.patch
@@ -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
diff --git a/media-sound/alsamixergui/files/segfault-on-exit.patch b/media-sound/alsamixergui/files/segfault-on-exit.patch
index 6dc2feb8cc58..f2106d088416 100644
--- a/media-sound/alsamixergui/files/segfault-on-exit.patch
+++ b/media-sound/alsamixergui/files/segfault-on-exit.patch
@@ -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;