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