public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: app-emulation/LookingGlass/, app-emulation/LookingGlass/files/
@ 2023-07-16  6:18 Haelwenn Monnier
  0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2023-07-16  6:18 UTC (permalink / raw
  To: gentoo-commits

commit:     28231dac20f344387c531570e43cca59a6ffe78a
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Jul 14 14:22:33 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Jul 14 14:22:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=28231dac

app-emulation/LookingGlass: new package, add 1_beta6, 9999

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 .../LookingGlass/LookingGlass-1_beta6.ebuild       | 109 +++++++++++++++++++++
 .../LookingGlass/LookingGlass-9999.ebuild          | 107 ++++++++++++++++++++
 .../LookingGlass/files/LookingGlass-X.desktop      |   7 ++
 .../LookingGlass/files/LookingGlass.desktop        |   7 ++
 app-emulation/LookingGlass/metadata.xml            |  11 +++
 5 files changed, 241 insertions(+)

diff --git a/app-emulation/LookingGlass/LookingGlass-1_beta6.ebuild b/app-emulation/LookingGlass/LookingGlass-1_beta6.ebuild
new file mode 100644
index 000000000..40df5e4c0
--- /dev/null
+++ b/app-emulation/LookingGlass/LookingGlass-1_beta6.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake git-r3 desktop xdg-utils
+
+EGIT_REPO_URI="https://github.com/gnif/LookingGlass.git"
+EGIT_BRANCH="Release/B6"
+DESCRIPTION="A low latency KVM FrameRelay implementation for guests with VGA PCI Passthrough"
+HOMEPAGE="https://looking-glass.io https://github.com/gnif/LookingGlass"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="binutils X wayland pipewire pulseaudio gnome"
+REQUIRED_USE="|| ( binutils X wayland pipewire pulseaudio ) pipewire? ( !pulseaudio ) pulseaudio? ( !pipewire ) "
+
+RDEPEND="dev-libs/libconfig
+	dev-libs/nettle
+	media-libs/freetype
+	media-libs/fontconfig
+	media-libs/libsdl2
+	media-libs/sdl2-ttf
+	virtual/glu
+	media-libs/libsamplerate
+	binutils? ( sys-devel/binutils )
+	X? ( x11-libs/libX11 x11-libs/libXfixes x11-libs/libXi x11-libs/libXScrnSaver x11-libs/libXpresent )
+	wayland? ( dev-libs/wayland )
+	pulseaudio? ( media-libs/libpulse )
+	pipewire? ( media-video/pipewire )
+	gnome? ( gui-libs/libdecor )
+"
+
+DEPEND="${RDEPEND}
+	app-emulation/spice-protocol
+	wayland? ( dev-libs/wayland-protocols )
+"
+BDEPEND="virtual/pkgconfig"
+
+CMAKE_USE_DIR="${S}"/client
+
+src_prepare() {
+	default
+
+	# Base on build.rst from the project
+	# https://github.com/gnif/LookingGlass/blob/master/doc/build.rst
+
+	if ! use binutils; then
+		MYCMAKEARGS=" -DENABLE_BACKTRACE=no "
+	fi
+
+	if ! use X; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_X11=no "
+	fi
+
+	if ! use wayland; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_WAYLAND=no "
+	fi
+
+	if ! use pipewire; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PIPEWIRE=no "
+	fi
+
+	if ! use pulseaudio; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
+	fi
+
+	if ! use pulseaudio; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
+	fi
+
+	if use gnome && use wayland; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_LIBDECOR=ON "
+	fi
+
+	cmake_src_prepare
+}
+
+src_install() {
+	einstalldocs
+	dobin "${BUILD_DIR}/looking-glass-client"
+	newicon -s 128 "${S}/resources/icon-128x128.png" looking-glass-client.png
+
+	if use X && ! use wayland || ! use X && use wayland; then
+		domenu "${FILESDIR}/LookingGlass.desktop"
+	fi
+
+	if use X && use wayland; then
+		domenu "${FILESDIR}/LookingGlass-X.desktop"
+		newmenu "${FILESDIR}/LookingGlass.desktop" LookingGlass-Wayland.desktop
+	fi
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+	if use X && ! use wayland || ! use X && use wayland; then
+		ewarn "The desktop file located located at /usr/share/applications/LookingGlass.desktop"
+	fi
+	if use X && use wayland; then
+		ewarn "The desktop files located located at /usr/share/applications/LookingGlass-X.desktop /usr/share/applications/LookingGlass-Wayland.desktop"
+	fi
+	ewarn "Use the Right Control (Control_R) as the modifier key to control the action in LookingGlass"
+	ewarn "Note: Key was change because my laptop dosent have ScrLk"
+	ewarn "Tip: If you press and hold the modfier key (Control_R) you get all the key shortcuts for all action"
+	ewarn ""
+	ewarn "Note: The modifier key can be change by editing the desktop file"
+	ewarn "More information on this link: https://looking-glass.io/wiki/Client/Keyboard_shortcuts"
+}

diff --git a/app-emulation/LookingGlass/LookingGlass-9999.ebuild b/app-emulation/LookingGlass/LookingGlass-9999.ebuild
new file mode 100644
index 000000000..fb0224a86
--- /dev/null
+++ b/app-emulation/LookingGlass/LookingGlass-9999.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake git-r3 desktop xdg-utils
+
+EGIT_REPO_URI="https://github.com/gnif/LookingGlass.git"
+DESCRIPTION="A low latency KVM FrameRelay implementation for guests with VGA PCI Passthrough"
+HOMEPAGE="https://looking-glass.io https://github.com/gnif/LookingGlass"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="binutils X wayland pipewire pulseaudio gnome"
+REQUIRED_USE="|| ( binutils X wayland pipewire pulseaudio ) pipewire? ( !pulseaudio ) pulseaudio? ( !pipewire ) "
+
+RDEPEND="dev-libs/libconfig
+	dev-libs/nettle
+	media-libs/freetype
+	media-libs/fontconfig
+	media-libs/libsdl2
+	media-libs/sdl2-ttf
+	virtual/glu
+	media-libs/libsamplerate
+	binutils? ( sys-devel/binutils )
+	X? ( x11-libs/libX11 x11-libs/libXfixes x11-libs/libXi x11-libs/libXScrnSaver x11-libs/libXpresent )
+	wayland? ( dev-libs/wayland )
+	pulseaudio? ( media-libs/libpulse )
+	pipewire? ( media-video/pipewire )
+	gnome? ( gui-libs/libdecor )
+"
+
+DEPEND="${RDEPEND}
+	app-emulation/spice-protocol
+	wayland? ( dev-libs/wayland-protocols )
+"
+BDEPEND="virtual/pkgconfig"
+
+CMAKE_USE_DIR="${S}"/client
+
+src_prepare() {
+	default
+
+	# Base on build.rst from the project
+	# https://github.com/gnif/LookingGlass/blob/master/doc/build.rst
+
+	if ! use binutils; then
+		MYCMAKEARGS=" -DENABLE_BACKTRACE=no "
+	fi
+
+	if ! use X; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_X11=no "
+	fi
+
+	if ! use wayland; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_WAYLAND=no "
+	fi
+
+	if ! use pipewire; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PIPEWIRE=no "
+	fi
+
+	if ! use pulseaudio; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
+	fi
+
+	if ! use pulseaudio; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_PULSEAUDIO=no "
+	fi
+
+	if use gnome && use wayland; then
+		MYCMAKEARGS=" ${MYCMAKEARGS} -DENABLE_LIBDECOR=ON "
+	fi
+
+	cmake_src_prepare
+}
+
+src_install() {
+	einstalldocs
+	dobin "${BUILD_DIR}/looking-glass-client"
+	newicon -s 128 "${S}/resources/icon-128x128.png" looking-glass-client.png
+
+	if use X && ! use wayland || ! use X && use wayland; then
+		domenu "${FILESDIR}/LookingGlass.desktop"
+	fi
+
+	if use X && use wayland; then
+		domenu "${FILESDIR}/LookingGlass-X.desktop"
+		newmenu "${FILESDIR}/LookingGlass.desktop" LookingGlass-Wayland.desktop
+	fi
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+	if use X && ! use wayland || ! use X && use wayland; then
+		ewarn "The desktop file located located at /usr/share/applications/LookingGlass.desktop"
+	fi
+	if use X && use wayland; then
+		ewarn "The desktop files located located at /usr/share/applications/LookingGlass-X.desktop /usr/share/applications/LookingGlass-Wayland.desktop"
+	fi
+	ewarn "Use the Right Control (Control_R) as the modifier key to control the action in LookingGlass"
+	ewarn "Note: Key was change because my laptop dosent have ScrLk"
+	ewarn "Tip: If you press and hold the modfier key (Control_R) you get all the key shortcuts for all action"
+	ewarn ""
+	ewarn "Note: The modifier key can be change by editing the desktop file"
+	ewarn "More information on this link: https://looking-glass.io/wiki/Client/Keyboard_shortcuts"
+}

diff --git a/app-emulation/LookingGlass/files/LookingGlass-X.desktop b/app-emulation/LookingGlass/files/LookingGlass-X.desktop
new file mode 100644
index 000000000..321f1bdcb
--- /dev/null
+++ b/app-emulation/LookingGlass/files/LookingGlass-X.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=LookingGlass Client (X11/XWayland)
+StartupNotify=true
+Exec=env -u WAYLAND_DISPLAY looking-glass-client -m 97
+Terminal=false
+Icon=looking-glass-client
+Type=Application
\ No newline at end of file

diff --git a/app-emulation/LookingGlass/files/LookingGlass.desktop b/app-emulation/LookingGlass/files/LookingGlass.desktop
new file mode 100644
index 000000000..0db75fff7
--- /dev/null
+++ b/app-emulation/LookingGlass/files/LookingGlass.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=LookingGlass Client 
+StartupNotify=true
+Exec=/usr/bin/looking-glass-client -m 97
+Terminal=false
+Icon=looking-glass-client
+Type=Application
\ No newline at end of file

diff --git a/app-emulation/LookingGlass/metadata.xml b/app-emulation/LookingGlass/metadata.xml
new file mode 100644
index 000000000..9b22b17c8
--- /dev/null
+++ b/app-emulation/LookingGlass/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<use>
+		<flag name="binutils">build backtrace support </flag>
+		<flag name="pipewire">enable media-video/pipewire support</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">gnif/LookingGlass</remote-id>
+	</upstream>
+</pkgmetadata>
\ No newline at end of file


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-16  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16  6:18 [gentoo-commits] repo/proj/guru:master commit in: app-emulation/LookingGlass/, app-emulation/LookingGlass/files/ Haelwenn Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox