febuild/media-video/oculante/oculante-9999.ebuild

60 lines
1.0 KiB
Bash
Executable File

# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# TODO: this doesn't work for some reason
CRATES="
shaderc@0.8
"
inherit cargo git-r3 bash-completion-r1
DESCRIPTION="A dynamic and extensible GTK4 layer-shell, written in Rust"
HOMEPAGE="https://github.com/woelper/${PN}"
EGIT_REPO_URI="https://github.com/woelper/${PN}.git"
# LICENSE=""
SLOT="0"
IUSE="heif avif dav1d turbo open j2k jxlcms"
BDEPEND="
gui-libs/gtk4-layer-shell
gui-libs/gtk:4
"
# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
# QA_FLAGS_IGNORED="usr/bin/btm"
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
src_configure() {
local myfeatures=(
"notan/shaderc"
$(usev open file_open)
$(usev heif)
$(usev avif avif_native)
$(usev dav1d)
$(usev turbo)
$(usev j2k)
$(usev jxlcms)
)
cargo_src_configure --bin ${PN}
}
src_compile() {
cargo_src_compile
}
src_install() {
cargo_src_install
# newbashcomp ./target/${PN}.bash ${PN}
}