public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/
Date: Mon,  6 Dec 2021 23:36:58 +0000 (UTC)	[thread overview]
Message-ID: <1638833774.c1cdfd13843b40362a3b0a538f0a9bdbe564f050.sam@gentoo> (raw)

commit:     c1cdfd13843b40362a3b0a538f0a9bdbe564f050
Author:     Jan Psota <jasiupsota <AT> gmail <DOT> com>
AuthorDate: Mon Dec  6 21:36:38 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  6 23:36:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1cdfd13

net-misc/tigervnc: live ebuild for xorg-server-21.1.1 support

[sam: Includes its own copy of xserver for now (not ideal, but this package
already uses a bunch of patched versions of things).]

Closes: https://bugs.gentoo.org/828469
Signed-off-by: Jan Psota <jasiupsota <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/tigervnc/Manifest             |   1 +
 net-misc/tigervnc/tigervnc-9999.ebuild | 185 +++++++++++++++++++++++++++++++++
 2 files changed, 186 insertions(+)

diff --git a/net-misc/tigervnc/Manifest b/net-misc/tigervnc/Manifest
index 7c7e79a01771..4f5a3da9f469 100644
--- a/net-misc/tigervnc/Manifest
+++ b/net-misc/tigervnc/Manifest
@@ -1,3 +1,4 @@
 DIST tigervnc-1.11.0.tar.gz 1346992 BLAKE2B 4935f78154ea1567d58f542962f1a87688cd195e9d1aff8295e99aedc91a87cea7b686e9ef34e68f4abb1e3ce7a93122baff1d6f3564e4cc60b967a7bca6f8ac SHA512 262676f065de6dfb72b1482c0ef1e6d8b764f53360ae6114debbe0986eede45d27e283e1452a72cb9b7540657ab347fd36df5b30b72d6db4a0f8cbea5b591025
 DIST tigervnc-1.9.0.tar.gz 1506520 BLAKE2B 292c2e5fb9ffe2573e216257e889d259abfdca5964559492c318e24ea00563211e7477a4f1b2b09d0e962343d4aeb2c12dcfdd6857a3282882ee9f91fdf8103a SHA512 333910f567e6b5e4a5a22d898b2d4c3f4b834cb4cc8fc13ff55d31401894c0d5122a127692ec5eb51e412c945ff3ea5b8146f9ab22cbe1e47541e09239ec8c9d
 DIST xorg-server-1.20.0.tar.bz2 6096838 BLAKE2B 34ee6d6dbbde54d54e082a0791e85ad52d728e239a7d8fadb75ebcbdbaab8752b90ca6d075f096d971db7ec68ce4ecac5c70fcf536ce23c20b8dce8f32e2c046 SHA512 1489e8511c9da682ef0460182dfeeddd241c72d4ef4d206d9706f1e39572c09953df851fab18cefb65a1ee4c6710c6ba13c63c9c9fc0bc1b5f12c50780412cde
+DIST xorg-server-21.1.1.tar.xz 4958508 BLAKE2B fadac208773700b91003ef18d46e6f2c6b501e59b7491c943f406641e9ff3837a8126034c023e9b6d2d4131ee438c1ef94fa458af1828d4be325519b47069a79 SHA512 8608ed9c1537c95e8a3adea5e3e372a3c5eb841f8e27c84283093f22fb1909e16a800006510da684b13f8f237f33b8a4be3e2537f5f9ab9af4c5ad12770eef0d

