parent
c1b601d6d5
commit
b63000501d
@ -0,0 +1,2 @@ |
||||
EBUILD looking-glass-9999.ebuild 1660 BLAKE2B e477ba3a6b344422edeb466dffb483a7960b8bfcda87414762c35edf393e74bee2177c63552d9972c784d48650c986e514bf8253fcb563799b210627ea68764e SHA512 e88648fd97fa5febd4ac0c05c2573277ee620d7873b20b8fe60e2a03c98cd3a188a66aea0c4d5cc485daf0144331da6eca3699e21cb5f0dce2d68855b1ebf242 |
||||
MISC metadata.xml 329 BLAKE2B c613c0d366e5c79b96f4707dd6b2c4d41a627b2b5f5a2a29f58c2ea239b891b9e2f1bf43d2d436127004eecd416dd3d59dcd88e8bfe4c977b3953f55756c528a SHA512 439861039e04a7d9b7b1cf4c1c404698dc2322d7786c8779cf3f24060d7bf4f966b104c94d44fbce72874b8c9fbaac5bc058d33c9e2bea1b2e38adca24df3b64 |
@ -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" |
||||
} |
@ -0,0 +1,11 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
||||
<pkgmetadata> |
||||
<maintainer type="person"> |
||||
<email> knotteye@airmail.cc </email> |
||||
<name> KnottEye </name> |
||||
</maintainer> |
||||
<upstream> |
||||
<remote-id type="github">gnif/LookingGlass</remote-id> |
||||
</upstream> |
||||
</pkgmetadata> |
Loading…
Reference in new issue