bronze-overlay/media-sound/qpwgraph/qpwgraph-0.3.9.ebuild

63 lines
1.1 KiB
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
DESCRIPTION="A PipeWire Graph Qt GUI Interface"
HOMEPAGE="https://gitlab.freedesktop.org/rncbc/qpwgraph"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.freedesktop.org/rncbc/qpwgraph.git"
KEYWORDS=""
else
SRC_URI="https://gitlab.freedesktop.org/rncbc/qpwgraph/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
S="${WORKDIR}/${PN}-v${PV}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2+"
SLOT="0"
IUSE="+alsa qt6 +trayicon wayland"
DEPEND="
!qt6? (
dev-qt/qtcore:5=
dev-qt/qtgui:5=
dev-qt/qtwidgets:5=
dev-qt/qtxml:5=
dev-qt/qtsvg:5=
)
qt6? (
dev-qt/qtbase:6=[gui,widgets,xml]
dev-qt/qtsvg:6=
)
media-video/pipewire
trayicon? (
!qt6? (
dev-qt/qtnetwork:5=
)
qt6? (
dev-qt/qtnetwork:6=
)
)
"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}"
PATCHES=()
src_configure() {
local mycmakeargs=(
"-DCONFIG_ALSA_MIDI=$(usex alsa)"
"-DCONFIG_SYSTEM_TRAY=$(usex trayicon)"
"-DCONFIG_WAYLAND=$(usex wayland)"
"-DCONFIG_QT6=$(usex qt6)"
)
cmake_src_configure
}