commit:     7207649f54237df77ac5b1a56756e998d1ce6b9e
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 22 08:06:56 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Jun 22 08:07:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7207649f

net-misc/tigervnc: sync live ebuild

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 net-misc/tigervnc/tigervnc-9999.ebuild | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/net-misc/tigervnc/tigervnc-9999.ebuild 
b/net-misc/tigervnc/tigervnc-9999.ebuild
index 23b38081e296..24dd8515063c 100644
--- a/net-misc/tigervnc/tigervnc-9999.ebuild
+++ b/net-misc/tigervnc/tigervnc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,8 +6,8 @@ EAPI=8
 CMAKE_IN_SOURCE_BUILD=1
 inherit autotools cmake flag-o-matic java-pkg-opt-2 optfeature systemd xdg
 
-XSERVER_VERSION="21.1.8"
-XSERVER_PATCH_VERSION="21.1.1"
+XSERVER_VERSION="21.1.13"
+XSERVER_PATCH_VERSION="21"
 
 DESCRIPTION="Remote desktop viewer display system"
 HOMEPAGE="https://tigervnc.org";
@@ -121,7 +121,6 @@ src_prepare() {
                cd unix/xserver || die
                eapply ../xserver${XSERVER_PATCH_VERSION}.patch
                eautoreconf
-               sed -i 's:\(present.h\):../present/\1:' os/utils.c || die
                sed -i '/strcmp.*-fakescreenfps/,/^        \}/d' os/utils.c || 
die
 
                if use drm; then
@@ -173,7 +172,6 @@ src_configure() {
                        --enable-dri2 \
                        --with-pic \
                        --without-dtrace \
-                       --disable-present \
                        --with-sha1=libcrypto
        fi
 }
@@ -185,7 +183,7 @@ src_compile() {
                # 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
+                       damageext miext Xi xkb composite dix mi os present 
hw/vnc
                )
                for d in "${subdirs[@]}"; do
                        emake -C unix/xserver/"${d}"
@@ -201,7 +199,7 @@ src_install() {
                rm -v 
"${ED}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die
 
                newconfd "${FILESDIR}"/${PN}-1.13.1.confd ${PN}
-               newinitd "${FILESDIR}"/${PN}-1.13.1.initd ${PN}
+               newinitd "${FILESDIR}"/${PN}-1.13.90.initd ${PN}
 
                systemd_douserunit unix/vncserver/vncserver@.service
 
@@ -217,7 +215,11 @@ src_install() {
 pkg_postinst() {
        xdg_pkg_postinst
 
-       use server && elog 'OpenRC users: please migrate to one service per 
display as documented here' #FIXME: add link
+       use server && [[ -n ${REPLACING_VERSIONS} ]] && ver_test 
"${REPLACING_VERSIONS}" -lt 1.13.1-r3 && {
+               elog 'OpenRC users: please migrate to one service per display 
as documented here:'
+               elog 
'https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:'
+               elog
+       }
 
        local OPTIONAL_DM="gnome-base/gdm x11-misc/lightdm x11-misc/sddm 
x11-misc/slim"
        use server && \

Reply via email to