Gentoo Archives: gentoo-commits

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