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