mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
media-sound/ncspot: add 1.5.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST ncspot-1.5.0-crates.tar.xz 54048164 BLAKE2B 86fb105c3f221449184e876162bbcb761fb8d2ea27f93807086e6ce87429d5014e51ee62a6e9ae26ae30cd86d260fbba6de5c66c5cad2804ad9147d2eb817e0c SHA512 d44ae49f5b19fcf20504195a324876bbd879afa7b406127116ffe498cfe0c60c134b0fccbf191e32e9ecae15e947ec50275f631e441fa13dd6b2773147e88cf3
|
||||
DIST ncspot-1.5.0.tar.gz 265922 BLAKE2B 7b6cb9ec3a6c46ee0761f448aa6b5bc0b0dc312c9ab0abbb092ee301ed5a2b57abe84a8a6bf475f888135e170e4353a325e30c525d28ab6ae0c7840ea4eaf8f6 SHA512 5faa17e565acbfccf02c2c35de0d2c01f3f2ce987737f4a5e44b3969da00d4b9ba29a954eaad18a54191fafa86d9fc4073df15a248b49a8222d4827f783754f9
|
||||
DIST ncspot-1.5.1-crates.tar.xz 60046312 BLAKE2B a7e9318b3cdefd35fc30bea34379f916872b045b7c9a439b9c79723661b43ee3f07b61fbc79d66af9f920ea62823f4d8782400a8624a8c10eedfa57cde1eb410 SHA512 7b0927323b283e88ed9d270cd63400de7b6000c6ad401cdef8fa23eefae99482b884d109335ffe6f6d402032a94932e87d5115bfeaf54de6cbc47bc3cf6f74f8
|
||||
DIST ncspot-1.5.1.tar.gz 272285 BLAKE2B a36c6ea766db30da7472b337506e5715a82a074851d630e5258da00b38fe635b64dd85908ab4ebdc434ade56908148380b2f646526abd2ece4caef3fd58261f7 SHA512 e8a56ccb4349c0b14cad280075b9b1f0d105aeeaea537a234535afa1dd21c190f74a1de9edef1ea39bd65133fd17dde911aec452ddc69f3f05b1693bb9905918
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=""
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
RUST_MIN_VER="1.89.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:= )
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user