| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.0.2-r1.ebuild,v 1.3 2006/03/24 18:31:11 spyderous Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.0.2-r1.ebuild,v 1.4 2006/03/24 18:45:00 spyderous Exp $ |
| 4 | |
4 | |
| 5 | # Must be before x-modular eclass is inherited |
5 | # Must be before x-modular eclass is inherited |
| 6 | # Hack to make sure autoreconf gets run |
6 | # Hack to make sure autoreconf gets run |
| 7 | #SNAPSHOT="yes" |
7 | #SNAPSHOT="yes" |
| 8 | |
8 | |
| … | |
… | |
| 124 | |
124 | |
| 125 | src_install() { |
125 | src_install() { |
| 126 | x-modular_src_install |
126 | x-modular_src_install |
| 127 | |
127 | |
| 128 | dynamic_libgl_install |
128 | dynamic_libgl_install |
|
|
129 | |
|
|
130 | use xprint && xprint_src_install |
| 129 | } |
131 | } |
| 130 | |
132 | |
| 131 | pkg_postinst() { |
133 | pkg_postinst() { |
| 132 | switch_opengl_implem |
134 | switch_opengl_implem |
| 133 | } |
135 | } |
| … | |
… | |
| 159 | # Use new opengl-update that will not reset user selected |
161 | # Use new opengl-update that will not reset user selected |
| 160 | # OpenGL interface ... |
162 | # OpenGL interface ... |
| 161 | echo |
163 | echo |
| 162 | eselect opengl set --use-old ${OPENGL_DIR} |
164 | eselect opengl set --use-old ${OPENGL_DIR} |
| 163 | } |
165 | } |
|
|
166 | |
|
|
167 | xprint_src_install() { |
|
|
168 | # RH-style init script, we provide a wrapper |
|
|
169 | exeinto /usr/$(get_libdir)/misc |
|
|
170 | # Actually a shell script, someone messed up |
|
|
171 | newexe ${S}/Xprint/etc/init.d/xprint.cpp xprint |
|
|
172 | sed -e 's/XCOMM/#/' -i ${D}/usr/$(get_libdir)/misc/xprint |
|
|
173 | # Install the wrapper |
|
|
174 | newinitd ${FILESDIR}/xprint.init xprint |
|
|
175 | # Install profile scripts |
|
|
176 | insinto /etc/profile.d |
|
|
177 | doins ${S}/Xprint/etc/profile.d/xprint* |
|
|
178 | insinto /etc/X11/xinit/xinitrc.d |
|
|
179 | newins ${S}/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh \ |
|
|
180 | 92xprint-xpserverlist.sh |
|
|
181 | # Patch profile scripts |
|
|
182 | sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \ |
|
|
183 | get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \ |
|
|
184 | ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh |
|
|
185 | # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo |
|
|
186 | dodoc ${D}/etc/profile.d/xprint* |
|
|
187 | rm -f ${D}/etc/profile.d/xprint* |
|
|
188 | } |