diff --git a/net-misc/tigervnc/tigervnc-9999.ebuild b/net-misc/tigervnc/tigervnc-9999.ebuild
new file mode 100644
index 000000000000..01ff15488f6e
--- /dev/null
+++ b/net-misc/tigervnc/tigervnc-9999.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+CMAKE_IN_SOURCE_BUILD=1
+
+inherit autotools cmake flag-o-matic git-r3 systemd xdg
+
+XSERVER_VERSION="21.1.1"
+
+DESCRIPTION="Remote desktop viewer display system"
+HOMEPAGE="http://www.tigervnc.org"
+SRC_URI="server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz )"
+EGIT_REPO_URI="https://github.com/TigerVNC/tigervnc/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="dri3 +drm gnutls nls +opengl pam server xinerama +xorgmodule"
+
+CDEPEND="
+	virtual/jpeg:0
+	sys-libs/zlib:=
+	>=x11-libs/fltk-1.3.1
+	gnutls? ( net-libs/gnutls:= )
+	nls? ( virtual/libiconv )
+	pam? ( sys-libs/pam )
+	x11-libs/libX11
+	x11-libs/libXext
+	x11-libs/libXrender
+	x11-libs/libxcvt
+	x11-libs/pixman
+	server? (
+		x11-libs/libXau
+		x11-libs/libXdamage
+		x11-libs/libXdmcp
+		x11-libs/libXfont2
+		x11-libs/libXtst
+		>=x11-libs/pixman-0.27.2
+		>=x11-apps/xauth-1.0.3
+		x11-apps/xsetroot
+		>=x11-misc/xkeyboard-config-2.4.1-r3
+		xorgmodule? ( =x11-base/xorg-server-${XSERVER_VERSION%.*}* )
+		drm? ( x11-libs/libdrm )
+		dev-libs/openssl:0=
+	)
+	xinerama? ( x11-libs/libXinerama )
+	"
+
+RDEPEND="${CDEPEND}
+	!net-misc/tightvnc
+	!net-misc/vnc
+	!net-misc/xf4vnc"
+
+DEPEND="${CDEPEND}
+	nls? ( sys-devel/gettext )
+	x11-base/xorg-proto
+	media-libs/fontconfig
+	x11-libs/libICE
+	x11-libs/libSM
+	x11-libs/libXcursor
+	x11-libs/libXfixes
+	x11-libs/libXft
+	x11-libs/libXi
+	server? (
+		dev-libs/libbsd
+		x11-libs/libxkbfile
+		x11-libs/libxshmfence
+		virtual/pkgconfig
+		media-fonts/font-util
+		x11-misc/util-macros
+		>=x11-libs/xtrans-1.3.3
+		opengl? ( >=media-libs/mesa-10.3.4-r1 )
+	)"
+
+src_unpack() {
+	git-r3_src_unpack
+	unpack xorg-server-${XSERVER_VERSION}.tar.xz
+}
+
+src_prepare() {
+	if use server; then
+		cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die
+	fi
+
+	cmake_src_prepare
+
+	if use server; then
+		cd unix/xserver || die
+		eapply ../xserver${XSERVER_VERSION}.patch
+		eautoreconf
+		sed -i 's:\(present.h\):../present/\1:' os/utils.c || die
+		sed -i '/strcmp.*-fakescreenfps/,/^        \}/d' os/utils.c || die
+	fi
+	cd "${WORKDIR}" && sed -i 's:\(drm_fourcc.h\):libdrm/\1:' $(grep drm_fourcc.h -rl .) || die
+}
+
+src_configure() {
+	if use arm || use hppa; then
+		append-flags "-fPIC"
+	fi
+
+	local mycmakeargs=(
+		-DENABLE_GNUTLS=$(usex gnutls)
+		-DENABLE_NLS=$(usex nls)
+		-DENABLE_PAM=$(usex pam)
+		-DBUILD_JAVA=no
+	)
+
+	cmake_src_configure
+
+	if use server; then
+		cd unix/xserver || die
+		econf \
+			$(use_enable opengl glx) \
+			$(use_enable drm libdrm) \
+			--disable-config-hal \
+			--disable-config-udev \
+			--disable-devel-docs \
+			--disable-dmx \
+			--disable-dri \
+			$(use_enable dri3) \
+			--disable-glamor \
+			--disable-kdrive \
+			--disable-libunwind \
+			--disable-linux-acpi \
+			--disable-record \
+			--disable-selective-werror \
+			--disable-static \
+			--disable-unit-tests \
+			--disable-xephyr \
+			$(use_enable xinerama) \
+			--disable-xnest \
+			--disable-xorg \
+			--disable-xvfb \
+			--disable-xwin \
+			--disable-xwayland \
+			--enable-dri2 \
+			--with-pic \
+			--without-dtrace \
+			--disable-present \
+			--with-sha1=libcrypto
+	fi
+}
+
+src_compile() {
+	cmake_src_compile
+
+	if use server; then
+		# deps of the vnc module and the module itself
+		local d subdirs=(
+			fb xfixes Xext dbe $(usex opengl glx "") $(usev dri3) randr render
+			damageext miext Xi xkb composite dix mi os hw/vnc
+		)
+		for d in "${subdirs[@]}"; do
+			emake -C unix/xserver/"${d}"
+		done
+	fi
+}
+
+src_install() {
+	cmake_src_install
+
+	if use server; then
+		emake -C unix/xserver/hw/vnc DESTDIR="${D}" install
+		if ! use xorgmodule; then
+			rm -rv "${ED}"/usr/$(get_libdir)/xorg || die
+		else
+			rm -v "${ED}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die
+		fi
+
+		newconfd "${FILESDIR}"/${PN}.confd ${PN}
+		newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+		systemd_douserunit unix/vncserver/vncserver@.service
+	else
+		local f
+		for f in x0vncserver vncconfig; do
+			rm "${ED}"/usr/bin/${f} || die
+			rm "${ED}"/usr/share/man/man1/${f}.1 || die
+		done
+		rm -r "${ED}"/usr/{sbin,libexec} || die
+		rm -r "${ED}"/usr/share/man/man8 || die
+	fi
+}


             reply	other threads:[~2021-12-06 23:37 UTC|newest]

