Added turboVNC

This commit is contained in:
layman 2022-03-03 09:40:05 +01:00
parent 59d04db01b
commit 24d4a6656f
3 changed files with 134 additions and 0 deletions

View File

@ -0,0 +1,3 @@
DIST turbovnc-3.0beta1.tar.gz 8619273 BLAKE2B 87f78c7e0f13d6f651505dac9a61fcba5aa85e810a5e5fd10fd11b804c08300c6348582122d3dc66f86aeae45eebefb03f50d55f3bda058dc3d290fe9cdad81e SHA512 6865a8bc987bbd43acbd51e3cf6058ca9c02191d28e462b2ba60c82fb718625ee196bcc067dda1fca2d1e1ccaee40408a3b2a4a2050ae75217e5af43bd3a8189
EBUILD turbovnc-3.0_beta1.ebuild 2249 BLAKE2B 551d6c1fafb2e0cf8067b151e44804e91b681a2c0f22298116678ca1c0469177ba5068b1466fac56cd56cf9fe06a0836233a8483ccc7c21ba4057c92001eef6a SHA512 ceea4716a5bb08942b6cadf14bcd5e0045e60be4377a901295cbbffd3d42a593c362f6348dfda93b441c1988c34d53b59e5317df121f57ebf2135fe636ebc72d
MISC metadata.xml 784 BLAKE2B 55a8bba421a15da5ed9401949b8e056b9c376030875bac0b28dece1a71f50c07010949bf82792129db82df98068061959a80c31093c8e91afb94cbdee0b2f020 SHA512 1e15fc8d88a46e7027eec5cdb8f8f7d6973f2ff1ea586ba6cf2d46a6d09050c6ba0ba94eaa9f59a8624a9885b8b25ec7a2977f1f4d71c02517bd8f681c05bec9

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>ceamac.paragon@gmail.com</email>
<name>Viorel Munteanu</name>
</maintainer>
<maintainer type="person">
<email>sam@gentoo.org</email>
<name>Sam James</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription>
TurboVNC is a derivative of VNC (Virtual Network Computing) that is tuned to provide peak performance for 3D and video workloads.
By The VirtualGL Project.
</longdescription>
<upstream>
<remote-id type="github">TurboVNC/turbovnc</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,108 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop cmake java-pkg-opt-2
MY_PV=${PV/_/}
MY_P=${PN}-${MY_PV}
DESCRIPTION="A fast replacement for TigerVNC"
HOMEPAGE="https://www.turbovnc.org/"
SRC_URI="https://github.com/TurboVNC/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="gnutls +ssl"
DEPEND="
app-arch/bzip2
media-libs/freetype
>=media-libs/libjpeg-turbo-2.0.0[java?]
sys-libs/zlib
virtual/jdk:1.8
virtual/opengl
x11-libs/libfontenc
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfont2
x11-libs/libxkbfile
x11-libs/pixman
ssl? (
!gnutls? ( dev-libs/openssl:= )
gnutls? ( net-libs/gnutls:= )
)
!net-misc/tigervnc
"
RDEPEND="
${DEPEND}
x11-apps/xkbcomp
"
S="${WORKDIR}/${MY_P}"
src_prepare() {
use java && java-pkg-opt-2_src_prepare
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DTVNC_SYSTEMX11=ON
-DTVNC_SYSTEMLIBS=ON
-DTVNC_BUILDJAVA=$(usex java)
-DTVNC_BUILDNATIVE=ON
-DXKB_BIN_DIRECTORY=/usr/bin
-DXKB_DFLT_RULES=base
)
if use ssl ; then
# We prefer OpenSSL, so default to that if SSL is enabled
if use gnutls ; then
mycmakeargs+=( -DTVNC_USETLS=GnuTLS )
else
# Link properly against OpenSSL to ensure
# we catch e.g. ABI change
# (i.e. don't dlopen it)
mycmakeargs+=(
-DTVNC_USETLS=OpenSSL
-DTVNC_DLOPENSSL=OFF
)
fi
else
mycmakeargs+=( -DTVNC_USETLS=OFF )
fi
if use java ; then
export JAVACFLAGS="$(java-pkg_javac-args)"
export JNI_CFLAGS="$(java-pkg_get-jni-cflags)"
mycmakeargs+=(
-DTJPEG_JAR="${EPREFIX}/usr/share/java/turbojpeg.jar"
-DTJPEG_JNILIBRARY="${EPREFIX}/usr/$(get_libdir)/libturbojpeg.so"
)
fi
cmake_src_configure
}
src_install() {
cmake_src_install
if use java ; then
java-pkg_dojar "${BUILD_DIR}"/java/VncViewer.jar
make_desktop_entry vncviewer "TurboVNC Viewer" /usr/share/icons/hicolor/48x48/apps/${PN}.png
fi
# Don't install incompatible init script
rm -rf "${ED}"/etc/init.d/ || die
rm -rf "${ED}"/etc/sysconfig/ || die
find "${ED}"/usr/share/man/man1/ -name Xserver.1\* -print0 | xargs -0 rm || die
einstalldocs
}