summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac.paragon@gmail.com>2022-02-26 11:10:12 +0200
committerSam James <sam@gentoo.org>2022-02-27 00:19:24 +0000
commitead3e37592f29f619d9bc33ae447fa71d15345ef (patch)
treec351ff1c430d28c7546aeb6075cb7a6baeaab5bc /net-misc/turbovnc
parentdev-lang/idris2: bump to 0.5.1_p20220224 (2022.02.24 snapshot) (diff)
downloadgentoo-ead3e37592f29f619d9bc33ae447fa71d15345ef.tar.gz
gentoo-ead3e37592f29f619d9bc33ae447fa71d15345ef.tar.bz2
gentoo-ead3e37592f29f619d9bc33ae447fa71d15345ef.zip
net-misc/turbovnc: do not build vncviewer if !java
Closes: https://bugs.gentoo.org/833509 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24355 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/turbovnc')
-rw-r--r--net-misc/turbovnc/turbovnc-2.2.7-r2.ebuild (renamed from net-misc/turbovnc/turbovnc-2.2.7-r1.ebuild)19
1 files changed, 12 insertions, 7 deletions
diff --git a/net-misc/turbovnc/turbovnc-2.2.7-r1.ebuild b/net-misc/turbovnc/turbovnc-2.2.7-r2.ebuild
index b57e81831f74..5b1a5561d896 100644
--- a/net-misc/turbovnc/turbovnc-2.2.7-r1.ebuild
+++ b/net-misc/turbovnc/turbovnc-2.2.7-r2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit cmake desktop java-pkg-opt-2
@@ -18,8 +18,8 @@ DEPEND="
app-arch/bzip2
media-libs/freetype
>=media-libs/libjpeg-turbo-2.0.0:=[java?]
+ sys-libs/pam
sys-libs/zlib
- >=virtual/jdk-1.8:*
virtual/opengl
x11-libs/libfontenc
x11-libs/libX11
@@ -29,6 +29,10 @@ DEPEND="
x11-libs/libXfont2
x11-libs/libxkbfile
x11-libs/pixman
+ java? (
+ >=virtual/jdk-1.8:*
+ x11-libs/libXi
+ )
ssl? (
!gnutls? ( dev-libs/openssl:= )
gnutls? ( net-libs/gnutls:= )
@@ -40,10 +44,6 @@ RDEPEND="
x11-apps/xkbcomp
"
-# net-misc/turbovnc does not build this file, it merely copies it
-# from media-libs/libjpeg-turbo
-QA_PREBUILT="usr/share/turbovnc/classes/libturbojpeg.so"
-
src_prepare() {
use java && java-pkg-opt-2_src_prepare
cmake_src_prepare
@@ -54,7 +54,7 @@ src_configure() {
-DTVNC_SYSTEMX11=ON
-DTVNC_SYSTEMLIBS=ON
-DTVNC_BUILDJAVA=$(usex java)
- -DTVNC_BUILDNATIVE=ON
+ -DTVNC_BUILDNATIVE=$(usex java)
-DXKB_BIN_DIRECTORY=/usr/bin
-DXKB_DFLT_RULES=base
)
@@ -95,6 +95,11 @@ 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
+
+ # turbovnc does not build this file, it merely copies it from media-libs/libjpeg-turbo
+ # so let's replace it by a symlink
+ rm "${ED}/"usr/share/turbovnc/classes/libturbojpeg.so || die
+ dosym -r "/usr/$(get_libdir)/libturbojpeg.so" /usr/share/turbovnc/classes/libturbojpeg.so
fi
# Don't install incompatible init script