Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/tigervnc/
Date: Thu, 31 Mar 2022 11:56:23
Message-Id: 1648727776.65dae4ae73b4d34bcac425569196686e9e35aca3.juippis@gentoo
1 commit: 65dae4ae73b4d34bcac425569196686e9e35aca3
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Fri Mar 25 11:10:51 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 31 11:56:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65dae4ae
7
8 net-misc/tigervnc: drop 1.12.0-r3
9
10 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/24743
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 net-misc/tigervnc/tigervnc-1.12.0-r3.ebuild | 201 ----------------------------
15 1 file changed, 201 deletions(-)
16
17 diff --git a/net-misc/tigervnc/tigervnc-1.12.0-r3.ebuild b/net-misc/tigervnc/tigervnc-1.12.0-r3.ebuild
18 deleted file mode 100644
19 index a87123a7d275..000000000000
20 --- a/net-misc/tigervnc/tigervnc-1.12.0-r3.ebuild
21 +++ /dev/null
22 @@ -1,201 +0,0 @@
23 -# Copyright 1999-2022 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -CMAKE_IN_SOURCE_BUILD=1
29 -inherit autotools cmake flag-o-matic java-pkg-opt-2 optfeature systemd xdg
30 -
31 -XSERVER_VERSION="21.1.1"
32 -
33 -DESCRIPTION="Remote desktop viewer display system"
34 -HOMEPAGE="http://www.tigervnc.org"
35 -SRC_URI="https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz
36 - server? (
37 - ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz
38 - https://github.com/TigerVNC/tigervnc/commit/0c5a2b2e7759c2829c07186cfce4d24aa9b5274e.patch -> ${P}-xserver-21.patch
39 - )"
40 -
41 -LICENSE="GPL-2"
42 -SLOT="0"
43 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
44 -IUSE="dri3 +drm gnutls java nls +opengl server xinerama +xorgmodule"
45 -
46 -CDEPEND="
47 - virtual/jpeg:0
48 - sys-libs/zlib:=
49 - >=x11-libs/fltk-1.3.1
50 - sys-libs/pam
51 - x11-libs/libX11
52 - x11-libs/libXext
53 - x11-libs/libXrender
54 - x11-libs/pixman
55 - gnutls? ( net-libs/gnutls:= )
56 - nls? ( virtual/libiconv )
57 - server? (
58 - x11-libs/libXau
59 - x11-libs/libXdamage
60 - x11-libs/libXdmcp
61 - x11-libs/libXfont2
62 - x11-libs/libXtst
63 - >=x11-libs/pixman-0.27.2
64 - >=x11-apps/xauth-1.0.3
65 - x11-apps/xsetroot
66 - >=x11-misc/xkeyboard-config-2.4.1-r3
67 - xorgmodule? ( =x11-base/xorg-server-${XSERVER_VERSION%.*}* )
68 - drm? ( x11-libs/libdrm )
69 - dev-libs/openssl:0=
70 - )
71 - xinerama? ( x11-libs/libXinerama )
72 - "
73 -
74 -RDEPEND="${CDEPEND}
75 - java? ( virtual/jre:1.8 )
76 - server? (
77 - dev-lang/perl
78 - sys-process/psmisc
79 - )"
80 -
81 -DEPEND="${CDEPEND}
82 - nls? ( sys-devel/gettext )
83 - java? ( virtual/jdk:1.8 )
84 - x11-base/xorg-proto
85 - media-libs/fontconfig
86 - x11-libs/libICE
87 - x11-libs/libSM
88 - x11-libs/libXcursor
89 - x11-libs/libXfixes
90 - x11-libs/libXft
91 - x11-libs/libXi
92 - server? (
93 - dev-libs/libbsd
94 - x11-libs/libxkbfile
95 - x11-libs/libxshmfence
96 - virtual/pkgconfig
97 - media-fonts/font-util
98 - x11-misc/util-macros
99 - >=x11-libs/xtrans-1.3.3
100 - opengl? ( >=media-libs/mesa-10.3.4-r1 )
101 - )"
102 -
103 -PATCHES=(
104 - # Restore Java viewer
105 - "${FILESDIR}"/${PN}-1.11.0-install-java-viewer.patch
106 - "${FILESDIR}"/${PN}-1.12.0-xsession-path.patch
107 -)
108 -
109 -src_prepare() {
110 - if use server; then
111 - cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die
112 - eapply "${FILESDIR}"/${P}-xorg-1.21.patch
113 - eapply "${DISTDIR}"/${P}-xserver-21.patch
114 - fi
115 -
116 - cmake_src_prepare
117 -
118 - if use server; then
119 - cd unix/xserver || die
120 - eapply ../xserver${XSERVER_VERSION}.patch
121 - eautoreconf
122 - sed -i 's:\(present.h\):../present/\1:' os/utils.c || die
123 - sed -i '/strcmp.*-fakescreenfps/,/^ \}/d' os/utils.c || die
124 - fi
125 -}
126 -
127 -src_configure() {
128 - if use arm || use hppa; then
129 - append-flags "-fPIC"
130 - fi
131 -
132 - local mycmakeargs=(
133 - -DENABLE_GNUTLS=$(usex gnutls)
134 - -DENABLE_NLS=$(usex nls)
135 - -DBUILD_JAVA=$(usex java)
136 - )
137 -
138 - cmake_src_configure
139 -
140 - if use server; then
141 - cd unix/xserver || die
142 - econf \
143 - $(use_enable opengl glx) \
144 - $(use_enable drm libdrm) \
145 - --disable-config-hal \
146 - --disable-config-udev \
147 - --disable-devel-docs \
148 - --disable-dri \
149 - $(use_enable dri3) \
150 - --disable-glamor \
151 - --disable-kdrive \
152 - --disable-libunwind \
153 - --disable-linux-acpi \
154 - --disable-record \
155 - --disable-selective-werror \
156 - --disable-static \
157 - --disable-unit-tests \
158 - --disable-xephyr \
159 - $(use_enable xinerama) \
160 - --disable-xnest \
161 - --disable-xorg \
162 - --disable-xvfb \
163 - --disable-xwin \
164 - --enable-dri2 \
165 - --with-pic \
166 - --without-dtrace \
167 - --disable-present \
168 - --with-sha1=libcrypto
169 - fi
170 -}
171 -
172 -src_compile() {
173 - cmake_src_compile
174 -
175 - if use server; then
176 - # deps of the vnc module and the module itself
177 - local d subdirs=(
178 - fb xfixes Xext dbe $(usex opengl glx "") $(usev dri3) randr render
179 - damageext miext Xi xkb composite dix mi os hw/vnc
180 - )
181 - for d in "${subdirs[@]}"; do
182 - emake -C unix/xserver/"${d}"
183 - done
184 - fi
185 -}
186 -
187 -src_install() {
188 - cmake_src_install
189 -
190 - if use server; then
191 - emake -C unix/xserver/hw/vnc DESTDIR="${D}" install
192 - if ! use xorgmodule; then
193 - rm -rv "${ED}"/usr/$(get_libdir)/xorg || die
194 - else
195 - rm -v "${ED}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die
196 - fi
197 -
198 - newconfd "${FILESDIR}"/${PN}-${PV}.confd ${PN}
199 - newinitd "${FILESDIR}"/${PN}-${PV}.initd ${PN}
200 -
201 - systemd_douserunit unix/vncserver/vncserver@.service
202 -
203 - # comment out pam_selinux.so, the server does not start if missing
204 - # part of bug #746227
205 - sed -i -e '/pam_selinux/s/^/#/' "${ED}"/etc/pam.d/tigervnc || die
206 - else
207 - local f
208 - for f in x0vncserver vncconfig; do
209 - rm "${ED}"/usr/bin/${f} || die
210 - rm "${ED}"/usr/share/man/man1/${f}.1 || die
211 - done
212 - rm -r "${ED}"/usr/{sbin,libexec} || die
213 - rm -r "${ED}"/usr/share/man/man8 || die
214 - fi
215 -}
216 -
217 -pkg_postinst() {
218 - local OPTIONAL_DM="gnome-base/gdm x11-misc/lightdm x11-misc/sddm x11-misc/slim"
219 -
220 - use server && \
221 - optfeature_header "Install any additional display manager package:" && \
222 - optfeature "proper session support" ${OPTIONAL_DM}
223 -}