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