-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
WANT_LIBTOOL=none
-inherit autotools eutils gnome2-utils git-r3
+inherit cmake-utils gnome2-utils git-r3
DESCRIPTION="Volume mixer for the system tray"
HOMEPAGE="https://github.com/nicklan/pnmixer"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
-IUSE="debug libnotify"
+IUSE="libnotify"
RDEPEND="dev-libs/glib:2
media-libs/alsa-lib
- >=x11-libs/gtk+-3.6:3
+ >=x11-libs/gtk+-3.12:3
x11-libs/libX11
libnotify? ( x11-libs/libnotify )"
DEPEND="${RDEPEND}
- dev-util/intltool
+ sys-devel/gettext
virtual/pkgconfig"
-src_prepare() {
- eautoreconf
-}
-
src_configure() {
- econf \
- $(use_with libnotify) \
- $(use_enable debug) \
- --enable-minimal-flags \
- --with-gtk3
+ local mycmakeargs=(
+ -DWITH_LIBNOTIFY="$(usex libnotify)"
+ )
+
+ cmake-utils_src_configure
}
pkg_preinst() {