diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-10 03:03:09 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-10 03:03:09 +0000 |
commit | be94ae04eee564451203d45977c2ef7c7ace1580 (patch) | |
tree | 616ffc0ad9aee18dc7d5e9e62bf62394e8e520ba /net-misc/turbovnc | |
parent | 2be329ae14bbf99f0fc4de7567e2386bbb529fdc (diff) |
gentoo auto-resync : 10:11:2024 - 03:03:09
Diffstat (limited to 'net-misc/turbovnc')
-rw-r--r-- | net-misc/turbovnc/Manifest | 3 | ||||
-rw-r--r-- | net-misc/turbovnc/turbovnc-3.1.3.ebuild | 146 |
2 files changed, 149 insertions, 0 deletions
diff --git a/net-misc/turbovnc/Manifest b/net-misc/turbovnc/Manifest index e19ca62e4373..cb0f079acf8e 100644 --- a/net-misc/turbovnc/Manifest +++ b/net-misc/turbovnc/Manifest @@ -3,6 +3,9 @@ DIST turbovnc-3.1.1.tar.gz 9032635 BLAKE2B 84b6d656bcadf310368f4c59e03c25d2997e8 DIST turbovnc-3.1.1.tar.gz.sig 543 BLAKE2B 2563db72dbca74781b0c2d76867298c400db61bff120e8bd4167c90347c94a26824f7aa252a2ac9fc1b0c101d56caeaceec74155ae5593428ad23a36373e998a SHA512 0dd0bde26bba3fe7ebbbe3c1a0af5f7e223026f140f031ae29405a47dd5d62183f22ea9fd6e1902b23016887503d80b65f77c48759e540ae8969a17046e41c60 DIST turbovnc-3.1.2.tar.gz 9037445 BLAKE2B 0a645c510ce9caf7b0a8cbbf74debf1d1c6a159a46798176d7c6103f18b81b1191c5f82e365fa6eadb8e128a6a4f5060b6d456cda858f4d87361a5ca4bf7d842 SHA512 ab66ac516c1d8cbadeb205c3a46233d25893bf415eeb1004825c613997f9b17c858e823d7264a92459a82e24e9c9b372298b7bcec7c413a4b9206dadcc99e29c DIST turbovnc-3.1.2.tar.gz.sig 543 BLAKE2B 2cb7ea20a246cbf4fc6209c2e23ebf05a47638a9c926009c97b61a2d8d696b069429069f8822b18212b6efea69bfd10da0a53df1efa545b44b689cecf03ec7b9 SHA512 c1619b2f9e4babb3b0bcde1bb6294d8fdb15d35e0c04f69a8cf73c8a93966dd2bc39e2223f2bd2e57086deb11e04fc8034e5ca3ba0cdeb5a3270cddb82497d2a +DIST turbovnc-3.1.3.tar.gz 9041525 BLAKE2B c1ce3685caf457aeab76a9ae3bf02aa03f8e0bf48af7eb99ccfdfffc3fb9ae4f0a2b2c082103fc721c5e1674dfbdd0b2df072c08696b927be4487a06d1dd6c2a SHA512 34929fbb02c047796f278ebd55cfb4a4361ae9b260e224990e493a2af69403ea1a4563459464b4df771a3bafb601ac6569f58e3fc04c45366b3dc61af7db38eb +DIST turbovnc-3.1.3.tar.gz.sig 543 BLAKE2B f9a7361238338830e914824b221648628b8d716a5427fb95b0b2027ab9d0edd9454394759fbea74d6ba8ba74e314d325564fd879b561aa6568be2776f4e15a70 SHA512 357c08ada0ac295488a54c0c1b3f81645b492e2a849e88be491a4a2373aae7925a236e2fbc38fe3361361f52540550516fd0671cc8d02b9cb3b8c3b6c66a2379 EBUILD turbovnc-3.1.1.ebuild 3124 BLAKE2B 53faebd33901aa3f7d1368c746e7913033f69893e234955df8c92b0e67b1081798a292b52c7203c063abef565292249d85cdccfbd8501baed6a71acc9ac20565 SHA512 9d51a495349d4ce2a8e3da1f4247494dad83b45909f4fe52b0d9ea20996ddbb28f7798c3c0151bd9e3117081b63232fb0480e444107f83569971800ee88cb62a EBUILD turbovnc-3.1.2.ebuild 3124 BLAKE2B 53faebd33901aa3f7d1368c746e7913033f69893e234955df8c92b0e67b1081798a292b52c7203c063abef565292249d85cdccfbd8501baed6a71acc9ac20565 SHA512 9d51a495349d4ce2a8e3da1f4247494dad83b45909f4fe52b0d9ea20996ddbb28f7798c3c0151bd9e3117081b63232fb0480e444107f83569971800ee88cb62a +EBUILD turbovnc-3.1.3.ebuild 3124 BLAKE2B 53faebd33901aa3f7d1368c746e7913033f69893e234955df8c92b0e67b1081798a292b52c7203c063abef565292249d85cdccfbd8501baed6a71acc9ac20565 SHA512 9d51a495349d4ce2a8e3da1f4247494dad83b45909f4fe52b0d9ea20996ddbb28f7798c3c0151bd9e3117081b63232fb0480e444107f83569971800ee88cb62a MISC metadata.xml 820 BLAKE2B 331426a28ac5efa9f27d1e9b21e4b75e6965b5c1cf41ce7b8d98b03187fc56d81ffb58f555fc522188d1003e64713220b6f5591131fb8a26a8fe43e277f54526 SHA512 0aa50eef5eb122e0de38bf5e2f8d0627841419dd5e88ee58444493f4a9804626111d5edc5b36aa996635f38c7fd87c71706dd543305f9b495031971b1c52be3d diff --git a/net-misc/turbovnc/turbovnc-3.1.3.ebuild b/net-misc/turbovnc/turbovnc-3.1.3.ebuild new file mode 100644 index 000000000000..a60e961b75ed --- /dev/null +++ b/net-misc/turbovnc/turbovnc-3.1.3.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_OPT_USE=viewer +inherit cmake desktop java-pkg-opt-2 optfeature verify-sig + +DESCRIPTION="A fast replacement for TigerVNC" +HOMEPAGE="https://www.turbovnc.org/" +SRC_URI=" + https://github.com/TurboVNC/turbovnc/releases/download/${PV}/turbovnc-${PV}.tar.gz + verify-sig? ( https://github.com/TurboVNC/turbovnc/releases/download/${PV}/turbovnc-${PV}.tar.gz.sig ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+server +ssl +viewer" +REQUIRED_USE="|| ( server viewer )" + +COMMON_DEPEND=" + x11-apps/xauth + x11-libs/libX11 + x11-libs/libXext + x11-misc/xkeyboard-config + server? ( + media-libs/libjpeg-turbo:= + sys-libs/pam + sys-libs/zlib + virtual/opengl + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXfont2 + x11-libs/pixman + ssl? ( dev-libs/openssl:= ) + !net-misc/tigervnc[server] + ) + viewer? ( + media-libs/libjpeg-turbo:=[java] + x11-libs/libXi + !net-misc/tigervnc[viewer(+)] + ) +" + +RDEPEND=" + ${COMMON_DEPEND} + x11-apps/xkbcomp + viewer? ( >=virtual/jre-1.8:* ) +" + +# libbz2.so.1, libfontenc.so.1 and libfreetype.so.6 are used by libXfont2.so.2 +# but cmake will look for them, so add them here +DEPEND=" + ${COMMON_DEPEND} + x11-libs/xtrans + viewer? ( >=virtual/jdk-1.8:* ) + server? ( + app-arch/bzip2 + media-libs/freetype + x11-libs/libfontenc + ) +" + +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-vgl-turbovnc ) +" + +PATCHES=( + "${FILESDIR}"/"${PN}"-3.0.90-fix-musl-compilation.patch +) + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/vgl-turbovnc.asc + +#879797 - BSD functions +QA_CONFIG_IMPL_DECL_SKIP=( strlcat strlcpy ) + +pkg_pretend() { + if use ssl && ! use server; then + einfo "USE=\"ssl\" selected but USE=\"server\" is not. The SSL support is unused" + fi +} + +src_prepare() { + use viewer && java-pkg-opt-2_src_prepare + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DTVNC_BUILDVIEWER=$(usex viewer) + -DTVNC_BUILDSERVER=$(usex server) + -DTVNC_BUILDWEBSERVER=$(usex server) + ) + + if use server ; then + mycmakeargs+=( + -DTVNC_SYSTEMLIBS=ON + -DTVNC_SYSTEMX11=ON + -DXKB_BIN_DIRECTORY=/usr/bin + -DXKB_DFLT_RULES=base + ) + if use ssl ; then + # 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 + ) + else + mycmakeargs+=( -DTVNC_USETLS=OFF ) + fi + fi + + if use viewer ; then + export JAVACFLAGS="$(java-pkg_javac-args)" + export JNI_CFLAGS="$(java-pkg_get-jni-cflags)" + fi + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use viewer ; 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 + if use server; then + rm -r "${ED}"/etc/init.d/ || die + rm -r "${ED}"/etc/sysconfig/ || die + fi + + # Conflicts with x11-base/xorg-server + find "${ED}"/usr/share/man/man1/ -name Xserver.1\* -delete || die + + einstalldocs +} + +pkg_postinst() { + use server && optfeature "dbus support" sys-apps/dbus +} |