commit:     eaf5fd1dd1132d0b90f13a091651d201f7bfb8a4
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 10 19:57:58 2022 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Feb 10 19:58:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf5fd1d

media-sound/ncmpc: bump to 0.46

Thanks to Thomas Gstaedtner <thomas <AT> gstaedtner.net>

Closes: https://bugs.gentoo.org/832959
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-sound/ncmpc/Manifest          |  1 +
 media-sound/ncmpc/ncmpc-0.46.ebuild | 67 +++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/media-sound/ncmpc/Manifest b/media-sound/ncmpc/Manifest
index c03d512f6bc9..4e4125298d60 100644
--- a/media-sound/ncmpc/Manifest
+++ b/media-sound/ncmpc/Manifest
@@ -1 +1,2 @@
 DIST ncmpc-0.39.tar.xz 242968 BLAKE2B 
1b270ed52aa884cecd3e1ce60bb2ed628ef79480697f388b48a09e0f22068dbbb7623b01171e5cfae9556446e404530f93c84ca3c3d5cc481c8431f37786c2f4
 SHA512 
bfadc58bf8b66bff08608f561f689a50fd412b87975998ce23751fd312fa009eeba4b48b4afe96391b2ecb184c00c366262e9b96e24d2ce2ab2af6a4002721d9
+DIST ncmpc-0.46.tar.xz 289332 BLAKE2B 
e57a931f5a512c543d48a9b6e532c7944e655d28d02fe9ec2b5b41563e2e6a5806924a668ae592f3fee58a2bb04a681fee0903b8046a61ce39a453092dfd8623
 SHA512 
34cbb9ff527bfa4d849069694b6d1a1e54c932b64538e799c9ef9b9ccc42ed24932b6bcbf3552af6ce846af6b7399916e1aabc6c79ac564f1c9fe56a33b6332f

diff --git a/media-sound/ncmpc/ncmpc-0.46.ebuild 
b/media-sound/ncmpc/ncmpc-0.46.ebuild
new file mode 100644
index 000000000000..5b504c08d694
--- /dev/null
+++ b/media-sound/ncmpc/ncmpc-0.46.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="Ncurses client for the Music Player Daemon (MPD)"
+HOMEPAGE="https://www.musicpd.org/clients/ncmpc/ 
https://github.com/MusicPlayerDaemon/ncmpc";
+SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="async-connect chat-screen doc +help-screen key-screen +library-screen 
lirc lyrics-screen +mouse nls outputs-screen pcre search-screen +song-screen"
+
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( dev-python/sphinx )
+"
+RDEPEND="
+       >=media-libs/libmpdclient-2.9
+       sys-libs/ncurses:=[unicode(+)]
+       lirc? ( app-misc/lirc )
+       pcre? ( dev-libs/libpcre2 )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+
+       # use correct docdir and don't install license file
+       sed -e "/^docdir =/s/meson.project_name()/'${PF}'/" \
+               -e "s/'COPYING', //" \
+               -i meson.build || die
+
+       # use correct (html) docdir
+       sed -e "/install_dir:.*doc/s/meson.project_name()/'${PF}'/" \
+               -i doc/meson.build || die
+}
+
+src_configure() {
+       local emesonargs=(
+               -Dcurses=ncursesw
+               -Dcolors=true
+               -Dmini=false
+               -Dlyrics_plugin_dir="${EPREFIX}/usr/$(get_libdir)/ncmpc/lyrics"
+               -Dasync_connect=$(usex async-connect true false)
+               -Dchat_screen=$(usex chat-screen true false)
+               -Ddocumentation=$(usex doc enabled disabled)
+               -Dhelp_screen=$(usex help-screen true false)
+               -Dkey_screen=$(usex key-screen true false)
+               -Dlibrary_screen=$(usex library-screen true false)
+               -Dlirc=$(usex lirc enabled disabled)
+               -Dlocale=$(usex nls enabled disabled)
+               -Dlyrics_screen=$(usex lyrics-screen true false)
+               -Dmouse=$(usex mouse enabled disabled)
+               -Dmultibyte=$(usex nls true false)
+               -Dnls=$(usex nls enabled disabled)
+               -Doutputs_screen=$(usex outputs-screen true false)
+               -Dregex=$(usex pcre enabled disabled)
+               -Dsearch_screen=$(usex search-screen true false)
+               -Dsong_screen=$(usex song-screen true false)
+       )
+
+       meson_src_configure
+}

Reply via email to