fix(gentoo): revert ebuild template to network-sandbox style
The cargo eclass requires pre-generated offline crate sources which the CI workflow never set up. Revert to the working approach: inherit xdg only, RESTRICT network-sandbox, direct npm ci + cargo build. cc
This commit is contained in:
1 file changed
+8
-24
@@ -3,21 +3,19 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cargo xdg
|
||||
inherit xdg
|
||||
|
||||
DESCRIPTION="Native hi-fi Qobuz desktop player for Linux"
|
||||
HOMEPAGE="https://qbz.lol https://github.com/vicrodh/qbz"
|
||||
|
||||
MY_PV="${PV}"
|
||||
SRC_URI="
|
||||
https://github.com/vicrodh/qbz/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
SRC_URI="https://github.com/vicrodh/qbz/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="pipewire pulseaudio"
|
||||
RESTRICT="mirror network-sandbox"
|
||||
|
||||
RDEPEND="
|
||||
net-libs/webkit-gtk:4.1
|
||||
@@ -42,43 +40,30 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
# alsa-utils improves device detection for bit-perfect playback
|
||||
PDEPEND="
|
||||
media-sound/alsa-utils
|
||||
"
|
||||
|
||||
S="${WORKDIR}/qbz-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Generate cargo config for offline build if needed
|
||||
cargo_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Install npm dependencies (network required)
|
||||
npm ci || die "npm ci failed"
|
||||
|
||||
# Build the SvelteKit frontend
|
||||
npm ci --prefer-offline || die "npm ci failed"
|
||||
npm run build || die "frontend build failed"
|
||||
|
||||
# Build the Tauri/Rust backend (no bundler — we install manually)
|
||||
# Build the Tauri/Rust backend
|
||||
cd src-tauri || die
|
||||
cargo_src_compile --bin qbz
|
||||
cargo build --release --bin qbz || die "cargo build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Install the binary
|
||||
dobin "src-tauri/target/release/qbz"
|
||||
|
||||
# Desktop file
|
||||
insinto /usr/share/applications
|
||||
newins packaging/arch/qbz.desktop qbz.desktop
|
||||
|
||||
# Icons
|
||||
local size
|
||||
for size in 32 48 64 128 256; do
|
||||
local src_icon="src-tauri/icons/${size}x${size}.png"
|
||||
@@ -88,7 +73,6 @@ src_install() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Use the high-res icon as a fallback for missing sizes
|
||||
local fallback="src-tauri/icons/128x128.png"
|
||||
for size in 48 64; do
|
||||
if [[ ! -f "src-tauri/icons/${size}x${size}.png" ]]; then
|
||||
|
||||
Reference in new issue
Block a user