net-misc/turbovnc: fixes

* Fix description
* Add xkbcomp dep
* Set default xkb rules file to base
* Set XKB_BIN_DIRECTORY to /usr/bin (where xkbcomp is)
* Add einstalldocs
This commit is contained in:
Andrew Udvare
2021-02-26 14:47:28 -05:00
parent 4e9c748657
commit 956cda1113
@@ -4,7 +4,7 @@
EAPI=7 EAPI=7
inherit cmake inherit cmake
DESCRIPTION="A fast replacement for tigetvnc" DESCRIPTION="A fast replacement for TigerVNC"
HOMEPAGE="https://www.turbovnc.org/" HOMEPAGE="https://www.turbovnc.org/"
SRC_URI="https://sourceforge.net/projects/turbovnc/files/${PV}/${P}.tar.gz/download -> ${P}.tar.gz" SRC_URI="https://sourceforge.net/projects/turbovnc/files/${PV}/${P}.tar.gz/download -> ${P}.tar.gz"
RESTRICT="primaryuri" RESTRICT="primaryuri"
@@ -17,12 +17,15 @@ IUSE=""
DEPEND="virtual/jdk:1.8 DEPEND="virtual/jdk:1.8
>=media-libs/libjpeg-turbo-2.0.0[java] >=media-libs/libjpeg-turbo-2.0.0[java]
!net-misc/tigervnc" !net-misc/tigervnc"
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}
x11-apps/xkbcomp"
src_configure() { src_configure() {
local mycmakeargs=( local mycmakeargs=(
-DTJPEG_JAR=/usr/share/java/turbojpeg.jar -DTJPEG_JAR=/usr/share/java/turbojpeg.jar
-DTJPEG_JNILIBRARY=/usr/lib64/libturbojpeg.so -DTJPEG_JNILIBRARY=/usr/lib64/libturbojpeg.so
-DXKB_BIN_DIRECTORY=/usr/bin
-DXKB_DFLT_RULES=base
) )
cmake_src_configure cmake_src_configure
} }
@@ -30,4 +33,5 @@ src_configure() {
src_install() { src_install() {
cmake_src_install cmake_src_install
find "${D}/usr/share/man/man1/" -name Xserver.1\* -print0 | xargs -0 rm find "${D}/usr/share/man/man1/" -name Xserver.1\* -print0 | xargs -0 rm
einstalldocs
} }