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