1 |
jokey 08/10/27 17:19:20 |
2 |
|
3 |
Modified: virtualbox-ose-1.6.6.ebuild ChangeLog |
4 |
virtualbox-ose-9999.ebuild |
5 |
virtualbox-ose-2.0.2.ebuild |
6 |
Added: virtualbox-ose-2.0.4.ebuild |
7 |
Removed: virtualbox-ose-1.6.4.ebuild |
8 |
Log: |
9 |
(Proxy commit) Version bump |
10 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.3 app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild?rev=1.3&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild?rev=1.3&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild?r1=1.2&r2=1.3 |
18 |
|
19 |
Index: virtualbox-ose-1.6.6.ebuild |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild,v |
22 |
retrieving revision 1.2 |
23 |
retrieving revision 1.3 |
24 |
diff -u -r1.2 -r1.3 |
25 |
--- virtualbox-ose-1.6.6.ebuild 15 Sep 2008 19:54:48 -0000 1.2 |
26 |
+++ virtualbox-ose-1.6.6.ebuild 27 Oct 2008 17:19:20 -0000 1.3 |
27 |
@@ -1,6 +1,6 @@ |
28 |
# Copyright 1999-2008 Gentoo Foundation |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild,v 1.2 2008/09/15 19:54:48 jokey Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.6.ebuild,v 1.3 2008/10/27 17:19:20 jokey Exp $ |
32 |
|
33 |
EAPI=1 |
34 |
|
35 |
@@ -20,8 +20,6 @@ |
36 |
~app-emulation/virtualbox-modules-${PV} |
37 |
dev-libs/libIDL |
38 |
>=dev-libs/libxslt-1.1.19 |
39 |
- dev-libs/xalan-c |
40 |
- dev-libs/xerces-c |
41 |
!headless? ( |
42 |
qt3? ( x11-libs/qt:3 ) |
43 |
x11-libs/libXcursor |
44 |
@@ -130,7 +128,7 @@ |
45 |
|
46 |
# create virtualbox configurations files |
47 |
insinto /etc/vbox |
48 |
- newins "${FILESDIR}/${PN}-config" vbox.cfg |
49 |
+ newins "${FILESDIR}/${PN}-1-config" vbox.cfg |
50 |
newins "${FILESDIR}/${PN}-interfaces" interfaces |
51 |
|
52 |
insinto /opt/VirtualBox |
53 |
@@ -170,7 +168,7 @@ |
54 |
fi |
55 |
|
56 |
exeinto /opt/VirtualBox |
57 |
- newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die |
58 |
+ newexe "${FILESDIR}/${PN}-1-wrapper" "VBox.sh" || die |
59 |
fowners root:vboxusers /opt/VirtualBox/VBox.sh |
60 |
fperms 0750 /opt/VirtualBox/VBox.sh |
61 |
newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die |
62 |
|
63 |
|
64 |
|
65 |
1.7 app-emulation/virtualbox-ose/ChangeLog |
66 |
|
67 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.7&view=markup |
68 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.7&content-type=text/plain |
69 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?r1=1.6&r2=1.7 |
70 |
|
71 |
Index: ChangeLog |
72 |
=================================================================== |
73 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v |
74 |
retrieving revision 1.6 |
75 |
retrieving revision 1.7 |
76 |
diff -u -r1.6 -r1.7 |
77 |
--- ChangeLog 15 Sep 2008 19:54:48 -0000 1.6 |
78 |
+++ ChangeLog 27 Oct 2008 17:19:20 -0000 1.7 |
79 |
@@ -1,6 +1,46 @@ |
80 |
# ChangeLog for app-emulation/virtualbox-ose |
81 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
82 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.6 2008/09/15 19:54:48 jokey Exp $ |
83 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.7 2008/10/27 17:19:20 jokey Exp $ |
84 |
+ |
85 |
+*virtualbox-ose-2.0.4 (27 Oct 2008) |
86 |
+ |
87 |
+ 27 Oct 2008; Markus Ullmann <jokey@g.o> |
88 |
+ -files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch, |
89 |
+ -files/virtualbox-ose-1.6.4-remove-unused.patch, |
90 |
+ +files/virtualbox-ose-1-config, +files/virtualbox-ose-1-wrapper, |
91 |
+ -files/virtualbox-ose-2.0.2-config, |
92 |
+ -files/virtualbox-ose-2.0.2-localconfig, |
93 |
+ -files/virtualbox-ose-2.0.2-wrapper, +files/virtualbox-ose-2-config, |
94 |
+ +files/virtualbox-ose-2-localconfig, +files/virtualbox-ose-2-wrapper, |
95 |
+ files/virtualbox-ose.desktop, -files/virtualbox-ose-config, |
96 |
+ -files/virtualbox-ose-wrapper, -virtualbox-ose-1.6.4.ebuild, |
97 |
+ virtualbox-ose-1.6.6.ebuild, virtualbox-ose-2.0.2.ebuild, |
98 |
+ +virtualbox-ose-2.0.4.ebuild, virtualbox-ose-9999.ebuild: |
99 |
+ (Proxy commit) Version bump |
100 |
+ |
101 |
+ 25 Oct 2008; Alessio Cassibba (X-Drum) <swapon@×××××.com> |
102 |
+ -virtualbox-ose-1.6.4.ebuild, |
103 |
+ -files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch, |
104 |
+ -files/virtualbox-ose-1.6.4-remove-unused.patch, |
105 |
+ virtualbox-ose-1.6.6.ebuild, +files/virtualbox-ose-1-config, |
106 |
+ +files/virtualbox-ose-1-wrapper, virtualbox-ose-2.0.2.ebuild, |
107 |
+ -files/virtualbox-ose-2.0.2-config, |
108 |
+ -files/virtualbox-ose-2.0.2-localconfig, |
109 |
+ -files/virtualbox-ose-2.0.2-wrapper, +virtualbox-ose-2.0.4.ebuild, |
110 |
+ +files/virtualbox-ose-2-config, +files/virtualbox-ose-2-localconfig, |
111 |
+ +files/virtualbox-ose-2-wrapper, virtualbox-ose-9999.ebuild, |
112 |
+ -files/virtualbox-ose-config, -files/virtualbox-ose-wrapper: |
113 |
+ Version Bump; drop version 1.6.4; remove xalan-c,xerces from RDEPEND wrt |
114 |
+ #243818 |
115 |
+ |
116 |
+ 22 Oct 2008; Alessio Cassibba (X-Drum) <swapon@×××××.com> |
117 |
+ files/virtualbox-ose.desktop: |
118 |
+ fix icon in virtualbox-ose.desktop wrt #242714 |
119 |
+ |
120 |
+ 24 Sep 2008; Alessio Cassibba (X-Drum) <swapon@×××××.com> |
121 |
+ virtualbox-ose-2.0.2.ebuild, files/virtualbox-ose-2.0.2-config, |
122 |
+ files/virtualbox-ose-2.0.2-localconfig: |
123 |
+ fix libdir for amd64 profiles (explicitly pass libdir to kBuild) wrt #238025 |
124 |
|
125 |
*virtualbox-ose-2.0.2 (15 Sep 2008) |
126 |
|
127 |
|
128 |
|
129 |
|
130 |
1.4 app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild |
131 |
|
132 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild?rev=1.4&view=markup |
133 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild?rev=1.4&content-type=text/plain |
134 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild?r1=1.3&r2=1.4 |
135 |
|
136 |
Index: virtualbox-ose-9999.ebuild |
137 |
=================================================================== |
138 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild,v |
139 |
retrieving revision 1.3 |
140 |
retrieving revision 1.4 |
141 |
diff -u -r1.3 -r1.4 |
142 |
--- virtualbox-ose-9999.ebuild 15 Sep 2008 19:54:48 -0000 1.3 |
143 |
+++ virtualbox-ose-9999.ebuild 27 Oct 2008 17:19:20 -0000 1.4 |
144 |
@@ -1,6 +1,6 @@ |
145 |
# Copyright 1999-2008 Gentoo Foundation |
146 |
# Distributed under the terms of the GNU General Public License v2 |
147 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild,v 1.3 2008/09/15 19:54:48 jokey Exp $ |
148 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild,v 1.4 2008/10/27 17:19:20 jokey Exp $ |
149 |
|
150 |
EAPI=1 |
151 |
|
152 |
@@ -111,12 +111,12 @@ |
153 |
|
154 |
# create configuration files |
155 |
insinto /etc/vbox |
156 |
- newins "${FILESDIR}/${PN}-2.0.2-config" vbox.cfg |
157 |
+ newins "${FILESDIR}/${PN}-2-config" vbox.cfg |
158 |
newins "${FILESDIR}/${PN}-interfaces" interfaces |
159 |
|
160 |
# symlink binaries to the shipped wrapper |
161 |
exeinto /usr/lib/${PN} |
162 |
- newexe "${FILESDIR}/${PN}-2.0.2-wrapper" "VBox" || die |
163 |
+ newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die |
164 |
fowners root:vboxusers /usr/lib/${PN}/VBox |
165 |
fperms 0750 /usr/lib/${PN}/VBox |
166 |
newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF" || die |
167 |
|
168 |
|
169 |
|
170 |
1.3 app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild |
171 |
|
172 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild?rev=1.3&view=markup |
173 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild?rev=1.3&content-type=text/plain |
174 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild?r1=1.2&r2=1.3 |
175 |
|
176 |
Index: virtualbox-ose-2.0.2.ebuild |
177 |
=================================================================== |
178 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild,v |
179 |
retrieving revision 1.2 |
180 |
retrieving revision 1.3 |
181 |
diff -u -r1.2 -r1.3 |
182 |
--- virtualbox-ose-2.0.2.ebuild 15 Sep 2008 22:14:11 -0000 1.2 |
183 |
+++ virtualbox-ose-2.0.2.ebuild 27 Oct 2008 17:19:20 -0000 1.3 |
184 |
@@ -1,6 +1,6 @@ |
185 |
# Copyright 1999-2008 Gentoo Foundation |
186 |
# Distributed under the terms of the GNU General Public License v2 |
187 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild,v 1.2 2008/09/15 22:14:11 mr_bones_ Exp $ |
188 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.2.ebuild,v 1.3 2008/10/27 17:19:20 jokey Exp $ |
189 |
|
190 |
EAPI=1 |
191 |
|
192 |
@@ -20,8 +20,6 @@ |
193 |
~app-emulation/virtualbox-modules-${PV} |
194 |
dev-libs/libIDL |
195 |
>=dev-libs/libxslt-1.1.19 |
196 |
- dev-libs/xalan-c |
197 |
- dev-libs/xerces-c |
198 |
!headless? ( |
199 |
qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
200 |
x11-libs/libXcursor |
201 |
@@ -45,6 +43,7 @@ |
202 |
sys-apps/hal" |
203 |
|
204 |
S=${WORKDIR}/${MY_P/-OSE/} |
205 |
+MY_LIBDIR="$(get_libdir)" |
206 |
|
207 |
pkg_setup() { |
208 |
# known problems with gcc 4.3 and the recompiler |
209 |
@@ -86,8 +85,13 @@ |
210 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
211 |
rm -rf kBuild/bin tools |
212 |
|
213 |
- # Disable things unused or splitted into separate ebuilds |
214 |
- cp "${FILESDIR}/${P}-localconfig" LocalConfig.kmk |
215 |
+ # Disable things unused or splitted into separate ebuilds |
216 |
+ cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk |
217 |
+ |
218 |
+ # Set the right libdir |
219 |
+ sed -i \ |
220 |
+ -e "s/MY_LIBDIR/${MY_LIBDIR}/" LocalConfig.kmk \ |
221 |
+ || die "LocalConfig.kmk sed failed" |
222 |
} |
223 |
|
224 |
src_compile() { |
225 |
@@ -132,29 +136,34 @@ |
226 |
src_install() { |
227 |
cd "${S}"/out/linux.${ARCH}/release/bin |
228 |
|
229 |
- # create configuration files |
230 |
+ # Create configuration files |
231 |
insinto /etc/vbox |
232 |
- newins "${FILESDIR}/${P}-config" vbox.cfg |
233 |
+ newins "${FILESDIR}/${PN}-2-config" vbox.cfg |
234 |
newins "${FILESDIR}/${PN}-interfaces" interfaces |
235 |
|
236 |
- # symlink binaries to the shipped wrapper |
237 |
- exeinto /usr/lib/${PN} |
238 |
- newexe "${FILESDIR}/${P}-wrapper" "VBox" || die |
239 |
- fowners root:vboxusers /usr/lib/${PN}/VBox |
240 |
- fperms 0750 /usr/lib/${PN}/VBox |
241 |
+ # Set the right libdir |
242 |
+ sed -i \ |
243 |
+ -e "s/MY_LIBDIR/${MY_LIBDIR}/" \ |
244 |
+ "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" |
245 |
+ |
246 |
+ # Symlink binaries to the shipped wrapper |
247 |
+ exeinto /usr/${MY_LIBDIR}/${PN} |
248 |
+ newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die |
249 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBox |
250 |
+ fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBox |
251 |
newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF" || die |
252 |
- fowners root:vboxusers /usr/lib/${PN}/VBoxAddIF |
253 |
- fperms 0750 /usr/lib/${PN}/VBoxAddIF |
254 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxAddIF |
255 |
+ fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxAddIF |
256 |
|
257 |
- dosym /usr/lib/${PN}/VBox /usr/bin/VBoxManage |
258 |
- dosym /usr/lib/${PN}/VBox /usr/bin/VBoxVRDP |
259 |
- dosym /usr/lib/${PN}/VBox /usr/bin/VBoxHeadless |
260 |
- dosym /usr/lib/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
261 |
- dosym /usr/lib/${PN}/VBoxAddIF /usr/bin/VBoxAddIF |
262 |
- dosym /usr/lib/${PN}/VBoxAddIF /usr/bin/VBoxDeleteIF |
263 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxManage |
264 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxVRDP |
265 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxHeadless |
266 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
267 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxAddIF |
268 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxDeleteIF |
269 |
|
270 |
- # install binaries and libraries |
271 |
- insinto /usr/lib/${PN} |
272 |
+ # Install binaries and libraries |
273 |
+ insinto /usr/${MY_LIBDIR}/${PN} |
274 |
doins -r components |
275 |
|
276 |
if use sdk; then |
277 |
@@ -163,42 +172,42 @@ |
278 |
|
279 |
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do |
280 |
doins $each |
281 |
- fowners root:vboxusers /usr/lib/${PN}/${each} |
282 |
- fperms 0750 /usr/lib/${PN}/${each} |
283 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} |
284 |
+ fperms 0750 /usr/${MY_LIBDIR}/${PN}/${each} |
285 |
done |
286 |
|
287 |
if use amd64; then |
288 |
doins VBoxREM2.rel |
289 |
- fowners root:vboxusers /usr/lib/${PN}/VBoxREM2.rel |
290 |
- fperms 0750 /usr/lib/${PN}/VBoxREM2.rel |
291 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel |
292 |
+ fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel |
293 |
fi |
294 |
|
295 |
if ! use headless; then |
296 |
for each in VBox{SDL,Headless} ; do |
297 |
doins $each |
298 |
- fowners root:vboxusers /usr/lib/${PN}/${each} |
299 |
- fperms 4750 /usr/lib/${PN}/${each} |
300 |
- pax-mark -m "${D}"/usr/lib/${PN}/${each} |
301 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} |
302 |
+ fperms 4750 /usr/${MY_LIBDIR}/${PN}/${each} |
303 |
+ pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/${each} |
304 |
done |
305 |
|
306 |
- dosym /usr/lib/${PN}/VBox /usr/bin/VBoxSDL |
307 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxSDL |
308 |
|
309 |
if use qt4; then |
310 |
doins VirtualBox |
311 |
- fowners root:vboxusers /usr/lib/${PN}/VirtualBox |
312 |
- fperms 4750 /usr/lib/${PN}/VirtualBox |
313 |
- pax-mark -m "${D}"/usr/lib/${PN}/VirtualBox |
314 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VirtualBox |
315 |
+ fperms 4750 /usr/${MY_LIBDIR}/${PN}/VirtualBox |
316 |
+ pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VirtualBox |
317 |
|
318 |
- dosym /usr/lib/${PN}/VBox /usr/bin/VirtualBox |
319 |
+ dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VirtualBox |
320 |
fi |
321 |
|
322 |
newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png |
323 |
domenu "${FILESDIR}"/${PN}.desktop |
324 |
else |
325 |
doins VBoxHeadless |
326 |
- fowners root:vboxusers /usr/lib/${PN}/VBoxHeadless |
327 |
- fperms 4750 /usr/lib/${PN}/VBoxHeadless |
328 |
- pax-mark -m "${D}"/usr/lib/${PN}/VBoxHeadless |
329 |
+ fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
330 |
+ fperms 4750 /usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
331 |
+ pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
332 |
fi |
333 |
|
334 |
insinto /usr/share/${PN} |
335 |
|
336 |
|
337 |
|
338 |
1.1 app-emulation/virtualbox-ose/virtualbox-ose-2.0.4.ebuild |
339 |
|
340 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4.ebuild?rev=1.1&view=markup |
341 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4.ebuild?rev=1.1&content-type=text/plain |
342 |
|
343 |
Index: virtualbox-ose-2.0.4.ebuild |
344 |
=================================================================== |
345 |
# Copyright 1999-2008 Gentoo Foundation |
346 |
# Distributed under the terms of the GNU General Public License v2 |
347 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4.ebuild,v 1.1 2008/10/27 17:19:20 jokey Exp $ |
348 |
|
349 |
EAPI=1 |
350 |
|
351 |
inherit eutils fdo-mime flag-o-matic qt4 toolchain-funcs |
352 |
|
353 |
MY_P=VirtualBox-${PV}-OSE |
354 |
DESCRIPTION="Softwarefamily of powerful x86 virtualization" |
355 |
HOMEPAGE="http://www.virtualbox.org/" |
356 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
357 |
|
358 |
LICENSE="GPL-2" |
359 |
SLOT="0" |
360 |
KEYWORDS="~amd64 ~x86" |
361 |
IUSE="+additions alsa headless pulseaudio python +qt4 sdk" |
362 |
|
363 |
RDEPEND="!app-emulation/virtualbox-bin |
364 |
~app-emulation/virtualbox-modules-${PV} |
365 |
dev-libs/libIDL |
366 |
>=dev-libs/libxslt-1.1.19 |
367 |
!headless? ( |
368 |
qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
369 |
x11-libs/libXcursor |
370 |
media-libs/libsdl |
371 |
x11-libs/libXt )" |
372 |
DEPEND="${RDEPEND} |
373 |
>=dev-util/kbuild-0.1.4 |
374 |
>=dev-lang/yasm-0.6.2 |
375 |
sys-devel/bin86 |
376 |
sys-devel/dev86 |
377 |
sys-power/iasl |
378 |
media-libs/libpng |
379 |
alsa? ( >=media-libs/alsa-lib-1.0.13 ) |
380 |
pulseaudio? ( media-sound/pulseaudio ) |
381 |
python? ( >=dev-lang/python-2.3 )" |
382 |
# sys-apps/hal is required at runtime (bug #197541) |
383 |
RDEPEND="${RDEPEND} |
384 |
additions? ( ~app-emulation/virtualbox-ose-additions-${PV} ) |
385 |
sys-apps/usermode-utilities |
386 |
net-misc/bridge-utils |
387 |
sys-apps/hal" |
388 |
|
389 |
S=${WORKDIR}/${MY_P/-OSE/} |
390 |
MY_LIBDIR="$(get_libdir)" |
391 |
|
392 |
pkg_setup() { |
393 |
# known problems with gcc 4.3 and the recompiler |
394 |
# http://www.virtualbox.org/ticket/936 |
395 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "43" ]]; then |
396 |
eerror "there are known problems with gcc 4.3 and the virtualbox" |
397 |
eerror "recompiler stuff. Please use at least a version of gcc < 4.3" |
398 |
die "gcc 4.3 cannot build the virtualbox recompiler" |
399 |
fi |
400 |
|
401 |
if ! use headless; then |
402 |
# The VBoxSDL frontend needs media-libs/libsdl compiled |
403 |
# with USE flag X enabled (bug #177335) |
404 |
if ! built_with_use media-libs/libsdl X; then |
405 |
eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled." |
406 |
eerror "Please re-emerge media-libs/libsdl with USE=\"X\"." |
407 |
die "media-libs/libsdl should be compiled with the \"X\" USE flag." |
408 |
fi |
409 |
if ! use qt4; then |
410 |
einfo "" |
411 |
einfo "No USE=\"qt4\" selected, this build will not include" |
412 |
einfo "any Qt frontend." |
413 |
einfo "" |
414 |
fi |
415 |
else |
416 |
if use qt4; then |
417 |
einfo "" |
418 |
einfo "You selected USE=\"headless qt4\", defaulting to" |
419 |
einfo "USE=\"headless\", this build will not include any X11/Qt frontend." |
420 |
einfo "" |
421 |
fi |
422 |
fi |
423 |
} |
424 |
|
425 |
src_unpack() { |
426 |
unpack ${A} |
427 |
cd "${S}" |
428 |
|
429 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
430 |
rm -rf kBuild/bin tools |
431 |
|
432 |
# Disable things unused or splitted into separate ebuilds |
433 |
cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk |
434 |
|
435 |
# Set the right libdir |
436 |
sed -i \ |
437 |
-e "s/MY_LIBDIR/${MY_LIBDIR}/" LocalConfig.kmk \ |
438 |
|| die "LocalConfig.kmk sed failed" |
439 |
} |
440 |
|
441 |
src_compile() { |
442 |
|
443 |
local myconf |
444 |
# Don't build vboxdrv kernel module, disable deprecated qt3 support |
445 |
myconf="--disable-kmods --disable-qt3" |
446 |
|
447 |
if ! use pulseaudio; then |
448 |
myconf="${myconf} --disable-pulse" |
449 |
fi |
450 |
if ! use python; then |
451 |
myconf="${myconf} --disable-python" |
452 |
fi |
453 |
if ! use alsa; then |
454 |
myconf="${myconf} --disable-alsa" |
455 |
fi |
456 |
if ! use headless; then |
457 |
if ! use qt4; then |
458 |
myconf="${myconf} --disable-qt4" |
459 |
fi |
460 |
else |
461 |
myconf="${myconf} --build-headless" |
462 |
fi |
463 |
|
464 |
./configure --with-gcc="$(tc-getCC)" --with-g++="$(tc-getCXX)" \ |
465 |
${myconf} || die "configure failed" |
466 |
source ./env.sh |
467 |
|
468 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
469 |
# and strip all flags |
470 |
strip-flags |
471 |
|
472 |
MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ |
473 |
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ |
474 |
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ |
475 |
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ |
476 |
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ |
477 |
all || die "kmk failed" |
478 |
} |
479 |
|
480 |
src_install() { |
481 |
cd "${S}"/out/linux.${ARCH}/release/bin |
482 |
|
483 |
# Create configuration files |
484 |
insinto /etc/vbox |
485 |
newins "${FILESDIR}/${PN}-2-config" vbox.cfg |
486 |
newins "${FILESDIR}/${PN}-interfaces" interfaces |
487 |
|
488 |
# Set the right libdir |
489 |
sed -i \ |
490 |
-e "s/MY_LIBDIR/${MY_LIBDIR}/" \ |
491 |
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" |
492 |
|
493 |
# Symlink binaries to the shipped wrapper |
494 |
exeinto /usr/${MY_LIBDIR}/${PN} |
495 |
newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die |
496 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBox |
497 |
fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBox |
498 |
newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF" || die |
499 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxAddIF |
500 |
fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxAddIF |
501 |
|
502 |
dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxManage |
503 |
dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxVRDP |
504 |
dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxHeadless |
505 |
dosym /usr/${MY_LIBDIR}/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
506 |
dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxAddIF |
507 |
dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxDeleteIF |
508 |
|
509 |
# Install binaries and libraries |
510 |
insinto /usr/${MY_LIBDIR}/${PN} |
511 |
doins -r components |
512 |
|
513 |
if use sdk; then |
514 |
doins -r sdk |
515 |
fi |
516 |
|
517 |
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do |
518 |
doins $each |
519 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} |
520 |
fperms 0750 /usr/${MY_LIBDIR}/${PN}/${each} |
521 |
done |
522 |
|
523 |
if use amd64; then |
524 |
doins VBoxREM2.rel |
525 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel |
526 |
fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel |
527 |
fi |
528 |
|
529 |
if ! use headless; then |
530 |
for each in VBox{SDL,Headless} ; do |
531 |
doins $each |
532 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} |
533 |
fperms 4750 /usr/${MY_LIBDIR}/${PN}/${each} |
534 |
pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/${each} |
535 |
done |
536 |
|
537 |
dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxSDL |
538 |
|
539 |
if use qt4; then |
540 |
doins VirtualBox |
541 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VirtualBox |
542 |
fperms 4750 /usr/${MY_LIBDIR}/${PN}/VirtualBox |
543 |
pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VirtualBox |
544 |
|
545 |
dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VirtualBox |
546 |
fi |
547 |
|
548 |
newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png |
549 |
domenu "${FILESDIR}"/${PN}.desktop |
550 |
else |
551 |
doins VBoxHeadless |
552 |
fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
553 |
fperms 4750 /usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
554 |
pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VBoxHeadless |
555 |
fi |
556 |
|
557 |
insinto /usr/share/${PN} |
558 |
doins -r nls |
559 |
} |
560 |
|
561 |
pkg_postinst() { |
562 |
fdo-mime_desktop_database_update |
563 |
elog "" |
564 |
if ! use headless; then |
565 |
elog "To launch VirtualBox just type: \"VirtualBox\"" |
566 |
fi |
567 |
elog "You must be in the vboxusers group to use VirtualBox." |
568 |
elog "" |
569 |
elog "The last user manual is available for download at:" |
570 |
elog "http://www.virtualbox.org/download/UserManual.pdf" |
571 |
elog "" |
572 |
} |
573 |
|
574 |
pkg_postrm() { |
575 |
fdo-mime_desktop_database_update |
576 |
} |