commit: 8e8cd1bc5ffe89585464f3818e9d9f325da384b9
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 26 06:38:54 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Aug 26 06:42:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e8cd1bc
media-sound/ncspot: add 1.3.1
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
media-sound/ncspot/Manifest | 2 +
media-sound/ncspot/ncspot-1.3.1.ebuild | 93 ++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)
diff --git a/media-sound/ncspot/Manifest b/media-sound/ncspot/Manifest
index db70ea3cbf44..d0ef230406b9 100644
--- a/media-sound/ncspot/Manifest
+++ b/media-sound/ncspot/Manifest
@@ -2,3 +2,5 @@ DIST ncspot-1.2.2-crates.tar.xz 61908868 BLAKE2B
211cd15d34f30aed540e3795df88473
DIST ncspot-1.2.2.tar.gz 261836 BLAKE2B
d162422256112c1c38aa2f13bab6e56d3141566a4c7657d9d1eda2cc937d4be9c16680c51a589762d9d64c4d4ae6017d8ef9340de39df3ca180010e003374311
SHA512
dbc711098895a078513e12dcb8543e18e8de3dcb84b3a6df1384bf585c0c2d1c578ca6d1a28f5a710fa3e7b331a6fad73565a5b3c30576f4c1bf220e9966fb6a
DIST ncspot-1.3.0-crates.tar.xz 58003788 BLAKE2B
acd5fb4035a07e80888ecb5d4f73ce16e85d97fb13b79edce2b71ae24c57e3eda8704707b17d939fd0bd33826ece75d0e85edec8cb58e303a9808f0581e358b5
SHA512
c556da14505fa700ceab45eb1cc48dad45198413d71c224fb9efb87ad7cc0939cfd29d090415d57125bd172d8589911e30d6c750a7cbda6c9fb1256d7aaeb5f3
DIST ncspot-1.3.0.tar.gz 262140 BLAKE2B
ad9d2ef9be11eb5f0efb6b7fd6c4583a04691972d03e8bb86f469f0a4dd6b9cf1bffc6d1c054bf547f95ec2b89c97082825f0cc13b63bd3db800d8b3d5c64bce
SHA512
2144025bfbf9e2be4e90aa42f5eb0f6f6e3b24567f09558f3a8c01e8528a72b4459964192037bc9b3cb9fc5bdc6726bb4d064d8efcf1e1bf0304fd9f7a5ac68e
+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
diff --git a/media-sound/ncspot/ncspot-1.3.1.ebuild
b/media-sound/ncspot/ncspot-1.3.1.ebuild
new file mode 100644
index 000000000000..b8aab165ed89
--- /dev/null
+++ b/media-sound/ncspot/ncspot-1.3.1.ebuild
@@ -0,0 +1,93 @@
+# 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 openssl Unicode-3.0"
+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 )
+ 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
+}