1 |
commit: 57a3aee96b8f91d853a3b9aafcf20f1f7b044ce5 |
2 |
Author: stefson <herrtimson <AT> yahoo <DOT> de> |
3 |
AuthorDate: Sun Feb 4 10:30:56 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 7 12:19:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=57a3aee9 |
7 |
|
8 |
x11-base/xorg-server: rebump |
9 |
|
10 |
x11-base/xorg-server/xorg-server-1.19.6.ebuild | 252 +++++++++++++++++++++++++ |
11 |
1 file changed, 252 insertions(+) |
12 |
|
13 |
diff --git a/x11-base/xorg-server/xorg-server-1.19.6.ebuild b/x11-base/xorg-server/xorg-server-1.19.6.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..22e4152 |
16 |
--- /dev/null |
17 |
+++ b/x11-base/xorg-server/xorg-server-1.19.6.ebuild |
18 |
@@ -0,0 +1,252 @@ |
19 |
+# Copyright 1999-2017 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=5 |
23 |
+ |
24 |
+XORG_DOC=doc |
25 |
+inherit xorg-2 multilib versionator flag-o-matic |
26 |
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/xserver.git" |
27 |
+ |
28 |
+DESCRIPTION="X.Org X servers" |
29 |
+SLOT="0/${PV}" |
30 |
+KEYWORDS="~arm" |
31 |
+ |
32 |
+IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb" |
33 |
+IUSE="${IUSE_SERVERS} debug +glamor ipv6 libressl minimal selinux +suid systemd tslib +udev unwind xcsecurity" |
34 |
+ |
35 |
+CDEPEND=">=app-eselect/eselect-opengl-1.3.0 |
36 |
+ !libressl? ( dev-libs/openssl:0= ) |
37 |
+ libressl? ( dev-libs/libressl ) |
38 |
+ >=x11-apps/iceauth-1.0.2 |
39 |
+ >=x11-apps/rgb-1.0.3 |
40 |
+ >=x11-apps/xauth-1.0.3 |
41 |
+ x11-apps/xkbcomp |
42 |
+ >=x11-libs/libdrm-2.4.46 |
43 |
+ >=x11-libs/libpciaccess-0.12.901 |
44 |
+ >=x11-libs/libXau-1.0.4 |
45 |
+ >=x11-libs/libXdmcp-1.0.2 |
46 |
+ >=x11-libs/libXfont2-2.0.1 |
47 |
+ >=x11-libs/libxkbfile-1.0.4 |
48 |
+ >=x11-libs/libxshmfence-1.1 |
49 |
+ >=x11-libs/pixman-0.27.2 |
50 |
+ >=x11-libs/xtrans-1.3.5 |
51 |
+ >=x11-misc/xbitmaps-1.0.1 |
52 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
53 |
+ dmx? ( |
54 |
+ x11-libs/libXt |
55 |
+ >=x11-libs/libdmx-1.0.99.1 |
56 |
+ >=x11-libs/libX11-1.1.5 |
57 |
+ >=x11-libs/libXaw-1.0.4 |
58 |
+ >=x11-libs/libXext-1.0.99.4 |
59 |
+ >=x11-libs/libXfixes-5.0 |
60 |
+ >=x11-libs/libXi-1.2.99.1 |
61 |
+ >=x11-libs/libXmu-1.0.3 |
62 |
+ x11-libs/libXrender |
63 |
+ >=x11-libs/libXres-1.0.3 |
64 |
+ >=x11-libs/libXtst-1.0.99.2 |
65 |
+ ) |
66 |
+ glamor? ( |
67 |
+ media-libs/libepoxy[X] |
68 |
+ >=media-libs/mesa-10.3.4-r1[egl,gbm] |
69 |
+ !x11-libs/glamor |
70 |
+ ) |
71 |
+ kdrive? ( |
72 |
+ >=x11-libs/libXext-1.0.5 |
73 |
+ x11-libs/libXv |
74 |
+ ) |
75 |
+ xephyr? ( |
76 |
+ x11-libs/libxcb[xkb] |
77 |
+ x11-libs/xcb-util |
78 |
+ x11-libs/xcb-util-image |
79 |
+ x11-libs/xcb-util-keysyms |
80 |
+ x11-libs/xcb-util-renderutil |
81 |
+ x11-libs/xcb-util-wm |
82 |
+ ) |
83 |
+ !minimal? ( |
84 |
+ >=x11-libs/libX11-1.1.5 |
85 |
+ >=x11-libs/libXext-1.0.5 |
86 |
+ >=media-libs/mesa-10.3.4-r1 |
87 |
+ ) |
88 |
+ tslib? ( >=x11-libs/tslib-1.0 ) |
89 |
+ udev? ( >=virtual/udev-150 ) |
90 |
+ unwind? ( sys-libs/libunwind ) |
91 |
+ wayland? ( |
92 |
+ >=dev-libs/wayland-1.3.0 |
93 |
+ media-libs/libepoxy |
94 |
+ >=dev-libs/wayland-protocols-1.1 |
95 |
+ ) |
96 |
+ >=x11-apps/xinit-1.3.3-r1 |
97 |
+ systemd? ( |
98 |
+ sys-apps/dbus |
99 |
+ sys-apps/systemd |
100 |
+ )" |
101 |
+ |
102 |
+DEPEND="${CDEPEND} |
103 |
+ sys-devel/flex |
104 |
+ >=x11-proto/bigreqsproto-1.1.0 |
105 |
+ >=x11-proto/compositeproto-0.4 |
106 |
+ >=x11-proto/damageproto-1.1 |
107 |
+ >=x11-proto/fixesproto-5.0 |
108 |
+ >=x11-proto/fontsproto-2.1.3 |
109 |
+ >=x11-proto/glproto-1.4.17-r1 |
110 |
+ >=x11-proto/inputproto-2.3 |
111 |
+ >=x11-proto/kbproto-1.0.3 |
112 |
+ >=x11-proto/randrproto-1.5.0 |
113 |
+ >=x11-proto/recordproto-1.13.99.1 |
114 |
+ >=x11-proto/renderproto-0.11 |
115 |
+ >=x11-proto/resourceproto-1.2.0 |
116 |
+ >=x11-proto/scrnsaverproto-1.1 |
117 |
+ >=x11-proto/trapproto-3.4.3 |
118 |
+ >=x11-proto/videoproto-2.2.2 |
119 |
+ >=x11-proto/xcmiscproto-1.2.0 |
120 |
+ >=x11-proto/xextproto-7.2.99.901 |
121 |
+ >=x11-proto/xf86dgaproto-2.0.99.1 |
122 |
+ >=x11-proto/xf86rushproto-1.1.2 |
123 |
+ >=x11-proto/xf86vidmodeproto-2.2.99.1 |
124 |
+ >=x11-proto/xineramaproto-1.1.3 |
125 |
+ >=x11-proto/xproto-7.0.31 |
126 |
+ >=x11-proto/presentproto-1.0 |
127 |
+ >=x11-proto/dri2proto-2.8 |
128 |
+ >=x11-proto/dri3proto-1.0 |
129 |
+ dmx? ( |
130 |
+ >=x11-proto/dmxproto-2.2.99.1 |
131 |
+ doc? ( |
132 |
+ || ( |
133 |
+ www-client/links |
134 |
+ www-client/lynx |
135 |
+ www-client/w3m |
136 |
+ ) |
137 |
+ ) |
138 |
+ ) |
139 |
+ !minimal? ( |
140 |
+ >=x11-proto/xf86driproto-2.1.0 |
141 |
+ )" |
142 |
+ |
143 |
+RDEPEND="${CDEPEND} |
144 |
+ selinux? ( sec-policy/selinux-xserver ) |
145 |
+ !x11-drivers/xf86-video-modesetting |
146 |
+" |
147 |
+ |
148 |
+PDEPEND=" |
149 |
+ xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )" |
150 |
+ |
151 |
+REQUIRED_USE="!minimal? ( |
152 |
+ || ( ${IUSE_SERVERS} ) |
153 |
+ ) |
154 |
+ xephyr? ( kdrive )" |
155 |
+ |
156 |
+#UPSTREAMED_PATCHES=( |
157 |
+# "${WORKDIR}/patches/" |
158 |
+#) |
159 |
+ |
160 |
+PATCHES=( |
161 |
+ "${UPSTREAMED_PATCHES[@]}" |
162 |
+ "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch |
163 |
+ # needed for new eselect-opengl, bug #541232 |
164 |
+ "${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch |
165 |
+ "${FILESDIR}"/${PN}-1.19.4-sysmacros.patch #633530 |
166 |
+ "${FILESDIR}"/${PN}-1.17.4-arm-musl.patch |
167 |
+) |
168 |
+ |
169 |
+pkg_pretend() { |
170 |
+ # older gcc is not supported |
171 |
+ [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \ |
172 |
+ die "Sorry, but gcc earlier than 4.0 will not work for xorg-server." |
173 |
+} |
174 |
+ |
175 |
+pkg_setup() { |
176 |
+ if use wayland && ! use glamor; then |
177 |
+ ewarn "glamor is necessary for acceleration under Xwayland." |
178 |
+ ewarn "Performance may be unacceptable without it." |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+src_configure() { |
183 |
+ # localstatedir is used for the log location; we need to override the default |
184 |
+ # from ebuild.sh |
185 |
+ # sysconfdir is used for the xorg.conf location; same applies |
186 |
+ # NOTE: fop is used for doc generating; and I have no idea if Gentoo |
187 |
+ # package it somewhere |
188 |
+ XORG_CONFIGURE_OPTIONS=( |
189 |
+ $(use_enable ipv6) |
190 |
+ $(use_enable debug) |
191 |
+ $(use_enable dmx) |
192 |
+ $(use_enable glamor) |
193 |
+ $(use_enable kdrive) |
194 |
+ $(use_enable kdrive kdrive-kbd) |
195 |
+ $(use_enable kdrive kdrive-mouse) |
196 |
+ $(use_enable kdrive kdrive-evdev) |
197 |
+ $(use_enable suid install-setuid) |
198 |
+ $(use_enable tslib) |
199 |
+ $(use_enable unwind libunwind) |
200 |
+ $(use_enable wayland xwayland) |
201 |
+ $(use_enable !minimal record) |
202 |
+ $(use_enable !minimal xfree86-utils) |
203 |
+ $(use_enable !minimal dri) |
204 |
+ $(use_enable !minimal dri2) |
205 |
+ $(use_enable !minimal glx) |
206 |
+ $(use_enable xcsecurity) |
207 |
+ $(use_enable xephyr) |
208 |
+ $(use_enable xnest) |
209 |
+ $(use_enable xorg) |
210 |
+ $(use_enable xvfb) |
211 |
+ $(use_enable udev config-udev) |
212 |
+ $(use_with doc doxygen) |
213 |
+ $(use_with doc xmlto) |
214 |
+ $(use_with systemd systemd-daemon) |
215 |
+ $(use_enable systemd systemd-logind) |
216 |
+ --enable-libdrm |
217 |
+ --sysconfdir="${EPREFIX}"/etc/X11 |
218 |
+ --localstatedir="${EPREFIX}"/var |
219 |
+ --with-fontrootdir="${EPREFIX}"/usr/share/fonts |
220 |
+ --with-xkb-output="${EPREFIX}"/var/lib/xkb |
221 |
+ --disable-config-hal |
222 |
+ --disable-linux-acpi |
223 |
+ --without-dtrace |
224 |
+ --without-fop |
225 |
+ --with-os-vendor=Gentoo |
226 |
+ --with-sha1=libcrypto |
227 |
+ ) |
228 |
+ |
229 |
+ xorg-2_src_configure |
230 |
+} |
231 |
+ |
232 |
+src_install() { |
233 |
+ xorg-2_src_install |
234 |
+ |
235 |
+ server_based_install |
236 |
+ |
237 |
+ if ! use minimal && use xorg; then |
238 |
+ # Install xorg.conf.example into docs |
239 |
+ dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example |
240 |
+ fi |
241 |
+ |
242 |
+ newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup |
243 |
+ newinitd "${FILESDIR}"/xdm.initd-11 xdm |
244 |
+ newconfd "${FILESDIR}"/xdm.confd-4 xdm |
245 |
+ |
246 |
+ # install the @x11-module-rebuild set for Portage |
247 |
+ insinto /usr/share/portage/config/sets |
248 |
+ newins "${FILESDIR}"/xorg-sets.conf xorg.conf |
249 |
+} |
250 |
+ |
251 |
+pkg_postinst() { |
252 |
+ # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install) |
253 |
+ eselect opengl set xorg-x11 --use-old |
254 |
+} |
255 |
+ |
256 |
+pkg_postrm() { |
257 |
+ # Get rid of module dir to ensure opengl-update works properly |
258 |
+ if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
259 |
+ rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules |
260 |
+ fi |
261 |
+} |
262 |
+ |
263 |
+server_based_install() { |
264 |
+ if ! use xorg; then |
265 |
+ rm "${ED}"/usr/share/man/man1/Xserver.1x \ |
266 |
+ "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
267 |
+ "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
268 |
+ "${ED}"/usr/share/man/man1/Xserver.1x |
269 |
+ fi |
270 |
+} |