1 |
patrick 09/07/16 21:43:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: virtualbox-ose-3.0.2.ebuild |
5 |
Log: |
6 |
Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the testers |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.20 app-emulation/virtualbox-ose/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.20&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?rev=1.20&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog?r1=1.19&r2=1.20 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v |
19 |
retrieving revision 1.19 |
20 |
retrieving revision 1.20 |
21 |
diff -u -r1.19 -r1.20 |
22 |
--- ChangeLog 9 Jun 2009 18:20:46 -0000 1.19 |
23 |
+++ ChangeLog 16 Jul 2009 21:43:01 -0000 1.20 |
24 |
@@ -1,6 +1,14 @@ |
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.19 2009/06/09 18:20:46 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.20 2009/07/16 21:43:01 patrick Exp $ |
29 |
+ |
30 |
+*virtualbox-ose-3.0.2 (16 Jul 2009) |
31 |
+ |
32 |
+ 16 Jul 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +files/virtualbox-ose-3.0.0-mesa-check.patch, |
34 |
+ +virtualbox-ose-3.0.2.ebuild: |
35 |
+ Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the |
36 |
+ testers |
37 |
|
38 |
09 Jun 2009; Patrick Lauer <patrick@g.o> +files/vboxwebsrv-confd, |
39 |
+files/vboxwebsrv-initd: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-emulation/virtualbox-ose/virtualbox-ose-3.0.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-3.0.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-3.0.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: virtualbox-ose-3.0.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 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.0.2.ebuild,v 1.1 2009/07/16 21:43:01 patrick Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4 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 x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) |
83 |
opengl? ( virtual/opengl virtual/glut ) |
84 |
x11-libs/libXcursor |
85 |
media-libs/libsdl[X,video] |
86 |
x11-libs/libXt |
87 |
)" |
88 |
DEPEND="${RDEPEND} |
89 |
>=dev-util/kbuild-0.1.5-r1 |
90 |
>=dev-lang/yasm-0.6.2 |
91 |
sys-devel/bin86 |
92 |
sys-devel/dev86 |
93 |
sys-power/iasl |
94 |
media-libs/libpng |
95 |
sys-libs/libcap |
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.9f )" |
101 |
RDEPEND="${RDEPEND} |
102 |
additions? ( ~app-emulation/virtualbox-ose-additions-${PV} )" |
103 |
|
104 |
pkg_setup() { |
105 |
if ! use headless && ! use qt4 ; then |
106 |
einfo "No USE=\"qt4\" selected, this build will not include" |
107 |
einfo "any Qt frontend." |
108 |
elif use headless && use qt4 ; then |
109 |
einfo "You selected USE=\"headless qt4\", defaulting to" |
110 |
einfo "USE=\"headless\", this build will not include any X11/Qt frontend." |
111 |
fi |
112 |
|
113 |
if ! use opengl ; then |
114 |
einfo "No USE=\"opengl\" selected, this build will lack" |
115 |
einfo "the OpenGL feature." |
116 |
fi |
117 |
} |
118 |
|
119 |
src_prepare() { |
120 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
121 |
rm -rf kBuild/bin tools |
122 |
|
123 |
# Disable things unused or split into separate ebuilds |
124 |
sed -e "s/MY_LIBDIR/$(get_libdir)/" \ |
125 |
"${FILESDIR}"/${PN}-2-localconfig > LocalConfig.kmk || die |
126 |
|
127 |
# unset useless/problematic mesa checks in configure |
128 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
129 |
} |
130 |
|
131 |
src_configure() { |
132 |
local myconf |
133 |
use alsa || myconf="${myconf} --disable-alsa" |
134 |
use opengl || myconf="${myconf} --disable-opengl" |
135 |
use pulseaudio || myconf="${myconf} --disable-pulse" |
136 |
use python || myconf="${myconf} --disable-python" |
137 |
use hal || myconf="${myconf} --disable-dbus" |
138 |
use vboxwebsrv && myconf="${myconf} --enable-webservice" |
139 |
if ! use headless ; then |
140 |
use qt4 || myconf="${myconf} --disable-qt4" |
141 |
else |
142 |
myconf="${myconf} --build-headless --disable-opengl" |
143 |
fi |
144 |
# not an autoconf script |
145 |
./configure \ |
146 |
--with-gcc="$(tc-getCC)" \ |
147 |
--with-g++="$(tc-getCXX)" \ |
148 |
--disable-kmods \ |
149 |
${myconf} \ |
150 |
|| die "configure failed" |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
source ./env.sh |
155 |
|
156 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
157 |
# and strip all flags |
158 |
strip-flags |
159 |
|
160 |
MAKE="kmk" emake \ |
161 |
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ |
162 |
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ |
163 |
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ |
164 |
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ |
165 |
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ |
166 |
all || die "kmk failed" |
167 |
} |
168 |
|
169 |
src_install() { |
170 |
cd "${S}"/out/linux.*/release/bin || die |
171 |
|
172 |
# Create configuration files |
173 |
insinto /etc/vbox |
174 |
newins "${FILESDIR}/${PN}-2-config" vbox.cfg |
175 |
|
176 |
# Set the right libdir |
177 |
sed -i \ |
178 |
-e "s/MY_LIBDIR/$(get_libdir)/" \ |
179 |
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" |
180 |
|
181 |
# Symlink binaries to the shipped wrapper |
182 |
exeinto /usr/$(get_libdir)/${PN} |
183 |
newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die |
184 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox |
185 |
fperms 0750 /usr/$(get_libdir)/${PN}/VBox |
186 |
|
187 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage |
188 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP |
189 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless |
190 |
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
191 |
|
192 |
# Install binaries and libraries |
193 |
insinto /usr/$(get_libdir)/${PN} |
194 |
doins -r components || die |
195 |
|
196 |
if use sdk ; then |
197 |
doins -r sdk || die |
198 |
fi |
199 |
|
200 |
if use vboxwebsrv ; then |
201 |
doins vboxwebsrv || die |
202 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv |
203 |
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv |
204 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv |
205 |
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv |
206 |
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv |
207 |
fi |
208 |
|
209 |
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,TestOGL} *so *r0 *gc ; do |
210 |
doins $each || die |
211 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
212 |
fperms 0750 /usr/$(get_libdir)/${PN}/${each} |
213 |
done |
214 |
# VBoxNetAdpCtl binary needs to be suid root in any case.. |
215 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl |
216 |
|
217 |
if ! use headless ; then |
218 |
for each in VBox{SDL,Headless} ; do |
219 |
doins $each || die |
220 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
221 |
fperms 4750 /usr/$(get_libdir)/${PN}/${each} |
222 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} |
223 |
done |
224 |
|
225 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL |
226 |
|
227 |
if use qt4 ; then |
228 |
doins VirtualBox || die |
229 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox |
230 |
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox |
231 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox |
232 |
|
233 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox |
234 |
fi |
235 |
|
236 |
newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png |
237 |
domenu "${FILESDIR}"/${PN}.desktop |
238 |
else |
239 |
doins VBoxHeadless || die |
240 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless |
241 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless |
242 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless |
243 |
fi |
244 |
|
245 |
insinto /usr/share/${PN} |
246 |
doins -r nls |
247 |
} |
248 |
|
249 |
pkg_postinst() { |
250 |
fdo-mime_desktop_database_update |
251 |
if ! use headless ; then |
252 |
elog "To launch VirtualBox just type: \"VirtualBox\"" |
253 |
fi |
254 |
elog "You must be in the vboxusers group to use VirtualBox." |
255 |
elog "" |
256 |
elog "The lastest user manual is available for download at:" |
257 |
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" |
258 |
elog "" |
259 |
elog "For advanced networking setups you should emerge:" |
260 |
elog "net-misc/bridge-utils and sys-apps/usermode-utilities" |
261 |
} |
262 |
|
263 |
pkg_postrm() { |
264 |
fdo-mime_desktop_database_update |
265 |
} |