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

Contents of /x11-base/xorg-server/xorg-server-1.0.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Apr 23 22:32:14 2006 UTC (8 years, 3 months ago) by spyderous
Branch: MAIN
Changes since 1.4: +9 -5 lines
(#128448) Fix xprint (Ed Catmur). Still needs a dep added on xplsprinters when xprint is in USE, but arches haven't keyworded it yet.
(Portage version: 2.1_pre9-r3)

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

  ViewVC Help
Powered by ViewVC 1.1.20