media-sound/qobuz-player: add 2026.06.12

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2026-06-12 20:41:00 +02:00
parent 8d3b226e83
commit ab648a719e
2 changed files with 98 additions and 0 deletions

View File

@@ -6,4 +6,6 @@ DIST qobuz-player-0.9.0-crates.tar.xz 69589892 BLAKE2B 95c8221543fc544ab5c4ad967
DIST qobuz-player-0.9.0.tar.gz 6496039 BLAKE2B 06ba1a65efd9a185dfa3adfd59444f1fd9c0d4ea39909b4ae23d7f90e34d58bbb740667559018564aa6384d630883e5d5f79b1f5bd1a3ffd274ca3c97248a1b9 SHA512 b3f60801febfc2d02d7d03333188cea636d12c7fff0159954d6a1ff6027f9fe7d74cac4a7f1b8b757c0271eb8b68518aa306e5c4f148aca74784d1b1f0b286e5
DIST qobuz-player-2026-05-03-crates.tar.xz 73206836 BLAKE2B 486c4b247862a0d4ec244a11dd362966b13aaa0ff6426381ef411e68815c435d0a6389ab8a565ef36fd210ea5b0da7687d3a4f59ba18e46e0f4e944dde1ad972 SHA512 f9f542e6b645ad5db705dc29daef563fadc0404899dbdb663e716390aef2caba369048842c28c4e5a10f9b95ef13b0c28fd1245b30946e7aff8bdcb30d0f6526
DIST qobuz-player-2026-05-03.tar.gz 8440227 BLAKE2B 6e16e293b54122c1a60ba3974b1ce96369b999b332fa17831e561c4d92da76b770ed10387dc70ae8dc0b6b868ab032761f2f4e8e39fa70b21a9e18ed2a3b8dd1 SHA512 f4cf19e5643113c1a8c071af6f20ad4a5ebc979e925e718c1ac0567fe6e953b88229357a225910acf4f72a319052ca2a4834f1832b13c74414644937ca9e36e6
DIST qobuz-player-2026-06-12-crates.tar.xz 73250912 BLAKE2B 6f4e8d99e172db0492bbeeb2b13ea250e105e8c2c41f05e1530d9e72b9f9f4686704909b4106d5869973d3da8a2f017da94e5e4047736a5ddf5f6e6c0c0906e8 SHA512 57f58173935c6a88d4fd0e48ec276f2aff74ddcee30d1a5c7421cc19e296502f25e330a77bbc1ab9367d69ac79d7129c316b874397681d386efe927d37dacdaf
DIST qobuz-player-2026-06-12.tar.gz 8853094 BLAKE2B 22969c4843369ed9f91f20f68b0d50f64f9913fd5e5003368e895d43af653ce5404a475eda901c23b4fe88b2572cb36769fa55cc58d2152d812fbdbb04bc9797 SHA512 ecdc03df6ac1236237bc1fa07354ae63fb9b6fc42d89c4c8f8005ae58bfb9e70d1fee2da4e102604cf6ade97c4ce7688ae83bd48050c77852f99b73931daa78e
DIST rodio-a352fb53846b47523d828b276b6d625f251aabb2.gh.tar.gz 15052657 BLAKE2B 88148261bb03c0c0daa54ee0961623db69a3fb84e6c0f8ff5b3aff98615f3d70e2d3743efa46e6e0c34e734489f7ff93cacb29d18009a295adaf6c5ba27571da SHA512 fc69172d286578cbb4970deb350d178ff570440744018f89133afdd4244a3d566e95bdacd2783189cb9d8448b542e000692110026e9291ff13c2619311ba5f72

View File

@@ -0,0 +1,96 @@
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
declare -A GIT_CRATES=(
[mpris-server]='https://github.com/SeaDve/mpris-server;f8b3f74e93910fffd0c93df687e05cf954dcdeba;mpris-server-%commit%'
# [qonductor]='https://github.com/nickblt/qonductor;efba84c3a82042f8dca375a8b4860a96e165eed7;qonductor-%commit%'
[rodio]='https://github.com/RustAudio/rodio;a352fb53846b47523d828b276b6d625f251aabb2;rodio-%commit%'
[cpal]='https://github.com/RustAudio/cpal;fd3b945bffcaa493fa7cb5ceddf9db1f9330fd30;cpal-%commit%'
)
RUST_MIN_VER="1.92"
UPSTREAM_PN="qobine"
UPSTREAM_PV="${PV//./-}"
MY_P="${PN}-${UPSTREAM_PV}"
UPSTREAM_P="${UPSTREAM_PN}-${UPSTREAM_PV}"
inherit cargo
DESCRIPTION="Tui, web and rfid player for Qobuz"
HOMEPAGE="https://github.com/SofusA/qobine"
SRC_URI="https://github.com/SofusA/${UPSTREAM_PN}/archive/refs/tags/v${UPSTREAM_PV}.tar.gz -> ${MY_P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/v${UPSTREAM_PV}/${MY_P}-crates.tar.xz"
SRC_URI+=" ${CARGO_CRATE_URIS}"
S="${WORKDIR}/${UPSTREAM_P}"
LICENSE="GPL-3"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0 UoI-NCSA
Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
# The GTK feature now needs >=gui-libs/gtk-4.20 which is too much of a hassle.
# I'll skip this feature for now because personally, I don't need it.
# Also see: https://github.com/SofusA/qobine/issues/348#issuecomment-4368448105
# IUSE="gtk"
RESTRICT="test"
DEPEND="
dev-db/sqlite:3=
dev-libs/glib
media-libs/alsa-lib
sys-apps/dbus
"
# This will need to be in DEPEND when this feature will be re-enabled
# gtk? ( gui-libs/libadwaita )
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
local rodio_path="${WORKDIR}/rodio-a352fb53846b47523d828b276b6d625f251aabb2"
local cpal_path="${WORKDIR}/cpal-fd3b945bffcaa493fa7cb5ceddf9db1f9330fd30"
# Patch rodio's Cargo.toml to use local path for cpal
sed -i \
-e "s|cpal\s*=\s*{\s*version\s*=\s*\"[^\"]*\"|cpal = { path = \"${cpal_path}\"|" \
-e "s|cpal\s*=\s*{\s*git\s*=\s*\"https://github.com/RustAudio/cpal\"[^}]*|cpal = { path = \"${cpal_path}\"|" \
"${rodio_path}/Cargo.toml" || die "Failed to patch rodio Cargo.toml"
grep -q "cpal = { path = \"${cpal_path}\"" "${rodio_path}/Cargo.toml" \
|| die "Failed to verify cpal patch in rodio"
}
src_configure() {
# high magic to allow system-libs
export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
default
}
src_compile() {
cargo_src_compile --package qobuz-player-connect
# use gtk && cargo_src_compile --package qobuz-player-gtk
cargo_src_compile --package qobuz-player-rfid
cargo_src_compile --package qobuz-player-tui
cargo_src_compile --package qobuz-player-web
}
src_install() {
cargo_src_install --path qobuz-player-connect
# use gtk && cargo_src_install --path qobuz-player-gtk
cargo_src_install --path qobuz-player-rfid
cargo_src_install --path qobuz-player-tui
cargo_src_install --path qobuz-player-web
local DOCS=(
README.md
)
einstalldocs
}