diff --git a/app-emulation/looking-glass/Manifest b/app-emulation/looking-glass/Manifest new file mode 100644 index 0000000..cb73c18 --- /dev/null +++ b/app-emulation/looking-glass/Manifest @@ -0,0 +1,2 @@ +EBUILD looking-glass-9999.ebuild 1660 BLAKE2B e477ba3a6b344422edeb466dffb483a7960b8bfcda87414762c35edf393e74bee2177c63552d9972c784d48650c986e514bf8253fcb563799b210627ea68764e SHA512 e88648fd97fa5febd4ac0c05c2573277ee620d7873b20b8fe60e2a03c98cd3a188a66aea0c4d5cc485daf0144331da6eca3699e21cb5f0dce2d68855b1ebf242 +MISC metadata.xml 329 BLAKE2B c613c0d366e5c79b96f4707dd6b2c4d41a627b2b5f5a2a29f58c2ea239b891b9e2f1bf43d2d436127004eecd416dd3d59dcd88e8bfe4c977b3953f55756c528a SHA512 439861039e04a7d9b7b1cf4c1c404698dc2322d7786c8779cf3f24060d7bf4f966b104c94d44fbce72874b8c9fbaac5bc058d33c9e2bea1b2e38adca24df3b64 diff --git a/app-emulation/looking-glass/looking-glass-9999.ebuild b/app-emulation/looking-glass/looking-glass-9999.ebuild new file mode 100644 index 0000000..9e4ef02 --- /dev/null +++ b/app-emulation/looking-glass/looking-glass-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="LookingGlass" +MY_PV="${PV//1_beta/B}" +MY_P="${MY_PN}-${MY_PV}" + +inherit cmake git-r3 + +DESCRIPTION="A low latency KVM FrameRelay implementation for guests with VGA PCI Passthrough" +HOMEPAGE="https://looking-glass.hostfission.com https://github.com/gnif/LookingGlass/" +EGIT_REPO_URI="https://github.com/gnif/LookingGlass.git" +EGIT_SUBMODULES=() + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND="app-emulation/spice-protocol" +DEPEND="${RDEPEND} + dev-libs/libconfig:0= + dev-libs/nettle:=[gmp] + media-libs/freetype:2 + media-libs/fontconfig:1.0 + media-libs/libsdl2:=[gles2] + media-libs/sdl2-ttf + virtual/glu" +BDEPEND="virtual/pkgconfig" + +src_unpack(){ + mkdir looking-glass-9999 + git clone --recursive "https://github.com/gnif/LookingGlass.git" looking-glass-9999 || die "git clone failed" +} + +src_prepare() { + default + + # Respect FLAGS + sed -i -e '/CMAKE_C_FLAGS/s/-O3 -march=native //' \ + -e "/git/s/git describe --always --long --dirty --abbrev=10 --tags/echo ${MY_PV}/" \ + client/CMakeLists.txt || die "sed failed for FLAGS and COMMAND" + + if ! use debug ; then + sed -i '/CMAKE_C_FLAGS/s/-g //' \ + client/CMakeLists.txt || die "sed failed for debug" + fi + cp client/CMakeLists.txt . || die "copy cmakelists failed" + cmake_src_prepare +} + +src_configure() { + einfo "I don't really know what I'm doing" +} + +src_compile(){ + mkdir client/build + cd client/build + cmake ../ || die "cmake failed" + make || die "make failed" +} + +src_install() { + einstalldocs + dobin client/build/looking-glass-client || die "install failed" +} diff --git a/app-emulation/looking-glass/metadata.xml b/app-emulation/looking-glass/metadata.xml new file mode 100644 index 0000000..79acd3b --- /dev/null +++ b/app-emulation/looking-glass/metadata.xml @@ -0,0 +1,11 @@ + + + + + knotteye@airmail.cc + KnottEye + + + gnif/LookingGlass + +