media-sound/pamix: Upstream now uses cmake instead of autotools.
authorLars Wendler <polynomial-c@gentoo.org>
Sat, 30 Dec 2017 23:12:28 +0000 (00:12 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sat, 30 Dec 2017 23:12:28 +0000 (00:12 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

media-sound/pamix/pamix-9999.ebuild

index 05816380caad1b0039a5475ac7acc9cb2d4256b3..acdf22771d05b0ca97261a5ce904894e04058950 100644 (file)
@@ -5,7 +5,7 @@ EAPI=6
 
 SCM=""
 [[ "${PV}" == 9999 ]] && SCM="git-r3"
-inherit autotools ${SCM}
+inherit cmake-utils ${SCM}
 unset SCM
 
 DESCRIPTION="A PulseAudio NCurses mixer"
@@ -30,9 +30,15 @@ DEPEND="sys-devel/autoconf-archive
 
 src_prepare() {
        default
-       eautoreconf
+
+       # ugly hackaround for split tinfo ncurses libs
+       sed '/link_libraries.*ncurses/s@\(")\)@" "tinfo\1@' \
+               -i CMakeLists.txt || die
 }
 
 src_configure() {
-       econf $(use_enable unicode)
+       local mycmakeargs=(
+               -DWITH_UNICODE="$(usex unicode)"
+       )
+       cmake-utils_src_configure
 }