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-video-virtualbox: ChangeLog xf86-video-virtualbox-4.1.4.ebuild xf86-video-virtualbox-4.1.0.ebuild
Date: Tue, 04 Oct 2011 18:01:45
Message-Id: 20111004180135.BE5922004B@flycatcher.gentoo.org
1 polynomial-c 11/10/04 18:01:34
2
3 Modified: ChangeLog
4 Added: xf86-video-virtualbox-4.1.4.ebuild
5 Removed: xf86-video-virtualbox-4.1.0.ebuild
6 Log:
7 Version bump (bug #385577). Removed old
8
9 (Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.74 x11-drivers/xf86-video-virtualbox/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.74&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.74&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.73&r2=1.74
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v
21 retrieving revision 1.73
22 retrieving revision 1.74
23 diff -u -r1.73 -r1.74
24 --- ChangeLog 1 Sep 2011 08:14:31 -0000 1.73
25 +++ ChangeLog 4 Oct 2011 18:01:34 -0000 1.74
26 @@ -1,6 +1,13 @@
27 # ChangeLog for x11-drivers/xf86-video-virtualbox
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.73 2011/09/01 08:14:31 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.74 2011/10/04 18:01:34 polynomial-c Exp $
31 +
32 +*xf86-video-virtualbox-4.1.4 (04 Oct 2011)
33 +
34 + 04 Oct 2011; Lars Wendler <polynomial-c@g.o>
35 + -xf86-video-virtualbox-4.1.0.ebuild, +xf86-video-virtualbox-4.1.4.ebuild:
36 + Version bump. Thanks to Christian Inci who reported this in bug #385577.
37 + Removed old.
38
39 01 Sep 2011; Lars Wendler <polynomial-c@g.o>
40 xf86-video-virtualbox-4.1.0.ebuild:
41
42
43
44 1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.1.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.1.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-4.1.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: xf86-video-virtualbox-4.1.4.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-video-virtualbox/xf86-video-virtualbox-4.1.4.ebuild,v 1.1 2011/10/04 18:01:34 polynomial-c Exp $
54
55 EAPI=2
56
57 inherit eutils linux-mod multilib python versionator
58
59 MY_P=VirtualBox-${PV}
60 DESCRIPTION="VirtualBox video 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="dri"
68
69 RDEPEND="x11-base/xorg-server[-minimal]"
70 DEPEND="${RDEPEND}
71 >=dev-util/kbuild-0.1.999
72 =dev-lang/python-2*
73 >=dev-lang/yasm-0.6.2
74 sys-devel/dev86
75 sys-power/iasl
76 x11-proto/fontsproto
77 x11-proto/randrproto
78 x11-proto/renderproto
79 x11-proto/xextproto
80 x11-proto/xineramaproto
81 x11-proto/xproto
82 x11-libs/libXdmcp
83 x11-libs/libXcomposite
84 x11-libs/libXau
85 x11-libs/libX11
86 x11-libs/libXfixes
87 x11-libs/libXext
88 dri? ( x11-proto/xf86driproto
89 >=x11-libs/libdrm-2.4.5 )"
90
91 BUILD_TARGETS="all"
92 BUILD_TARGET_ARCH="${ARCH}"
93 MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)"
94
95 S="${WORKDIR}/${MY_P}_OSE"
96
97 QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
98
99 pkg_setup() {
100 linux-mod_pkg_setup
101 BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
102
103 python_set_active_version 2
104 python_pkg_setup
105 }
106
107 src_prepare() {
108 # Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR}
109 cp -a "${S}"/src/VBox/Additions/linux/drm \
110 "${WORKDIR}/vboxvideo_drm" || die "cannot copy vboxvideo_drm directory"
111 cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \
112 "${WORKDIR}/vboxvideo_drm/Makefile" || die "cannot copy vboxvideo_drm Makefile"
113
114 # stupid new header references...
115 for vboxheader in {product,version}-generated.h ; do
116 ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
117 "${WORKDIR}/vboxvideo_drm/${vboxheader}"
118 done
119
120 # Remove shipped binaries (kBuild,yasm), see bug #232775
121 rm -rf kBuild/bin tools
122
123 # Disable things unused or splitted into separate ebuilds
124 cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk
125
126 # Ugly hack to build the opengl part of the video driver
127 epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
128
129 # unset useless/problematic checks in configure
130 epatch "${FILESDIR}/${PN}-3.2.8-mesa-check.patch" \
131 "${FILESDIR}/${PN}-4-makeself-check.patch" \
132 "${FILESDIR}/${PN}-4-mkisofs-check.patch"
133 }
134
135 src_configure() {
136 # build the user-space tools, warnings are harmless
137 ./configure --nofatal \
138 --disable-xpcom \
139 --disable-sdl-ttf \
140 --disable-pulse \
141 --disable-alsa \
142 --build-headless || die "configure failed"
143 source ./env.sh
144 }
145
146 src_compile() {
147 for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \
148 /src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \
149 /src/VBox/Additions/x11/vboxvideo ; do
150 cd "${S}"${each}
151 MAKE="kmk" emake TOOL_YASM_AS=yasm \
152 KBUILD_PATH="${S}/kBuild" \
153 || die "kmk failed"
154 done
155
156 if use dri; then
157 # Now creating the kernel modules. We must do this _after_
158 # we compiled the user-space tools as we need two of the
159 # automatically generated header files. (>=3.2.0)
160 linux-mod_src_compile
161 fi
162 }
163
164 src_install() {
165 if use dri; then
166 linux-mod_src_install
167 fi
168
169 cd "${S}/out/linux.${ARCH}/release/bin/additions"
170 insinto /usr/$(get_libdir)/xorg/modules/drivers
171
172 # xorg-server-1.11.x
173 if has_version ">=x11-base/xorg-server-1.11" ; then
174 newins vboxvideo_drv_111.so vboxvideo_drv.so
175 # xorg-server-1.10.x
176 elif has_version ">=x11-base/xorg-server-1.10" ; then
177 newins vboxvideo_drv_110.so vboxvideo_drv.so
178 # xorg-server-1.9.x
179 else
180 newins vboxvideo_drv_19.so vboxvideo_drv.so
181 fi
182
183 # Guest OpenGL driver
184 insinto /usr/$(get_libdir)
185 doins -r VBoxOGL* || die
186
187 if use dri ; then
188 dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so
189 fi
190 }
191
192 pkg_postinst() {
193 elog "You need to edit the file /etc/X11/xorg.conf and set:"
194 elog ""
195 elog " Driver \"vboxvideo\""
196 elog ""
197 elog "in the Graphics device section (Section \"Device\")"
198 elog ""
199 if use dri; then
200 elog "To use the kernel drm video driver, please add:"
201 elog "\"vboxvideo\" to:"
202 if has_version sys-apps/openrc; then
203 elog "/etc/conf.d/modules"
204 else
205 elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
206 fi
207 elog ""
208 fi
209 }