1 |
patrick 09/09/10 20:06:30 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: virtualbox-ose-3.0.6.ebuild |
5 |
Log: |
6 |
Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.24 app-emulation/virtualbox-ose/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.24&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.24&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?r1=1.23&r2=1.24 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v |
19 |
retrieving revision 1.23 |
20 |
retrieving revision 1.24 |
21 |
diff -u -r1.23 -r1.24 |
22 |
--- ChangeLog 17 Aug 2009 14:39:29 -0000 1.23 |
23 |
+++ ChangeLog 10 Sep 2009 20:06:30 -0000 1.24 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-emulation/virtualbox-ose |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.23 2009/08/17 14:39:29 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.24 2009/09/10 20:06:30 patrick Exp $ |
29 |
+ |
30 |
+*virtualbox-ose-3.0.6 (10 Sep 2009) |
31 |
+ |
32 |
+ 10 Sep 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +virtualbox-ose-3.0.6.ebuild: |
34 |
+ Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407 |
35 |
|
36 |
17 Aug 2009; Patrick Lauer <patrick@g.o> |
37 |
-virtualbox-ose-2.1.4-r1.ebuild, -virtualbox-ose-2.1.4-r2.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-emulation/virtualbox-ose/virtualbox-ose-3.0.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-3.0.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-3.0.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: virtualbox-ose-3.0.6.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-3.0.6.ebuild,v 1.1 2009/09/10 20:06:30 patrick Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4 toolchain-funcs |
55 |
|
56 |
if [[ ${PV} == "9999" ]] ; then |
57 |
# XXX: should finish merging the -9999 ebuild into this one ... |
58 |
ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk" |
59 |
inherit linux-mod subversion |
60 |
else |
61 |
MY_P=VirtualBox-${PV}-OSE |
62 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
63 |
S=${WORKDIR}/${MY_P/-OSE/_OSE} |
64 |
fi |
65 |
|
66 |
DESCRIPTION="Software family of powerful x86 virtualization" |
67 |
HOMEPAGE="http://www.virtualbox.org/" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~x86" |
72 |
IUSE="+additions alsa +hal headless pulseaudio +opengl python +qt4 sdk vboxwebsrv" |
73 |
|
74 |
RDEPEND="!app-emulation/virtualbox-bin |
75 |
~app-emulation/virtualbox-modules-${PV} |
76 |
dev-libs/libIDL |
77 |
>=dev-libs/libxslt-1.1.19 |
78 |
net-misc/curl |
79 |
!headless? ( |
80 |
qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
81 |
opengl? ( virtual/opengl virtual/glut ) |
82 |
x11-libs/libXcursor |
83 |
media-libs/libsdl[X,video] |
84 |
x11-libs/libXt |
85 |
)" |
86 |
DEPEND="${RDEPEND} |
87 |
>=dev-util/kbuild-0.1.5-r1 |
88 |
>=dev-lang/yasm-0.6.2 |
89 |
sys-devel/bin86 |
90 |
sys-devel/dev86 |
91 |
sys-power/iasl |
92 |
media-libs/libpng |
93 |
sys-libs/libcap |
94 |
alsa? ( >=media-libs/alsa-lib-1.0.13 ) |
95 |
hal? ( sys-apps/hal ) |
96 |
pulseaudio? ( media-sound/pulseaudio ) |
97 |
python? ( >=dev-lang/python-2.3 ) |
98 |
vboxwebsrv? ( >=net-libs/gsoap-2.7.9f )" |
99 |
RDEPEND="${RDEPEND} |
100 |
additions? ( ~app-emulation/virtualbox-ose-additions-${PV} )" |
101 |
|
102 |
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so |
103 |
usr/lib/virtualbox-ose/VBoxSDL.so |
104 |
usr/lib/virtualbox-ose/VBoxPython2_4.so |
105 |
usr/lib/virtualbox-ose/VBoxSharedFolders.so |
106 |
usr/lib/virtualbox-ose/VBoxDD2.so |
107 |
usr/lib/virtualbox-ose/VBoxOGLrenderspu.so |
108 |
usr/lib/virtualbox-ose/VBoxPython.so |
109 |
usr/lib/virtualbox-ose/VBoxDD.so |
110 |
usr/lib/virtualbox-ose/VBoxDDU.so |
111 |
usr/lib/virtualbox-ose/VBoxREM64.so |
112 |
usr/lib/virtualbox-ose/VBoxSharedClipboard.so |
113 |
usr/lib/virtualbox-ose/VBoxHeadless.so |
114 |
usr/lib/virtualbox-ose/VBoxRT.so |
115 |
usr/lib/virtualbox-ose/VBoxREM.so |
116 |
usr/lib/virtualbox-ose/VBoxSettings.so |
117 |
usr/lib/virtualbox-ose/VBoxKeyboard.so |
118 |
usr/lib/virtualbox-ose/VBoxSharedCrOpenGL.so |
119 |
usr/lib/virtualbox-ose/VBoxVMM.so |
120 |
usr/lib/virtualbox-ose/VirtualBox.so |
121 |
usr/lib/virtualbox-ose/VBoxOGLhosterrorspu.so |
122 |
usr/lib/virtualbox-ose/components/VBoxC.so |
123 |
usr/lib/virtualbox-ose/components/VBoxSVCM.so |
124 |
usr/lib/virtualbox-ose/components/VBoxDDU.so |
125 |
usr/lib/virtualbox-ose/components/VBoxRT.so |
126 |
usr/lib/virtualbox-ose/components/VBoxREM.so |
127 |
usr/lib/virtualbox-ose/components/VBoxVMM.so |
128 |
usr/lib/virtualbox-ose/VBoxREM32.so |
129 |
usr/lib/virtualbox-ose/VBoxPython2_5.so |
130 |
usr/lib/virtualbox-ose/VBoxXPCOMC.so |
131 |
usr/lib/virtualbox-ose/VBoxOGLhostcrutil.so |
132 |
usr/lib/virtualbox-ose/VBoxNetDHCP.so" |
133 |
|
134 |
pkg_setup() { |
135 |
if ! use headless && ! use qt4 ; then |
136 |
einfo "No USE=\"qt4\" selected, this build will not include" |
137 |
einfo "any Qt frontend." |
138 |
elif use headless && use qt4 ; then |
139 |
einfo "You selected USE=\"headless qt4\", defaulting to" |
140 |
einfo "USE=\"headless\", this build will not include any X11/Qt frontend." |
141 |
fi |
142 |
|
143 |
if ! use opengl ; then |
144 |
einfo "No USE=\"opengl\" selected, this build will lack" |
145 |
einfo "the OpenGL feature." |
146 |
fi |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
151 |
rm -rf kBuild/bin tools |
152 |
|
153 |
# Disable things unused or split into separate ebuilds |
154 |
sed -e "s/MY_LIBDIR/$(get_libdir)/" \ |
155 |
"${FILESDIR}"/${PN}-2-localconfig > LocalConfig.kmk || die |
156 |
|
157 |
# unset useless/problematic mesa checks in configure |
158 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
159 |
} |
160 |
|
161 |
src_configure() { |
162 |
local myconf |
163 |
use alsa || myconf="${myconf} --disable-alsa" |
164 |
use opengl || myconf="${myconf} --disable-opengl" |
165 |
use pulseaudio || myconf="${myconf} --disable-pulse" |
166 |
use python || myconf="${myconf} --disable-python" |
167 |
use hal || myconf="${myconf} --disable-dbus" |
168 |
use vboxwebsrv && myconf="${myconf} --enable-webservice" |
169 |
if ! use headless ; then |
170 |
use qt4 || myconf="${myconf} --disable-qt4" |
171 |
else |
172 |
myconf="${myconf} --build-headless --disable-opengl" |
173 |
fi |
174 |
# not an autoconf script |
175 |
./configure \ |
176 |
--with-gcc="$(tc-getCC)" \ |
177 |
--with-g++="$(tc-getCXX)" \ |
178 |
--disable-kmods \ |
179 |
${myconf} \ |
180 |
|| die "configure failed" |
181 |
} |
182 |
|
183 |
src_compile() { |
184 |
source ./env.sh |
185 |
|
186 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
187 |
# and strip all flags |
188 |
strip-flags |
189 |
|
190 |
MAKE="kmk" emake \ |
191 |
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ |
192 |
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ |
193 |
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ |
194 |
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ |
195 |
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ |
196 |
all || die "kmk failed" |
197 |
} |
198 |
|
199 |
src_install() { |
200 |
cd "${S}"/out/linux.*/release/bin || die |
201 |
|
202 |
# Create configuration files |
203 |
insinto /etc/vbox |
204 |
newins "${FILESDIR}/${PN}-2-config" vbox.cfg |
205 |
|
206 |
# Set the right libdir |
207 |
sed -i \ |
208 |
-e "s/MY_LIBDIR/$(get_libdir)/" \ |
209 |
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" |
210 |
|
211 |
# Symlink binaries to the shipped wrapper |
212 |
exeinto /usr/$(get_libdir)/${PN} |
213 |
newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die |
214 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox |
215 |
fperms 0750 /usr/$(get_libdir)/${PN}/VBox |
216 |
|
217 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage |
218 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP |
219 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless |
220 |
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
221 |
|
222 |
# Install binaries and libraries |
223 |
insinto /usr/$(get_libdir)/${PN} |
224 |
doins -r components || die |
225 |
|
226 |
if use sdk ; then |
227 |
doins -r sdk || die |
228 |
fi |
229 |
|
230 |
if use vboxwebsrv ; then |
231 |
doins vboxwebsrv || die |
232 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv |
233 |
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv |
234 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv |
235 |
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv |
236 |
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv |
237 |
fi |
238 |
|
239 |
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP} *so *r0 *gc ; do |
240 |
doins $each || die |
241 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
242 |
fperms 0750 /usr/$(get_libdir)/${PN}/${each} |
243 |
done |
244 |
# VBoxNetAdpCtl binary needs to be suid root in any case.. |
245 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl |
246 |
|
247 |
if ! use headless ; then |
248 |
for each in VBox{SDL,Headless} ; do |
249 |
doins $each || die |
250 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
251 |
fperms 4750 /usr/$(get_libdir)/${PN}/${each} |
252 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} |
253 |
done |
254 |
|
255 |
if use opengl ; then |
256 |
doins VBoxTestOGL || die |
257 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL |
258 |
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL |
259 |
fi |
260 |
|
261 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL |
262 |
|
263 |
if use qt4 ; then |
264 |
doins VirtualBox || die |
265 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox |
266 |
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox |
267 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox |
268 |
|
269 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox |
270 |
fi |
271 |
|
272 |
newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png |
273 |
domenu "${FILESDIR}"/${PN}.desktop |
274 |
else |
275 |
doins VBoxHeadless || die |
276 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless |
277 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless |
278 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless |
279 |
fi |
280 |
|
281 |
insinto /usr/share/${PN} |
282 |
doins -r nls |
283 |
} |
284 |
|
285 |
pkg_postinst() { |
286 |
fdo-mime_desktop_database_update |
287 |
if ! use headless ; then |
288 |
elog "To launch VirtualBox just type: \"VirtualBox\"" |
289 |
fi |
290 |
elog "You must be in the vboxusers group to use VirtualBox." |
291 |
elog "" |
292 |
elog "The lastest user manual is available for download at:" |
293 |
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" |
294 |
elog "" |
295 |
elog "For advanced networking setups you should emerge:" |
296 |
elog "net-misc/bridge-utils and sys-apps/usermode-utilities" |
297 |
} |
298 |
|
299 |
pkg_postrm() { |
300 |
fdo-mime_desktop_database_update |
301 |
} |