Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-server/
Date: Tue, 16 Oct 2018 19:30:22
Message-Id: 1539718175.2f8295e6f247de557d391007cf4f153eb9080a17.mattst88@gentoo
1 commit: 2f8295e6f247de557d391007cf4f153eb9080a17
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 16 19:19:42 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 16 19:29:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f8295e6
7
8 x11-base/xorg-server: Version bump to 1.20.2
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 x11-base/xorg-server/Manifest | 1 +
13 x11-base/xorg-server/xorg-server-1.20.2.ebuild | 221 +++++++++++++++++++++++++
14 2 files changed, 222 insertions(+)
15
16 diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest
17 index 6b4fadcebbc..557d96e7ba8 100644
18 --- a/x11-base/xorg-server/Manifest
19 +++ b/x11-base/xorg-server/Manifest
20 @@ -1,2 +1,3 @@
21 DIST xorg-server-1.19.5.tar.bz2 5965044 BLAKE2B 23375793ea4459a962f412440e307081ce2acd3c646e5db4d1bfac20e267bcbb1752ba8f6de66df06d25eaf92d1b55082a80eced0d44c257a757d5926ca6a7f3 SHA512 928dea5850b98cd815004cfa133eca23cfa9521920c934c68a92787f2cae13cca1534eee772a4fb74b8ae8cb92662b5d68b95b834c8aa8ec57cd57cb4e5dd45c
22 DIST xorg-server-1.20.1.tar.bz2 6103772 BLAKE2B ac71d603cef8efe814275b658d4a76e231eb0fda14dd6e7177509bf147feaf37657789d8fc83f8017435c84760d7be357f203a8346aac612a53083cf413f7d75 SHA512 ef2b93a61683c8ca8d1f14b771e70db65ba119a73db8a46e7cdbf2ac2243e3f4b2732068eb5aa5d7b76f460db995a3c04390870198a5210ec30df4360ad9f94b
23 +DIST xorg-server-1.20.2.tar.bz2 6204242 BLAKE2B 05333d12ca3ca2bca879410093fb193dc2476780b857cd22dcfb22d0dffe0e17afd161ee3a87030bd76ff4109fa1884768614f0bc26318d576f7c65b885aa425 SHA512 1c87d78b14529dd4b438ef038118c8540d1d17bdd58bf08ec5408a2ddbe8d0dda48033a9a9477cfc2c4c304dd1078fa40968a03c4d0cd3398359dd0fadb8e7c7
24
25 diff --git a/x11-base/xorg-server/xorg-server-1.20.2.ebuild b/x11-base/xorg-server/xorg-server-1.20.2.ebuild
26 new file mode 100644
27 index 00000000000..be5e57d8cb2
28 --- /dev/null
29 +++ b/x11-base/xorg-server/xorg-server-1.20.2.ebuild
30 @@ -0,0 +1,221 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +
36 +XORG_EAUTORECONF=yes
37 +XORG_DOC=doc
38 +inherit xorg-2 multilib versionator flag-o-matic
39 +EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/xserver.git"
40 +
41 +DESCRIPTION="X.Org X servers"
42 +SLOT="0/${PV}"
43 +if [[ ${PV} != 9999* ]]; then
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
45 +fi
46 +
47 +IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb"
48 +IUSE="${IUSE_SERVERS} debug +glamor ipv6 libressl minimal selinux systemd +udev unwind xcsecurity"
49 +
50 +CDEPEND=">=app-eselect/eselect-opengl-1.3.0
51 + !libressl? ( dev-libs/openssl:0= )
52 + libressl? ( dev-libs/libressl:0= )
53 + >=x11-apps/iceauth-1.0.2
54 + >=x11-apps/rgb-1.0.3
55 + >=x11-apps/xauth-1.0.3
56 + x11-apps/xkbcomp
57 + >=x11-libs/libdrm-2.4.89
58 + >=x11-libs/libpciaccess-0.12.901
59 + >=x11-libs/libXau-1.0.4
60 + >=x11-libs/libXdmcp-1.0.2
61 + >=x11-libs/libXfont2-2.0.1
62 + >=x11-libs/libxkbfile-1.0.4
63 + >=x11-libs/libxshmfence-1.1
64 + >=x11-libs/pixman-0.27.2
65 + >=x11-libs/xtrans-1.3.5
66 + >=x11-misc/xbitmaps-1.0.1
67 + >=x11-misc/xkeyboard-config-2.4.1-r3
68 + dmx? (
69 + x11-libs/libXt
70 + >=x11-libs/libdmx-1.0.99.1
71 + >=x11-libs/libX11-1.1.5
72 + >=x11-libs/libXaw-1.0.4
73 + >=x11-libs/libXext-1.0.99.4
74 + >=x11-libs/libXfixes-5.0
75 + >=x11-libs/libXi-1.2.99.1
76 + >=x11-libs/libXmu-1.0.3
77 + x11-libs/libXrender
78 + >=x11-libs/libXres-1.0.3
79 + >=x11-libs/libXtst-1.0.99.2
80 + )
81 + glamor? (
82 + media-libs/libepoxy[X]
83 + >=media-libs/mesa-18[egl,gbm]
84 + !x11-libs/glamor
85 + )
86 + kdrive? (
87 + >=x11-libs/libXext-1.0.5
88 + x11-libs/libXv
89 + )
90 + xephyr? (
91 + x11-libs/libxcb[xkb]
92 + x11-libs/xcb-util
93 + x11-libs/xcb-util-image
94 + x11-libs/xcb-util-keysyms
95 + x11-libs/xcb-util-renderutil
96 + x11-libs/xcb-util-wm
97 + )
98 + !minimal? (
99 + >=x11-libs/libX11-1.1.5
100 + >=x11-libs/libXext-1.0.5
101 + >=media-libs/mesa-18
102 + )
103 + udev? ( virtual/libudev:= )
104 + unwind? ( sys-libs/libunwind )
105 + wayland? (
106 + >=dev-libs/wayland-1.3.0
107 + media-libs/libepoxy
108 + >=dev-libs/wayland-protocols-1.1
109 + )
110 + >=x11-apps/xinit-1.3.3-r1
111 + systemd? (
112 + sys-apps/dbus
113 + sys-apps/systemd
114 + )"
115 +
116 +DEPEND="${CDEPEND}
117 + sys-devel/flex
118 + >=x11-base/xorg-proto-2018.3
119 + dmx? (
120 + doc? (
121 + || (
122 + www-client/links
123 + www-client/lynx
124 + www-client/w3m
125 + )
126 + )
127 + )"
128 +
129 +RDEPEND="${CDEPEND}
130 + selinux? ( sec-policy/selinux-xserver )
131 + !x11-drivers/xf86-video-modesetting
132 +"
133 +
134 +PDEPEND="
135 + xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
136 +
137 +REQUIRED_USE="!minimal? (
138 + || ( ${IUSE_SERVERS} )
139 + )
140 + xephyr? ( kdrive )"
141 +
142 +UPSTREAMED_PATCHES=(
143 +)
144 +
145 +PATCHES=(
146 + "${UPSTREAMED_PATCHES[@]}"
147 + "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
148 + # needed for new eselect-opengl, bug #541232
149 + "${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch
150 +)
151 +
152 +pkg_pretend() {
153 + # older gcc is not supported
154 + [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \
155 + die "Sorry, but gcc earlier than 4.0 will not work for xorg-server."
156 +}
157 +
158 +pkg_setup() {
159 + if use wayland && ! use glamor; then
160 + ewarn "glamor is necessary for acceleration under Xwayland."
161 + ewarn "Performance may be unacceptable without it."
162 + fi
163 +}
164 +
165 +src_configure() {
166 + # localstatedir is used for the log location; we need to override the default
167 + # from ebuild.sh
168 + # sysconfdir is used for the xorg.conf location; same applies
169 + # NOTE: fop is used for doc generating; and I have no idea if Gentoo
170 + # package it somewhere
171 + XORG_CONFIGURE_OPTIONS=(
172 + $(use_enable ipv6)
173 + $(use_enable debug)
174 + $(use_enable dmx)
175 + $(use_enable glamor)
176 + $(use_enable kdrive)
177 + $(use_enable unwind libunwind)
178 + $(use_enable wayland xwayland)
179 + $(use_enable !minimal record)
180 + $(use_enable !minimal xfree86-utils)
181 + $(use_enable !minimal dri)
182 + $(use_enable !minimal dri2)
183 + $(use_enable !minimal dri3)
184 + $(use_enable !minimal glx)
185 + $(use_enable xcsecurity)
186 + $(use_enable xephyr)
187 + $(use_enable xnest)
188 + $(use_enable xorg)
189 + $(use_enable xvfb)
190 + $(use_enable udev config-udev)
191 + $(use_with doc doxygen)
192 + $(use_with doc xmlto)
193 + $(use_with systemd systemd-daemon)
194 + $(use_enable systemd systemd-logind)
195 + $(use_enable systemd suid-wrapper)
196 + $(use_enable !systemd install-setuid)
197 + --enable-libdrm
198 + --sysconfdir="${EPREFIX}"/etc/X11
199 + --localstatedir="${EPREFIX}"/var
200 + --with-fontrootdir="${EPREFIX}"/usr/share/fonts
201 + --with-xkb-output="${EPREFIX}"/var/lib/xkb
202 + --disable-config-hal
203 + --disable-linux-acpi
204 + --without-dtrace
205 + --without-fop
206 + --with-os-vendor=Gentoo
207 + --with-sha1=libcrypto
208 + )
209 +
210 + xorg-2_src_configure
211 +}
212 +
213 +src_install() {
214 + xorg-2_src_install
215 +
216 + server_based_install
217 +
218 + if ! use minimal && use xorg; then
219 + # Install xorg.conf.example into docs
220 + dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example
221 + fi
222 +
223 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
224 + newinitd "${FILESDIR}"/xdm.initd-11 xdm
225 + newconfd "${FILESDIR}"/xdm.confd-4 xdm
226 +
227 + # install the @x11-module-rebuild set for Portage
228 + insinto /usr/share/portage/config/sets
229 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
230 +}
231 +
232 +pkg_postinst() {
233 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
234 + eselect opengl set xorg-x11 --use-old
235 +}
236 +
237 +pkg_postrm() {
238 + # Get rid of module dir to ensure opengl-update works properly
239 + if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then
240 + rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
241 + fi
242 +}
243 +
244 +server_based_install() {
245 + if ! use xorg; then
246 + rm "${ED}"/usr/share/man/man1/Xserver.1x \
247 + "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
248 + "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
249 + "${ED}"/usr/share/man/man1/Xserver.1x
250 + fi
251 +}