x11-plugins/gkrellm-volume: Eclass update
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 22:34:33 +0000 (23:34 +0100)
committerDavid Seifert <soap@gentoo.org>
Thu, 4 Jan 2018 09:16:07 +0000 (10:16 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

x11-plugins/gkrellm-volume/gkrellm-volume-2.1.13-r2.ebuild

index db88433d0fe025a69516f2029ecc00e4d523e0bc..208a9d80056fd3d4ca4b8883fc62ac4db84a1368 100644 (file)
@@ -1,7 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
+
 inherit gkrellm-plugin toolchain-funcs
 
 DESCRIPTION="A mixer control plugin for gkrellm"
@@ -13,22 +14,20 @@ SLOT="2"
 KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
 IUSE="alsa"
 
-DEPEND="alsa? ( media-libs/alsa-lib )"
-RDEPEND="${DEPEND}
-       app-admin/gkrellm[X]
-"
-
-S="${WORKDIR}/${PN}"
-
-PLUGIN_SO="volume.so"
+RDEPEND="
+       app-admin/gkrellm:2[X]
+       alsa? ( media-libs/alsa-lib )"
+DEPEND="${RDEPEND}"
 
+S=${WORKDIR}/${PN}
 PATCHES=(
        "${FILESDIR}/${P}-reenable.patch"
        "${FILESDIR}/${P}-makefile.patch"
 )
 
+PLUGIN_SO=( volume$(get_modname) )
+
 src_compile() {
-       local myconf=""
-       use alsa && myconf="${myconf} enable_alsa=1"
-       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" "${myconf}"
+       use alsa && local myconf="enable_alsa=1"
+       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" ${myconf}
 }