commit:     ac60ccf3bb0cc82933ed3d3307486367ea3e668e
Author:     Guilherme Parente <guilheparente <AT> gmail <DOT> com>
AuthorDate: Thu Nov 20 03:57:50 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Nov 21 08:44:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac60ccf3

media-sound/ncspot: add 1.3.2

Signed-off-by: Guilherme Parente <guilheparente <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44681
Closes: https://github.com/gentoo/gentoo/pull/44681
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-sound/ncspot/Manifest            |  2 +
 media-sound/ncspot/ncspot-1.3.2.ebuild | 98 ++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/media-sound/ncspot/Manifest b/media-sound/ncspot/Manifest
index edf199c96942..a2871e68871e 100644
--- a/media-sound/ncspot/Manifest
+++ b/media-sound/ncspot/Manifest
@@ -1,2 +1,4 @@
 DIST ncspot-1.3.1-crates.tar.xz 48374072 BLAKE2B 
695788d54d0d1080bd4f0b5212554821af1a60450211567fdb0b07c154e932df0f637f9b1b17f0d6016b86a394c3f7fa72657a4170c4df1e71c34d2467451367
 SHA512 
d0ad84a49526b0aa872e66458c72f146de430401eff409c6611e5b490cbd345dd10723c328e0c4bead899db718315377310b9307f8c9c57cd9ee1b1fabf72fe7
 DIST ncspot-1.3.1.tar.gz 260161 BLAKE2B 
f5db7ed8b739538519846f8daf287235b4b90eb03e9df27ceeb4a005a7e1e64e582f5c7d3daae5d56734737f1b3a706bb3cb8af04f80b40c9f5651faea2b2f30
 SHA512 
48e303c896f537aea5c09512750051173cc695aae24ab79391d07e32815e1d86a2e68170d1602cfb75252b29b36661070e608bfc74a464b00ec32288e1ae250b
+DIST ncspot-1.3.2-crates.tar.xz 47566524 BLAKE2B 
910ef62b9a4f7854b9dedb839dc772e5205f305125df74e9412f207579f1f2cc786a34a4298daddc3f10fac9ec182537c9947388abc520f7ced0a1c1f5c03a46
 SHA512 
c98e3f335e229bd62e16c2ab40103f455450359096a05c6e59c8cf0cc90dd37c2d1b556752e537699fe6f5c4670560e9521eb7d1953c17eb4f4b2a4ec6b199ca
+DIST ncspot-1.3.2.tar.gz 260352 BLAKE2B 
f2d5c8ceb571bb20e53f1ac0fe740be927fe29227c50b2de32d17952e632e935c4a4706e1d537dc3da40bb8dcd539b7ff56ec4652a7a5e8fb057eb626af66b1e
 SHA512 
8119ff045a71ed3a139699fafc8b0963d06c468464c999a93ed73ce4a2848145d0f5e06a2129a22d8c3c7e87b6d700d34d097e22ed942af29e61a142123a529d

diff --git a/media-sound/ncspot/ncspot-1.3.2.ebuild 
b/media-sound/ncspot/ncspot-1.3.2.ebuild
new file mode 100644
index 000000000000..e83b8484b39d
--- /dev/null
+++ b/media-sound/ncspot/ncspot-1.3.2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+PYTHON_COMPAT=( python3_{11..14} )
+
+RUST_MIN_VER="1.85.0"
+
+inherit bash-completion-r1 cargo desktop optfeature python-any-r1 
shell-completion xdg
+
+DESCRIPTION="ncurses Spotify client written in Rust using librespot"
+HOMEPAGE="https://github.com/hrkfdn/ncspot";
+SRC_URI="https://github.com/hrkfdn/ncspot/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz";
+
+LICENSE="BSD-2"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="clipboard cover mpris ncurses +notify pulseaudio"
+
+RDEPEND="dev-libs/openssl:=
+       sys-apps/dbus
+       clipboard? ( x11-libs/libxcb:= )
+       cover? (
+               || (
+                       media-gfx/ueberzug
+                       media-gfx/ueberzugpp
+               )
+       )
+       ncurses? ( sys-libs/ncurses:= )
+       pulseaudio? ( media-libs/libpulse )
+       !pulseaudio? ( media-libs/alsa-lib )"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}
+       virtual/pkgconfig"
+
+QA_FLAGS_IGNORED="/usr/bin/ncspot"
+
+pkg_setup() {
+       python-any-r1_pkg_setup
+       rust_pkg_setup
+}
+
+src_configure() {
+       local myfeaturesdef=""
+
+       use clipboard && myfeaturesdef+="share_clipboard,share_selection,"
+       use cover && myfeaturesdef+="cover,"
+       use mpris && myfeaturesdef+="mpris,"
+       use ncurses && myfeaturesdef+="ncurses_backend,"
+       use notify && myfeaturesdef+="notify,"
+
+       # It always seems to link to libpulse regardless of this setting if 
libpulse is installed.
+       if use pulseaudio; then
+         myfeaturesdef+="pulseaudio_backend,"
+       else
+         myfeaturesdef+="alsa_backend,"
+       fi
+
+       local myfeatures=( "${myfeaturesdef::-1}" )
+
+       cargo_src_configure --no-default-features
+}
+
+src_compile() {
+       cargo_src_compile
+
+       cargo xtask generate-shell-completion || die
+       cargo xtask generate-manpage || die
+}
+
+src_install() {
+       cargo_src_install
+       einstalldocs
+
+       domenu misc/ncspot.desktop
+       newicon -s scalable images/logo.svg ncspot.svg
+
+       newbashcomp misc/ncspot.bash ncspot
+
+       dofishcomp misc/ncspot.fish
+
+       dozshcomp misc/_ncspot
+
+       doman misc/*.1
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+
+       optfeature_header "Optional runtime features:"
+       optfeature "MPRIS song scrobbling support" media-sound/rescrobbled
+}

Reply via email to