media-sound/ncmpcpp: Depend on dev-libs/icu:=
authorJeroen Roovers <jer@gentoo.org>
Wed, 3 Apr 2019 09:16:19 +0000 (11:16 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 3 Apr 2019 09:16:55 +0000 (11:16 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
media-sound/ncmpcpp/ncmpcpp-0.8.2-r1.ebuild [new file with mode: 0644]
media-sound/ncmpcpp/ncmpcpp-9999.ebuild

diff --git a/media-sound/ncmpcpp/ncmpcpp-0.8.2-r1.ebuild b/media-sound/ncmpcpp/ncmpcpp-0.8.2-r1.ebuild
new file mode 100644 (file)
index 0000000..50bc9b2
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="featureful ncurses based MPD client inspired by ncmpc"
+HOMEPAGE="https://rybczak.net/ncmpcpp/"
+SRC_URI="${HOMEPAGE}stable/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="clock icu outputs taglib visualizer"
+
+RDEPEND="
+       !dev-libs/boost:0/1.57.0
+       >=media-libs/libmpdclient-2.1
+       dev-libs/boost:=[icu?,nls,threads]
+       net-misc/curl
+       sys-libs/ncurses:=
+       sys-libs/readline:*
+       icu? ( dev-libs/icu:= )
+       taglib? ( media-libs/taglib )
+       visualizer? ( sci-libs/fftw:3.0= )
+"
+DEPEND="
+       ${RDEPEND}
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       default
+
+       sed -i -e '/^docdir/d' {,doc/}Makefile{.am,.in} || die
+       sed -i -e 's|COPYING||g' Makefile{.am,.in} || die
+}
+
+src_configure() {
+       econf \
+               $(use_enable clock) \
+               $(use_enable outputs) \
+               $(use_enable visualizer) \
+               $(use_with taglib) \
+               $(use_with visualizer fftw) \
+               --docdir=/usr/share/doc/${PF}
+}
+
+src_install() {
+       default
+
+       dodoc doc/{bindings,config}
+}
+
+pkg_postinst() {
+       echo
+       elog "Example configuration files have been installed at"
+       elog "${ROOT}usr/share/doc/${PF}"
+       elog "${P} uses ~/.ncmpcpp/config and ~/.ncmpcpp/bindings"
+       elog "as user configuration files."
+       echo
+       if use visualizer; then
+       elog "If you want to use the visualizer, you need mpd with fifo enabled."
+       echo
+       fi
+}
index 78f586c9c78ecce3e4312f9d4652a4e182b958d3..32c52125a422fa352749fa9c1ca5d22bb816f36f 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 inherit autotools git-r3
 
 DESCRIPTION="featureful ncurses based MPD client inspired by ncmpc"
@@ -20,7 +20,7 @@ RDEPEND="
        net-misc/curl
        sys-libs/ncurses:=
        sys-libs/readline:*
-       icu? ( dev-libs/icu )
+       icu? ( dev-libs/icu:= )
        taglib? ( media-libs/taglib )
        visualizer? ( sci-libs/fftw:3.0= )
 "