diff --git a/net-misc/turbovnc/turbovnc-2.2.1-r1.ebuild b/net-misc/turbovnc/turbovnc-2.2.1-r1.ebuild new file mode 100644 index 0000000..57f369c --- /dev/null +++ b/net-misc/turbovnc/turbovnc-2.2.1-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils + +DESCRIPTION="A fast replacement for tigetvnc" +HOMEPAGE="https://www.turbovnc.org/" +SRC_URI="https://sourceforge.net/projects/turbovnc/files/${PV}/${P}.tar.gz/download -> ${P}.tar.gz" +RESTRICT="primaryuri" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/jdk:1.8 + media-libs/libjpeg-turbo[java] + !net-misc/tigervnc" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DTJPEG_JAR=/usr/share/classes/turbojpeg.jar + -DTJPEG_JNILIBRARY=/usr/lib64/libturbojpeg.so + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + find "${D}/usr/share/man/man1/" -name Xserver.1\* -print0 | xargs -0 rm +}