1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="featureful ncurses based MPD client inspired by ncmpc"
7 HOMEPAGE="https://rybczak.net/ncmpcpp/"
8 SRC_URI="https://rybczak.net/ncmpcpp/stable/${P}.tar.bz2"
12 KEYWORDS="amd64 arm ppc ppc64 ~sparc x86"
13 IUSE="clock curl outputs taglib visualizer"
16 !dev-libs/boost:0/1.57.0
17 >=media-libs/libmpdclient-2.1
19 dev-libs/boost:=[nls,threads]
21 sys-libs/ncurses:=[unicode]
23 curl? ( net-misc/curl )
24 taglib? ( media-libs/taglib )
25 visualizer? ( sci-libs/fftw:3.0= )
28 BDEPEND="virtual/pkgconfig"
30 # https://github.com/ncmpcpp/ncmpcpp/pull/385
31 PATCHES=( "${FILESDIR}/${PN}-0.8.2-gcc10.patch" )
36 sed -i -e '/^docdir/d' {,doc/}Makefile{.am,.in} || die
37 sed -i -e 's|COPYING||g' Makefile{.am,.in} || die
43 $(use_enable outputs) \
44 $(use_enable visualizer) \
47 $(use_with visualizer fftw) \
54 dodoc doc/{bindings,config}
59 elog "Example configuration files have been installed at"
60 elog "${EROOT}/usr/share/doc/${PF}"
61 elog "${P} uses ~/.ncmpcpp/config and ~/.ncmpcpp/bindings"
62 elog "as user configuration files."
64 if use visualizer; then
65 elog "If you want to use the visualizer, you need mpd with fifo enabled."