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