Thread overview: 200+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 23:36 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-17 14:13 [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/ Arthur Zamarin
2025-05-15 16:41 Arthur Zamarin
2025-05-15 16:41 Arthur Zamarin
2025-05-15 16:41 Arthur Zamarin
2025-05-15  8:37 Sam James
2025-04-12 16:27 Viorel Munteanu
2025-03-24 16:25 Arthur Zamarin
2025-03-23 15:16 Sam James
2025-03-23  9:33 Sam James
2025-03-23  9:33 Sam James
2025-03-23  9:33 Sam James
2025-02-15  9:29 Ulrich Müller
2025-02-13 17:38 Viorel Munteanu
2025-02-13 17:38 Viorel Munteanu
2025-01-16 17:00 Viorel Munteanu
2024-12-26 17:50 Ionen Wolkens
2024-12-01 12:53 Viorel Munteanu
2024-11-26  6:49 Sam James
2024-11-26  6:49 Sam James
2024-11-26  6:42 Sam James
2024-11-26  6:42 Sam James
2024-11-26  6:42 Sam James
2024-11-17 12:51 Viorel Munteanu
2024-11-01  9:45 Viorel Munteanu
2024-11-01  9:45 Viorel Munteanu
2024-10-27 16:43 Viorel Munteanu
2024-10-24 10:23 Sam James
2024-10-24 10:23 Sam James
2024-10-24 10:20 Arthur Zamarin
2024-10-24 10:20 Arthur Zamarin
2024-10-24  6:14 Viorel Munteanu
2024-09-21 15:54 Viorel Munteanu
2024-09-01 10:56 Viorel Munteanu
2024-08-27 21:04 Sam James
2024-08-27 10:29 Jakov Smolić
2024-08-27 10:29 Jakov Smolić
2024-08-27 10:29 Jakov Smolić
2024-08-27 10:29 Jakov Smolić
2024-06-22  8:07 Viorel Munteanu
2024-06-20 16:44 Viorel Munteanu
2023-08-03  5:53 Viorel Munteanu
2023-07-25 13:45 Sam James
2023-07-25 13:45 Sam James
2023-07-25 13:45 Sam James
2023-07-25 13:29 Sam James
2023-06-03  1:47 Matt Turner
2023-05-30  5:36 Viorel Munteanu
2023-05-29 17:49 Arthur Zamarin
2023-05-29 13:58 Sam James
2023-05-29 13:10 Sam James
2023-05-29 13:01 Sam James
2023-05-29 13:01 Sam James
2023-05-03 17:06 Viorel Munteanu
2023-04-29 15:48 Arthur Zamarin
2023-04-28  8:01 Viorel Munteanu
2023-04-28  8:01 Viorel Munteanu
2023-04-19  9:59 Viorel Munteanu
2023-04-14 19:55 Sam James
2023-04-14 19:55 Sam James
2023-04-14 19:33 Sam James
2023-03-30 17:32 Arthur Zamarin
2023-03-09  1:10 Sam James
2023-03-09  1:10 Sam James
2023-03-08 23:35 Sam James
2023-03-08 11:12 Arthur Zamarin
2023-03-01  6:15 Viorel Munteanu
2023-02-03 11:18 Viorel Munteanu
2023-02-03 11:18 Viorel Munteanu
2022-11-02 16:17 Viorel Munteanu
2022-08-23  5:34 Sam James
2022-08-14  3:19 WANG Xuerui
2022-08-05  6:57 Arthur Zamarin
2022-08-04  6:27 Arthur Zamarin
2022-08-04  6:27 Arthur Zamarin
2022-08-04  5:21 Joonas Niilola
2022-08-04  5:21 Joonas Niilola
2022-07-07 17:24 Mike Gilbert
2022-06-23  5:51 Sam James
2022-06-16 10:26 Jakov Smolić
2022-06-16  9:56 Jakov Smolić
2022-06-16  9:33 Jakov Smolić
2022-06-16  7:41 Joonas Niilola
2022-06-16  6:50 Joonas Niilola
2022-05-14  1:03 Sam James
2022-05-13 20:04 Sam James
2022-05-09  9:58 Jakov Smolić
2022-05-08 18:06 Sam James
2022-05-07 14:30 Jakov Smolić
2022-05-07 10:05 Arthur Zamarin
2022-05-07 10:03 Arthur Zamarin
2022-04-03 10:02 Florian Schmaus
2022-04-03 10:02 Florian Schmaus
2022-04-03 10:02 Florian Schmaus
2022-03-31 11:56 Joonas Niilola
2022-03-31 11:56 Joonas Niilola
2022-03-31 11:56 Joonas Niilola
2022-03-18 18:52 Sam James
2022-03-18 18:52 Sam James
2022-03-18 18:52 Sam James
2021-12-07 23:16 Sam James
2021-09-12 21:12 Ionen Wolkens
2021-08-03 16:39 Ionen Wolkens
2021-08-03 15:36 Agostino Sarubbo
2021-08-03 10:57 Agostino Sarubbo
2021-08-02  4:04 Agostino Sarubbo
2021-08-02  4:03 Agostino Sarubbo
2021-08-02  3:18 Sam James
2021-06-29  4:57 Sam James
2021-06-29  4:57 Sam James
2021-06-29  4:57 Sam James
2021-05-01 14:30 Mikle Kolyada
2021-02-21 13:53 Joonas Niilola
2020-12-14 21:51 Sergei Trofimovich
2020-10-03 17:20 Ulrich Müller
2020-10-03  9:13 Ulrich Müller
2020-10-03  9:13 Ulrich Müller
2020-10-01 12:52 Jeroen Roovers
2020-10-01 11:55 Jeroen Roovers
2019-10-24  2:54 Joonas Niilola
2019-10-23 13:46 Joonas Niilola
2019-10-12 20:30 Mikle Kolyada
2018-12-16 21:58 Jeroen Roovers
2018-12-04 16:04 Mikle Kolyada
2018-11-28 12:15 Tobias Klausmann
2018-11-18 10:38 Sergei Trofimovich
2018-11-05 16:02 Mikle Kolyada
2018-11-05  7:51 Sergei Trofimovich
2018-11-05  7:51 Sergei Trofimovich
2018-11-04 19:14 Thomas Deutschmann
2018-11-04 14:16 Sergei Trofimovich
2018-08-05 21:48 Patrice Clement
2018-05-20 16:16 Matt Turner
2018-05-20 16:16 Matt Turner
2018-05-20 16:16 Matt Turner
2018-05-16  8:37 Jeroen Roovers
2018-05-16  8:34 Jeroen Roovers
2018-05-15 19:59 Mikle Kolyada
2018-05-15 19:56 Mikle Kolyada
2018-05-14 19:21 Tobias Klausmann
2018-05-13 23:34 Aaron Bauman
2018-05-13 22:06 Thomas Deutschmann
2018-05-13  9:53 Sergei Trofimovich
2018-05-12 15:33 Sergei Trofimovich
2018-05-08  6:47 Matt Turner
2018-05-08  6:47 Matt Turner
2018-05-08  6:47 Matt Turner
2018-03-31 19:01 Mart Raudsepp
2017-12-24 17:11 Patrice Clement
2017-12-24 17:11 Patrice Clement
2017-12-24 17:11 Patrice Clement
2017-11-24 22:09 Sergei Trofimovich
2017-06-13 12:31 Agostino Sarubbo
2017-06-08 10:16 Agostino Sarubbo
2017-06-08  5:06 Markus Meier
2017-05-25  8:36 Patrice Clement
2017-05-07  9:08 Michał Górny
2017-04-28  7:11 Jeroen Roovers
2017-04-27 17:00 Alice Ferrazzi
2017-04-27 16:17 Alice Ferrazzi
2017-04-27  6:05 Alice Ferrazzi
2017-03-26 18:53 Michael Orlitzky
2017-03-24 15:38 Matt Turner
2017-03-24 15:38 Matt Turner
2017-03-17 10:42 Agostino Sarubbo
2017-03-17 10:15 Agostino Sarubbo
2017-03-16 13:01 Jeroen Roovers
2017-03-16  7:59 Michael Weber
2017-03-05  8:48 Patrice Clement
2017-02-12 20:08 Markus Meier
2017-01-29 20:30 Jeroen Roovers
2017-01-29 13:55 Agostino Sarubbo
2017-01-28 19:52 Tobias Klausmann
2017-01-27 20:49 Thomas Deutschmann
2017-01-25 15:52 Agostino Sarubbo
2016-11-15 22:29 David Seifert
2016-11-15 22:29 David Seifert
2016-11-13  9:18 Agostino Sarubbo
2016-11-12 11:55 Agostino Sarubbo
2016-11-12 11:55 Agostino Sarubbo
2016-10-21  8:52 Patrice Clement
2016-10-01 12:11 Jeroen Roovers
2016-09-27 18:43 Markus Meier
2016-09-22 17:03 Tobias Klausmann
2016-09-17 11:19 Pacho Ramos
2016-09-17 11:19 Pacho Ramos
2016-08-30 20:09 Markus Meier
2016-08-21 17:57 Pacho Ramos
2016-08-03  4:32 Jeroen Roovers
2016-07-11  5:50 Jeroen Roovers
2016-06-12 10:45 Pacho Ramos
2016-06-02 17:29 Tobias Klausmann
2016-05-24 20:13 Markus Meier
2016-05-24  7:58 Michał Górny
2016-05-21 15:35 Pacho Ramos
2016-01-29 15:55 Michał Górny
2016-01-29 15:55 Michał Górny
2016-01-27 20:48 Michał Górny
2016-01-27 20:48 Michał Górny
2016-01-09 14:35 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1638833774.c1cdfd13843b40362a3b0a538f0a9bdbe564f050.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox