Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-server/
Date: Tue, 22 Jun 2021 21:28:01
Message-Id: 1624397239.0386173ffca23490f853383c84c0391d524eebca.slashbeast@gentoo
1 commit: 0386173ffca23490f853383c84c0391d524eebca
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 22 21:27:19 2021 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 22 21:27:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0386173f
7
8 x11-base/xorg-server: 1.20.11-r1 revbump with split of xwayland
9
10 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
11
12 x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild | 216 +++++++++++++++++++++
13 1 file changed, 216 insertions(+)
14
15 diff --git a/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild b/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild
16 new file mode 100644
17 index 00000000000..d7a28ea7080
18 --- /dev/null
19 +++ b/x11-base/xorg-server/xorg-server-1.20.11-r1.ebuild
20 @@ -0,0 +1,216 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +XORG_DOC=doc
27 +inherit xorg-3 multilib flag-o-matic toolchain-funcs
28 +EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/xserver.git"
29 +
30 +DESCRIPTION="X.Org X servers"
31 +SLOT="0/${PV}"
32 +if [[ ${PV} != 9999* ]]; then
33 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
34 +fi
35 +
36 +IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb"
37 +IUSE="${IUSE_SERVERS} debug +elogind ipv6 minimal selinux suid systemd test +udev unwind xcsecurity"
38 +RESTRICT="!test? ( test )"
39 +
40 +CDEPEND="
41 + media-libs/libglvnd[X]
42 + dev-libs/openssl:0=
43 + >=x11-apps/iceauth-1.0.2
44 + >=x11-apps/rgb-1.0.3
45 + >=x11-apps/xauth-1.0.3
46 + x11-apps/xkbcomp
47 + >=x11-libs/libdrm-2.4.89
48 + >=x11-libs/libpciaccess-0.12.901
49 + >=x11-libs/libXau-1.0.4
50 + >=x11-libs/libXdmcp-1.0.2
51 + >=x11-libs/libXfont2-2.0.1
52 + >=x11-libs/libxkbfile-1.0.4
53 + >=x11-libs/libxshmfence-1.1
54 + >=x11-libs/pixman-0.27.2
55 + >=x11-misc/xbitmaps-1.0.1
56 + >=x11-misc/xkeyboard-config-2.4.1-r3
57 + dmx? (
58 + x11-libs/libXt
59 + >=x11-libs/libdmx-1.0.99.1
60 + >=x11-libs/libX11-1.1.5
61 + >=x11-libs/libXaw-1.0.4
62 + >=x11-libs/libXext-1.0.99.4
63 + >=x11-libs/libXfixes-5.0
64 + >=x11-libs/libXi-1.2.99.1
65 + >=x11-libs/libXmu-1.0.3
66 + x11-libs/libXrender
67 + >=x11-libs/libXres-1.0.3
68 + >=x11-libs/libXtst-1.0.99.2
69 + )
70 + kdrive? (
71 + >=x11-libs/libXext-1.0.5
72 + x11-libs/libXv
73 + )
74 + xephyr? (
75 + x11-libs/libxcb[xkb]
76 + x11-libs/xcb-util
77 + x11-libs/xcb-util-image
78 + x11-libs/xcb-util-keysyms
79 + x11-libs/xcb-util-renderutil
80 + x11-libs/xcb-util-wm
81 + )
82 + !minimal? (
83 + >=x11-libs/libX11-1.1.5
84 + >=x11-libs/libXext-1.0.5
85 + >=media-libs/mesa-18[X(+),egl,gbm]
86 + >=media-libs/libepoxy-1.5.4[X,egl(+)]
87 + )
88 + udev? ( virtual/libudev:= )
89 + unwind? ( sys-libs/libunwind )
90 + >=x11-apps/xinit-1.3.3-r1
91 + systemd? (
92 + sys-apps/dbus
93 + sys-apps/systemd
94 + )
95 + elogind? (
96 + sys-apps/dbus
97 + sys-auth/elogind[pam]
98 + sys-auth/pambase[elogind]
99 + )
100 + !!x11-drivers/nvidia-drivers[-libglvnd(+)]
101 +"
102 +DEPEND="${CDEPEND}
103 + >=x11-base/xorg-proto-2018.4
104 + >=x11-libs/xtrans-1.3.5
105 + dmx? (
106 + doc? (
107 + || (
108 + www-client/links
109 + www-client/lynx
110 + www-client/w3m
111 + )
112 + )
113 + )
114 + wayland? ( x11-base/xwayland )
115 +"
116 +RDEPEND="${CDEPEND}
117 + !systemd? ( gui-libs/display-manager-init )
118 + selinux? ( sec-policy/selinux-xserver )
119 +"
120 +BDEPEND="
121 + sys-devel/flex
122 +"
123 +PDEPEND="
124 + xorg? ( >=x11-base/xorg-drivers-$(ver_cut 1-2) )"
125 +
126 +REQUIRED_USE="!minimal? (
127 + || ( ${IUSE_SERVERS} )
128 + )
129 + elogind? ( udev )
130 + ?? ( elogind systemd )
131 + minimal? ( !wayland )
132 + xephyr? ( kdrive )"
133 +
134 +UPSTREAMED_PATCHES=(
135 +)
136 +
137 +PATCHES=(
138 + "${UPSTREAMED_PATCHES[@]}"
139 + "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
140 + # needed for new eselect-opengl, bug #541232
141 + "${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch
142 +)
143 +
144 +src_configure() {
145 + # localstatedir is used for the log location; we need to override the default
146 + # from ebuild.sh
147 + # sysconfdir is used for the xorg.conf location; same applies
148 + # NOTE: fop is used for doc generating; and I have no idea if Gentoo
149 + # package it somewhere
150 + local XORG_CONFIGURE_OPTIONS=(
151 + $(use_enable ipv6)
152 + $(use_enable debug)
153 + $(use_enable dmx)
154 + $(use_enable kdrive)
155 + $(use_enable test unit-tests)
156 + $(use_enable unwind libunwind)
157 + $(use_enable !minimal record)
158 + $(use_enable !minimal xfree86-utils)
159 + $(use_enable !minimal dri)
160 + $(use_enable !minimal dri2)
161 + $(use_enable !minimal dri3)
162 + $(use_enable !minimal glamor)
163 + $(use_enable !minimal glx)
164 + $(use_enable xcsecurity)
165 + $(use_enable xephyr)
166 + $(use_enable xnest)
167 + $(use_enable xorg)
168 + $(use_enable xvfb)
169 + $(use_enable udev config-udev)
170 + $(use_with doc doxygen)
171 + $(use_with doc xmlto)
172 + $(use_with systemd systemd-daemon)
173 + --disable-xwayland
174 + --enable-libdrm
175 + --sysconfdir="${EPREFIX}"/etc/X11
176 + --localstatedir="${EPREFIX}"/var
177 + --with-fontrootdir="${EPREFIX}"/usr/share/fonts
178 + --with-xkb-output="${EPREFIX}"/var/lib/xkb
179 + --disable-config-hal
180 + --disable-linux-acpi
181 + --without-dtrace
182 + --without-fop
183 + --with-os-vendor=Gentoo
184 + --with-sha1=libcrypto
185 + CPP="$(tc-getPROG CPP cpp)"
186 + )
187 +
188 + if use systemd || use elogind; then
189 + XORG_CONFIGURE_OPTIONS+=(
190 + --enable-systemd-logind
191 + --disable-install-setuid
192 + $(use_enable suid suid-wrapper)
193 + )
194 + else
195 + XORG_CONFIGURE_OPTIONS+=(
196 + --disable-systemd-logind
197 + --disable-suid-wrapper
198 + $(use_enable suid install-setuid)
199 + )
200 + fi
201 +
202 + xorg-3_src_configure
203 +}
204 +
205 +server_based_install() {
206 + if ! use xorg; then
207 + rm -f "${ED}"/usr/share/man/man1/Xserver.1x \
208 + "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
209 + "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
210 + "${ED}"/usr/share/man/man1/Xserver.1x || die
211 + fi
212 +}
213 +
214 +src_install() {
215 + xorg-3_src_install
216 +
217 + server_based_install
218 +
219 + if ! use minimal && use xorg; then
220 + # Install xorg.conf.example into docs
221 + dodoc "${S}"/hw/xfree86/xorg.conf.example
222 + fi
223 +
224 + # install the @x11-module-rebuild set for Portage
225 + insinto /usr/share/portage/config/sets
226 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
227 +
228 + find "${ED}"/var -type d -empty -delete || die
229 +}
230 +
231 +pkg_postrm() {
232 + # Get rid of module dir to ensure opengl-update works properly
233 + if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then
234 + rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
235 + fi
236 +}