Gentoo Archives: gentoo-commits

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