/[gentoo-x86]/x11-base/xorg-server/xorg-server-1.0.99.2.ebuild
Gentoo

Contents of /x11-base/xorg-server/xorg-server-1.0.99.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Apr 14 16:04:12 2006 UTC (8 years, 8 months ago) by joshuabaergen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bump xorg-server for 7.1RC1.  Change Mesa dependencies on all servers to
account for the changed paths in Mesa 6.5-r2.
(Portage version: 2.1_pre7-r5)

1 joshuabaergen 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 joshuabaergen 1.2 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.0.99.2.ebuild,v 1.1 2006/04/12 03:41:38 joshuabaergen Exp $
4 joshuabaergen 1.1
5     # Must be before x-modular eclass is inherited
6     # Hack to make sure autoreconf gets run
7     #SNAPSHOT="yes"
8    
9     inherit flag-o-matic x-modular multilib
10    
11     OPENGL_DIR="xorg-x11"
12    
13     MESA_PN="Mesa"
14     MESA_PV="6.5"
15     MESA_P="${MESA_PN}-${MESA_PV}"
16     MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17    
18     PATCHES="${FILESDIR}/${PN}-1.0.2-Sbus.patch
19     ${FILESDIR}/1.0.2-try-to-fix-xorgcfg.patch
20     ${FILESDIR}/1.0.2-fix-xorgconfig-rgbpath-and-mouse.patch"
21    
22     SRC_URI="${SRC_URI}
23     mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
24     http://xorg.freedesktop.org/snapshots/individual/xserver/${P}.tar.bz2"
25     DESCRIPTION="X.Org X servers"
26     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
27     IUSE="dri ipv6 minimal xprint"
28     RDEPEND="x11-libs/libXfont
29     x11-libs/xtrans
30     x11-libs/libXau
31     x11-libs/libXext
32     x11-libs/libX11
33     x11-libs/libxkbfile
34     x11-libs/libXdmcp
35     x11-libs/libXmu
36     x11-libs/libXrender
37     x11-libs/libXi
38     media-libs/freetype
39     >=media-libs/mesa-6.5
40     media-fonts/font-adobe-75dpi
41     media-fonts/font-misc-misc
42     media-fonts/font-cursor-misc
43     x11-misc/xbitmaps
44     || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
45     x11-apps/iceauth
46     x11-apps/rgb
47     x11-apps/xauth
48     x11-apps/xinit
49     app-admin/eselect-opengl
50     x11-libs/libXaw
51     x11-libs/libXpm
52     x11-libs/libXxf86misc
53     x11-libs/libXxf86vm
54     !minimal? ( x11-libs/libdmx
55     x11-libs/libXtst
56     x11-libs/libXres )
57     x11-libs/libxkbui
58     x11-libs/liblbxutil"
59     # Xres is dmx-dependent, xkbui is xorgcfg-dependent
60     # Xaw is dmx- and xorgcfg-dependent
61     # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
62     # Xxf86misc and Xxf86vm are xorgcfg-dependent
63     # liblbxutil is lbx- dependent
64     DEPEND="${RDEPEND}
65     x11-proto/randrproto
66     x11-proto/renderproto
67     >=x11-proto/fixesproto-4
68     x11-proto/damageproto
69     x11-proto/xextproto
70     x11-proto/xproto
71     x11-proto/xf86dgaproto
72     x11-proto/xf86miscproto
73     x11-proto/xf86rushproto
74     x11-proto/xf86vidmodeproto
75     x11-proto/xf86bigfontproto
76     >=x11-proto/compositeproto-0.3
77     x11-proto/recordproto
78     x11-proto/resourceproto
79     x11-proto/videoproto
80     x11-proto/scrnsaverproto
81     x11-proto/evieext
82     x11-proto/trapproto
83     >=x11-proto/xineramaproto-1.1-r1
84     x11-proto/fontsproto
85     >=x11-proto/kbproto-1.0-r1
86     x11-proto/inputproto
87     x11-proto/bigreqsproto
88     x11-proto/xcmiscproto
89     >=x11-proto/glproto-1.4.1_pre20051013
90     !minimal? ( x11-proto/dmxproto )
91     dri? ( x11-proto/xf86driproto
92     >=x11-libs/libdrm-2 )
93     xprint? ( x11-proto/printproto
94     x11-apps/mkfontdir
95     x11-apps/mkfontscale )"
96     LICENSE="${LICENSE} MIT"
97    
98     pkg_setup() {
99     # localstatedir is used for the log location; we need to override the default
100     # from ebuild.sh
101     # sysconfdir is used for the xorg.conf location; same applies
102    
103     # --enable-xorg needed because darwin defaults off
104     # --enable-install-setuid needed because sparcs default off
105     CONFIGURE_OPTIONS="
106     $(use_enable ipv6)
107     $(use_enable !minimal dmx)
108     $(use_enable !minimal xvfb)
109     $(use_enable !minimal xnest)
110     $(use_enable dri)
111     $(use_enable xprint)
112     --with-mesa-source=${WORKDIR}/${MESA_P}
113     --enable-xorg
114     --enable-aiglx
115     --sysconfdir=/etc/X11
116     --localstatedir=/var
117     --enable-install-setuid
118     --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"
119    
120     # (#121394) Causes window corruption
121     filter-flags -fweb
122     }
123    
124     src_install() {
125     x-modular_src_install
126    
127     dynamic_libgl_install
128    
129     use xprint && xprint_src_install
130     }
131    
132     pkg_postinst() {
133     switch_opengl_implem
134     }
135    
136     pkg_postrm() {
137     # Get rid of module dir to ensure opengl-update works properly
138     if ! has_version x11-base/xorg-server; then
139     if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
140     rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
141     fi
142     fi
143     }
144    
145     dynamic_libgl_install() {
146     # next section is to setup the dynamic libGL stuff
147     ebegin "Moving GL files for dynamic switching"
148     dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
149     local x=""
150     for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
151     if [ -f ${x} -o -L ${x} ]; then
152     mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
153     fi
154     done
155     eend 0
156     }
157    
158     switch_opengl_implem() {
159     # Switch to the xorg implementation.
160     # Use new opengl-update that will not reset user selected
161     # OpenGL interface ...
162     echo
163     eselect opengl set --use-old ${OPENGL_DIR}
164     }
165    
166     xprint_src_install() {
167     # RH-style init script, we provide a wrapper
168     exeinto /usr/$(get_libdir)/misc
169     # Actually a shell script, someone messed up
170     newexe ${S}/Xprint/etc/init.d/xprint.cpp xprint
171     sed -e 's/XCOMM/#/' -i ${D}/usr/$(get_libdir)/misc/xprint
172     # Install the wrapper
173     newinitd ${FILESDIR}/xprint.init xprint
174     # Install profile scripts
175     insinto /etc/profile.d
176     doins ${S}/Xprint/etc/profile.d/xprint*
177     insinto /etc/X11/xinit/xinitrc.d
178     newins ${S}/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh \
179     92xprint-xpserverlist.sh
180     # Patch profile scripts
181     sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
182     get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
183     ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh
184     # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
185     dodoc ${D}/etc/profile.d/xprint*
186     rm -f ${D}/etc/profile.d/xprint*
187     }

  ViewVC Help
Powered by ViewVC 1.1.20