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