commit:     e3b66138a76da0d871b614e3e4fb215cc3045486
Author:     Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
AuthorDate: Sun Sep  3 18:14:57 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep  3 19:13:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3b66138

media-sound/qpwgraph: new package, add 0.5.2, 9999

Closes: https://bugs.gentoo.org/835516
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>
Closes: https://github.com/gentoo/gentoo/pull/32585
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/qpwgraph/Manifest              |  1 +
 media-sound/qpwgraph/metadata.xml          | 19 +++++++++++
 media-sound/qpwgraph/qpwgraph-0.5.2.ebuild | 55 ++++++++++++++++++++++++++++++
 media-sound/qpwgraph/qpwgraph-9999.ebuild  | 55 ++++++++++++++++++++++++++++++
 4 files changed, 130 insertions(+)

diff --git a/media-sound/qpwgraph/Manifest b/media-sound/qpwgraph/Manifest
new file mode 100644
index 000000000000..f9967e1c05d2
--- /dev/null
+++ b/media-sound/qpwgraph/Manifest
@@ -0,0 +1 @@
+DIST qpwgraph-v0.5.2.tar.bz2 454542 BLAKE2B 
aaeb947d77e5e1c41195a994193cd3de10fc8dfa798b36f90577f9a8b4037176b5465c55123ab7308691279b5c6c6c20d426cfa1ccf0836b35873b30a6f135df
 SHA512 
0ab06d72fd3a7045f6a4f0895e9bdedeaedf97a9d948f78b763f1a46ef2444f6cf9574f02c25197249ba22bf7189b86cf4fe59dc5d091627788e3e45126809fa

diff --git a/media-sound/qpwgraph/metadata.xml 
b/media-sound/qpwgraph/metadata.xml
new file mode 100644
index 000000000000..d07baf2f954e
--- /dev/null
+++ b/media-sound/qpwgraph/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <name>Adel Kara Slimane</name>
+               <email>[email protected]</email>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="freedesktop-gitlab">rncbc/qpwgraph</remote-id>
+               
<bugs-to>https://gitlab.freedesktop.org/rncbc/qpwgraph/-/issues</bugs-to>
+       </upstream>
+       <use>
+               <flag name="trayicon">Build support for tray icon</flag>
+       </use>
+</pkgmetadata>

diff --git a/media-sound/qpwgraph/qpwgraph-0.5.2.ebuild 
b/media-sound/qpwgraph/qpwgraph-0.5.2.ebuild
new file mode 100644
index 000000000000..744009584113
--- /dev/null
+++ b/media-sound/qpwgraph/qpwgraph-0.5.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="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";
+else
+       
SRC_URI="https://gitlab.freedesktop.org/rncbc/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+       S="${WORKDIR}/${PN}-v${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="alsa trayicon qt6 wayland"
+
+BDEPEND="
+       !qt6? ( dev-qt/linguist-tools:5 )
+       qt6? ( dev-qt/qttools:6[linguist] )
+"
+DEPEND="
+       media-video/pipewire:=
+       alsa? ( media-libs/alsa-lib )
+       !qt6? (
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtnetwork:5
+               dev-qt/qtsvg:5
+               dev-qt/qtwidgets:5
+               dev-qt/qtxml:5
+       )
+       qt6? (
+               dev-qt/qtbase:6[gui,widgets,xml,network]
+               dev-qt/qtsvg:6
+       )
+"
+RDEPEND="${DEPEND}"
+
+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
+}

diff --git a/media-sound/qpwgraph/qpwgraph-9999.ebuild 
b/media-sound/qpwgraph/qpwgraph-9999.ebuild
new file mode 100644
index 000000000000..744009584113
--- /dev/null
+++ b/media-sound/qpwgraph/qpwgraph-9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="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";
+else
+       
SRC_URI="https://gitlab.freedesktop.org/rncbc/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+       S="${WORKDIR}/${PN}-v${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="alsa trayicon qt6 wayland"
+
+BDEPEND="
+       !qt6? ( dev-qt/linguist-tools:5 )
+       qt6? ( dev-qt/qttools:6[linguist] )
+"
+DEPEND="
+       media-video/pipewire:=
+       alsa? ( media-libs/alsa-lib )
+       !qt6? (
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtnetwork:5
+               dev-qt/qtsvg:5
+               dev-qt/qtwidgets:5
+               dev-qt/qtxml:5
+       )
+       qt6? (
+               dev-qt/qtbase:6[gui,widgets,xml,network]
+               dev-qt/qtsvg:6
+       )
+"
+RDEPEND="${DEPEND}"
+
+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
+}

Reply via email to