blob: 767c742e45fd6aec78b96a7fdfe203ce650e1b18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-xlibs/emul-linux-x86-xlibs-2.0.ebuild,v 1.1 2005/04/15 21:06:02 blubb Exp $
inherit multilib
DESCRIPTION="X11R6 libraries for emulation of 32bit x86 on amd64"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="http://fermat.ma.rhul.ac.uk/~herbie/emul/emul-linux-x86-xlibs-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="opengl"
RDEPEND="virtual/libc
>=x11-base/xorg-x11-6.8.0-r4
>=app-emulation/emul-linux-x86-baselibs-2.0"
S=${WORKDIR}
pkg_preinst() {
# Check for bad symlink before installing, bug 84441.
if [ -L /emul/linux/x86/usr/lib/X11 ]; then
rm -f /emul/linux/x86/usr/lib/X11
fi
}
src_install() {
cp -Rpvf ${WORKDIR}/* ${D}/
local libdir="lib32"
if has_multilib_profile; then
libdir=$(get_abi_LIBDIR x86)
fi
dodir /usr/${libdir}/opengl
dosym /emul/linux/x86/usr/lib/opengl/xorg-x11 /usr/${libdir}/opengl/xorg-x11
}
pkg_postinst() {
#update GL symlinks
if use opengl && [[ ${ROOT} == "/" ]] ; then
/usr/sbin/opengl-update --use-old
fi
}
|