Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: x11-base/xorg-server/xorg-server-1.6.5-r200.ebuild

Issue 6674010: Remove old Xservers. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Remove old xserver ebuilds. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | x11-base/xorg-server/xorg-server-1.6.5-r203.ebuild » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.6.5-r1.ebu ild,v 1.9 2010/01/18 19:26:00 armin76 Exp $
4
5 EAPI="2"
6
7 # Must be before x-modular eclass is inherited
8 SNAPSHOT="yes"
9
10 inherit x-modular multilib versionator
11
12 SRC_URI="${SRC_URI}
13 mirror://gentoo/${P}-gentoo-patches-01.tar.bz2"
14
15 OPENGL_DIR="xorg-x11"
16
17 DESCRIPTION="X.Org X servers"
18 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
19
20 IUSE_SERVERS="dmx kdrive xorg"
21 IUSE="${IUSE_SERVERS} tslib hal ipv6 minimal nptl sdl"
22
23 RDEPEND="
24 hal? ( sys-apps/hal )
25 tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto )
26 dev-libs/openssl
27 >=x11-libs/libXfont-1.4.0
28 >=x11-libs/xtrans-1.2.3
29 >=x11-libs/libXau-1.0.4
30 >=x11-libs/libXext-1.0.4
31 >=x11-libs/libX11-1.1.5
32 >=x11-libs/libxkbfile-1.0.4
33 >=x11-libs/libXdmcp-1.0.2
34 >=x11-libs/libXmu-1.0.3
35 >=x11-libs/libXrender-0.9.4
36 >=x11-libs/libXi-1.2.1
37 >=x11-libs/pixman-0.14.0
38 media-libs/freetype
39 >=x11-misc/xbitmaps-1.0.1
40 >=x11-misc/xkeyboard-config-1.4
41 x11-apps/xkbcomp
42 >=x11-apps/iceauth-1.0.2
43 >=x11-apps/rgb-1.0.3
44 >=x11-apps/xauth-1.0.3
45 >=x11-apps/xinit-1.0.8-r3
46 >=app-admin/eselect-opengl-1.0.8
47 >=x11-libs/libXaw-1.0.5
48 >=x11-libs/libXpm-3.5.7
49 >=x11-libs/libpciaccess-0.10.3
50 dmx? (
51 >=x11-libs/libdmx-1.0.2
52 >=x11-libs/libXfixes-4.0.3
53 )
54 !minimal? (
55 >=x11-libs/libXtst-1.0.3
56 >=x11-libs/libXres-1.0.3
57 >=media-libs/mesa-7.3_rc1[nptl=]
58 )
59 >=x11-libs/libxkbui-1.0.2
60 kdrive? ( sdl? ( media-libs/libsdl ) )"
61 # Xres is dmx-dependent
62 # Xaw is dmx-dependent
63 # Xpm is dmx-dependent, pulls in Xt
64 # xkbcomp is launched at startup but not checked by ./configure
65 DEPEND="${RDEPEND}
66 !net-dialup/dtrace
67 sys-devel/flex
68 >=x11-proto/randrproto-1.2.99.4
69 >=x11-proto/renderproto-0.9.3
70 >=x11-proto/fixesproto-4
71 >=x11-proto/damageproto-1.1
72 >=x11-proto/xextproto-7.0.4
73 >=x11-proto/xproto-7.0.14
74 >=x11-proto/xf86dgaproto-2.0.3
75 >=x11-proto/xf86rushproto-1.1.2
76 >=x11-proto/xf86vidmodeproto-2.2.2
77 >=x11-proto/compositeproto-0.4
78 >=x11-proto/recordproto-1.13.2
79 >=x11-proto/resourceproto-1.0.2
80 >=x11-proto/videoproto-2.2.2
81 >=x11-proto/scrnsaverproto-1.1.0
82 >=x11-proto/trapproto-3.4.3
83 >=x11-proto/xineramaproto-1.1.2
84 >=x11-proto/fontsproto-2.0.2
85 >=x11-proto/kbproto-1.0.3
86 >=x11-proto/inputproto-1.5.0
87 >=x11-proto/bigreqsproto-1.0.2
88 >=x11-proto/xcmiscproto-1.1.2
89 >=x11-proto/glproto-1.4.9
90 dmx? ( >=x11-proto/dmxproto-2.2.2 )
91 !minimal? (
92 >=x11-proto/xf86driproto-2.0.4
93 >=x11-proto/dri2proto-2.1
94 >=x11-libs/libdrm-2.3
95 )"
96
97 PDEPEND="xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )"
98 LICENSE="${LICENSE} MIT"
99
100 EPATCH_FORCE="yes"
101 EPATCH_SUFFIX="patch"
102
103 # These have been sent upstream
104 UPSTREAMED_PATCHES=(
105 "${WORKDIR}/patches/"
106 )
107
108 PATCHES=(
109 "${UPSTREAMED_PATCHES[@]}"
110 "${FILESDIR}/01moblin-cache-xkbcomp-output-for-fast-start-up.patch"
111 "${FILESDIR}/02moblin-xserver-1.5.0-bg-none-root.patch"
112 "${FILESDIR}/03moblin-xorg-detect-psb.patch"
113 "${FILESDIR}/04moblin-xserver-no-root-2.patch"
114 "${FILESDIR}/05moblin-xorg-x11-nonroot-vesa.patch"
115 "${FILESDIR}/06moblin-xserver-boottime.patch"
116 "${FILESDIR}/07moblin-use-sloppy-heuristic-first-for-initial-mode.patch"
117 "${FILESDIR}/08-fix-wrong-bracket-values.patch"
118 "${FILESDIR}/monotonic-clock-fix.patch"
119 )
120
121 pkg_setup() {
122 use minimal || ensure_a_server_is_building
123
124 # SDL only available in kdrive build
125 if use kdrive && use sdl; then
126 conf_opts="${conf_opts} --enable-xsdl"
127 else
128 conf_opts="${conf_opts} --disable-xsdl"
129 fi
130
131 # localstatedir is used for the log location; we need to override the de fault
132 # from ebuild.sh
133 # sysconfdir is used for the xorg.conf location; same applies
134 # --enable-install-setuid needed because sparcs default off
135 CONFIGURE_OPTIONS="
136 $(use_enable ipv6)
137 $(use_enable dmx)
138 $(use_enable kdrive)
139 $(use_enable tslib)
140 $(use_enable tslib xcalibrate)
141 $(use_enable !minimal xvfb)
142 $(use_enable !minimal xnest)
143 $(use_enable !minimal record)
144 $(use_enable !minimal xfree86-utils)
145 $(use_enable !minimal install-libxf86config)
146 $(use_enable !minimal dri)
147 $(use_enable !minimal dri2)
148 $(use_enable !minimal glx)
149 $(use_enable xorg)
150 $(use_enable nptl glx-tls)
151 $(use_enable hal config-hal)
152 --sysconfdir=/etc/X11
153 --localstatedir=/var
154 --enable-install-setuid
155 --enable-null-root-cursor
156 --with-fontdir=/usr/share/fonts
157 --with-xkb-output=/var/lib/xkb
158 --without-dtrace
159 ${conf_opts}"
160
161 # (#121394) Causes window corruption
162 filter-flags -fweb
163
164 # Incompatible with GCC 3.x SSP on x86, bug #244352
165 if use x86 ; then
166 if [[ $(gcc-major-version) -lt 4 ]]; then
167 filter-flags -fstack-protector
168 fi
169 fi
170
171 OLD_IMPLEM="$(eselect opengl show)"
172 eselect opengl set ${OPENGL_DIR}
173 }
174
175 src_install() {
176 x-modular_src_install
177
178 dynamic_libgl_install
179
180 server_based_install
181
182 # Install video mode files for system-config-display
183 insinto /usr/share/xorg
184 doins hw/xfree86/common/{extra,vesa}modes \
185 || die "couldn't install extra modes"
186
187 # Bug #151421 - this file is not built with USE="minimal"
188 # Bug #151670 - this file is also not build if USE="-xorg"
189 if ! use minimal && use xorg; then
190 # Install xorg.conf.example
191 insinto /etc/X11
192 doins hw/xfree86/xorg.conf.example \
193 || die "couldn't install xorg.conf.example"
194 fi
195 }
196
197 pkg_postinst() {
198 switch_opengl_implem
199
200 # Bug #135544
201 ewarn "Users of reduced blanking now need:"
202 ewarn " Option \"ReducedBlanking\""
203 ewarn "In the relevant Monitor section(s)."
204 ewarn "Make sure your reduced blanking modelines are safe!"
205
206 echo
207 ewarn "You must rebuild all drivers if upgrading from xorg-server 1.5"
208 ewarn "or earlier, because the ABI changed. If you cannot start X becaus e"
209 ewarn "of module version mismatch errors, this is your problem."
210
211 echo
212 ewarn "You can generate a list of all installed packages in the x11-driv ers"
213 ewarn "category using this command:"
214 ewarn "emerge portage-utils; qlist -I -C x11-drivers/"
215
216 ebeep 5
217 epause 10
218 }
219
220 pkg_postrm() {
221 # Get rid of module dir to ensure opengl-update works properly
222 if ! has_version x11-base/xorg-server; then
223 if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
224 rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
225 fi
226 fi
227 }
228
229 dynamic_libgl_install() {
230 # next section is to setup the dynamic libGL stuff
231 ebegin "Moving GL files for dynamic switching"
232 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
233 local x=""
234 for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{gl x,dri,dri2}*; do
235 if [ -f ${x} -o -L ${x} ]; then
236 mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPE NGL_DIR}/extensions
237 fi
238 done
239 eend 0
240 }
241
242 server_based_install() {
243 if ! use xorg; then
244 rm "${D}"/usr/share/man/man1/Xserver.1x \
245 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
246 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
247 "${D}"/usr/share/man/man1/Xserver.1x
248 fi
249 }
250
251 switch_opengl_implem() {
252 # Switch to the xorg implementation.
253 # Use new opengl-update that will not reset user selected
254 # OpenGL interface ...
255 echo
256 eselect opengl set ${OLD_IMPLEM}
257 }
258
259 ensure_a_server_is_building() {
260 for server in ${IUSE_SERVERS}; do
261 use ${server} && return;
262 done
263 eerror "You need to specify at least one server to build."
264 eerror "Valid servers are: ${IUSE_SERVERS}."
265 die "No servers were specified to build."
266 }
OLDNEW
« no previous file with comments | « no previous file | x11-base/xorg-server/xorg-server-1.6.5-r203.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698