public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-emulation/LookingGlass/, app-emulation/LookingGlass/files/
Date: Sun, 16 Jul 2023 06:18:39 +0000 (UTC)	[thread overview]
Message-ID: <1689344574.28231dac20f344387c531570e43cca59a6ffe78a.lanodan@gentoo> (raw)

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


                 reply	other threads:[~2023-07-16  6:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1689344574.28231dac20f344387c531570e43cca59a6ffe78a.lanodan@gentoo \
    --to=contact@hacktivis.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox