1 |
polynomial-c 11/01/30 12:09:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xf86-input-virtualbox-4.0.2-r1.ebuild |
5 |
Removed: xf86-input-virtualbox-4.0.2.ebuild |
6 |
Log: |
7 |
Install xorg and udev rules if we are on xorg-server-1.8 or higher |
8 |
|
9 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.56 x11-drivers/xf86-input-virtualbox/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog?rev=1.56&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog?rev=1.56&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog?r1=1.55&r2=1.56 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog,v |
21 |
retrieving revision 1.55 |
22 |
retrieving revision 1.56 |
23 |
diff -u -r1.55 -r1.56 |
24 |
--- ChangeLog 18 Jan 2011 19:33:18 -0000 1.55 |
25 |
+++ ChangeLog 30 Jan 2011 12:09:21 -0000 1.56 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for x11-drivers/xf86-input-virtualbox |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog,v 1.55 2011/01/18 19:33:18 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-virtualbox/ChangeLog,v 1.56 2011/01/30 12:09:21 polynomial-c Exp $ |
31 |
+ |
32 |
+*xf86-input-virtualbox-4.0.2-r1 (30 Jan 2011) |
33 |
+ |
34 |
+ 30 Jan 2011; Lars Wendler <polynomial-c@g.o> |
35 |
+ -xf86-input-virtualbox-4.0.2.ebuild, +xf86-input-virtualbox-4.0.2-r1.ebuild: |
36 |
+ Install xorg and udev rules if we are on xorg-server-1.8 or higher. Thanks to |
37 |
+ Eriks Latosheks for reporting this in bug #353217. |
38 |
|
39 |
18 Jan 2011; Lars Wendler <polynomial-c@g.o> |
40 |
-xf86-input-virtualbox-3.2.10-r1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 x11-drivers/xf86-input-virtualbox/xf86-input-virtualbox-4.0.2-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-virtualbox/xf86-input-virtualbox-4.0.2-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-input-virtualbox/xf86-input-virtualbox-4.0.2-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: xf86-input-virtualbox-4.0.2-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-virtualbox/xf86-input-virtualbox-4.0.2-r1.ebuild,v 1.1 2011/01/30 12:09:21 polynomial-c Exp $ |
54 |
|
55 |
EAPI=2 |
56 |
|
57 |
inherit eutils multilib linux-info |
58 |
|
59 |
MY_P=VirtualBox-${PV} |
60 |
DESCRIPTION="VirtualBox input driver" |
61 |
HOMEPAGE="http://www.virtualbox.org/" |
62 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="hal" |
68 |
|
69 |
RDEPEND="x11-base/xorg-server |
70 |
|| ( x11-drivers/xf86-input-mouse |
71 |
x11-drivers/xf86-input-evdev ) |
72 |
hal? ( sys-apps/hal )" |
73 |
DEPEND="${RDEPEND} |
74 |
>=dev-util/kbuild-0.1.5-r1 |
75 |
>=dev-lang/yasm-0.6.2 |
76 |
sys-devel/dev86 |
77 |
sys-power/iasl |
78 |
x11-proto/inputproto |
79 |
x11-proto/randrproto |
80 |
x11-proto/xproto" |
81 |
|
82 |
S="${WORKDIR}/${MY_P}_OSE" |
83 |
|
84 |
src_prepare() { |
85 |
if kernel_is -ge 2 6 33 ; then |
86 |
# evil patch for new kernels - header moved |
87 |
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' || die "Failed replacing" |
88 |
fi |
89 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
90 |
rm -rf kBuild/bin tools |
91 |
|
92 |
# Disable things unused or splitted into separate ebuilds |
93 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
94 |
} |
95 |
|
96 |
src_configure() { |
97 |
# build the user-space tools, warnings are harmless |
98 |
./configure --nofatal \ |
99 |
--disable-xpcom \ |
100 |
--disable-sdl-ttf \ |
101 |
--disable-pulse \ |
102 |
--disable-alsa \ |
103 |
--build-headless || die "configure failed" |
104 |
source ./env.sh |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
109 |
/src/VBox/Additions/x11/vboxmouse ; do |
110 |
cd "${S}"${each} |
111 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
112 |
KBUILD_PATH="${S}/kBuild" \ |
113 |
|| die "kmk failed" |
114 |
done |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
119 |
insinto /usr/$(get_libdir)/xorg/modules/input |
120 |
|
121 |
# xorg-server-1.9 |
122 |
if has_version "=x11-base/xorg-server-1.9*" ; then |
123 |
newins vboxmouse_drv_19.so vboxmouse_drv.so |
124 |
# xorg-server-1.8 |
125 |
elif has_version "=x11-base/xorg-server-1.8*" ; then |
126 |
newins vboxmouse_drv_18.so vboxmouse_drv.so |
127 |
# xorg-server-1.7 |
128 |
else |
129 |
newins vboxmouse_drv_17.so vboxmouse_drv.so |
130 |
fi |
131 |
|
132 |
cd "${S}/src/VBox/Additions/linux/installer" || die |
133 |
# install hal information file about the mouse driver |
134 |
if use hal; then |
135 |
insinto /etc/hal/fdi/policy |
136 |
doins 90-vboxguest.fdi |
137 |
fi |
138 |
|
139 |
if has_version ">=x11-base/xorg-server-1.8" ; then |
140 |
# install udev information file about the mouse driver |
141 |
insinto /etc/udev/rules.d |
142 |
doins 70-xorg-vboxmouse.rules |
143 |
|
144 |
# install X11 information file about the mouse driver |
145 |
insinto /etc/X11/xorg.conf.d |
146 |
doins "${S}/src/VBox/Additions/x11/Installer/50-vboxmouse.conf" |
147 |
fi |
148 |
} |
149 |
|
150 |
pkg_postinst() { |
151 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
152 |
elog "" |
153 |
elog " Driver \"vboxmouse\"" |
154 |
elog "" |
155 |
elog "in the Core Pointer's InputDevice section (Section \"InputDevice\")" |
156 |
elog "" |
157 |
elog "Up to version 1.8, X.Org Server can do mouse auto-detection." |
158 |
elog "This ebuild provides a working default which has been installed into:" |
159 |
elog " /etc/hal/fdi/policy/90-vboxguest.fdi" |
160 |
elog "This is no longer necessary for X.Org Server 1.9 or higher. Use" |
161 |
elog "the server's udev autodetection with such versions." |
162 |
} |