Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/virtualbox: virtualbox-9999.ebuild ChangeLog virtualbox-1.5.4.ebuild
Date: Sat, 05 Jan 2008 17:51:59
Message-Id: E1JBDBU-0001j0-Fc@stork.gentoo.org
1 jokey 08/01/05 17:51:48
2
3 Modified: virtualbox-9999.ebuild ChangeLog
4 Added: virtualbox-1.5.4.ebuild
5 Log:
6 Version bump wrt bug #203893 thanks to x-drum
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.22 app-emulation/virtualbox/virtualbox-9999.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild?r1=1.21&r2=1.22
15
16 Index: virtualbox-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- virtualbox-9999.ebuild 22 Oct 2007 22:19:38 -0000 1.21
23 +++ virtualbox-9999.ebuild 5 Jan 2008 17:51:47 -0000 1.22
24 @@ -1,8 +1,8 @@
25 -# Copyright 1999-2007 Gentoo Foundation
26 +# Copyright 1999-2008 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild,v 1.21 2007/10/22 22:19:38 jokey Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-9999.ebuild,v 1.22 2008/01/05 17:51:47 jokey Exp $
30
31 -inherit eutils flag-o-matic linux-mod qt3 subversion toolchain-funcs
32 +inherit eutils fdo-mime flag-o-matic linux-mod qt3 subversion toolchain-funcs
33
34 DESCRIPTION="Softwarefamily of powerful x86 virtualization"
35 HOMEPAGE="http://www.virtualbox.org/"
36 @@ -11,7 +11,7 @@
37 LICENSE="GPL-2"
38 SLOT="0"
39 KEYWORDS="~amd64 ~x86"
40 -IUSE="sdk"
41 +IUSE="pulseaudio sdk"
42
43 RDEPEND="!app-emulation/virtualbox-bin
44 !app-emulation/virtualbox-additions
45 @@ -22,16 +22,18 @@
46 dev-libs/xerces-c
47 media-libs/libsdl
48 x11-libs/libXcursor
49 - $(qt_min_version 3.3.5)
50 - sys-apps/hal"
51 + $(qt_min_version 3.3.5)"
52 DEPEND="${RDEPEND}
53 sys-devel/bin86
54 sys-devel/dev86
55 sys-power/iasl
56 - >=media-libs/alsa-lib-1.0.13"
57 + >=media-libs/alsa-lib-1.0.13
58 + pulseaudio? ( media-sound/pulseaudio )"
59 +# sys-apps/hal is required at runtime (bug #197541)
60 RDEPEND="${RDEPEND}
61 sys-apps/usermode-utilities
62 - net-misc/bridge-utils"
63 + net-misc/bridge-utils
64 + sys-apps/hal"
65
66 BUILD_TARGETS="all"
67 MODULE_NAMES="vboxdrv(misc:${S}/out/linux.${ARCH}/release/bin/src:${S}/out/linux.${ARCH}/release/bin/src)"
68 @@ -54,9 +56,14 @@
69 }
70
71 src_compile() {
72 - cd "${S}"
73
74 - ./configure || die "configure failed"
75 + local myconf
76 + if ! use pulseaudio; then
77 + myconf="${myconf} --disable-pulse"
78 + fi
79 +
80 + ./configure \
81 + ${myconf} || die "configure failed"
82 source ./env.sh
83
84 # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
85 @@ -118,15 +125,13 @@
86 newins "${FILESDIR}/${PN}-interfaces" interfaces
87
88 # desktop entry
89 - insinto /usr/share/pixmaps
90 - newins "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
91 - insinto /usr/share/applications
92 - doins "${FILESDIR}"/${PN}.desktop
93 - dosed -e "s/Version=/Version=${PV}/" /usr/share/applications/${PN}.desktop
94 + newicon "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
95 + domenu "${FILESDIR}"/${PN}.desktop
96 }
97
98 pkg_postinst() {
99 linux-mod_pkg_postinst
100 + fdo-mime_desktop_database_update
101 elog "To launch VirtualBox just type: \"VirtualBox\""
102 elog "You must be in the vboxusers group to use VirtualBox."
103 elog ""
104 @@ -137,3 +142,7 @@
105 elog "additions available for the live ebuild"
106 elog ""
107 }
108 +
109 +pkg_postrm() {
110 + fdo-mime_desktop_database_update
111 +}
112
113
114
115 1.31 app-emulation/virtualbox/ChangeLog
116
117 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.31&view=markup
118 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.31&content-type=text/plain
119 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?r1=1.30&r2=1.31
120
121 Index: ChangeLog
122 ===================================================================
123 RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v
124 retrieving revision 1.30
125 retrieving revision 1.31
126 diff -u -r1.30 -r1.31
127 --- ChangeLog 5 Dec 2007 22:52:44 -0000 1.30
128 +++ ChangeLog 5 Jan 2008 17:51:47 -0000 1.31
129 @@ -1,6 +1,25 @@
130 # ChangeLog for app-emulation/virtualbox
131 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
132 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.30 2007/12/05 22:52:44 jokey Exp $
133 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
134 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.31 2008/01/05 17:51:47 jokey Exp $
135 +
136 +*virtualbox-1.5.4 (05 Jan 2008)
137 +
138 + 05 Jan 2008; Markus Ullmann <jokey@g.o>
139 + +files/virtualbox-1.5.4-remove-alsa.patch, +virtualbox-1.5.4.ebuild,
140 + virtualbox-9999.ebuild:
141 + Version bump wrt bug #203893 thanks to x-drum
142 +
143 + 03 Jan 2008; Alessio Cassibba (X-Drum) <swapon@×××××.com>
144 + virtualbox-1.5.4.ebuild, virtualbox-9999.ebuild:
145 + remove redundant cd statements
146 +
147 + 02 Jan 2008; Alessio Cassibba (X-Drum) <swapon@×××××.com>
148 + -virtualbox-1.5.2.ebuild, -files/virtualbox-1.5.2-remove-alsa.patch,
149 + -files/virtualbox-1.5.2-remove-splitted-stuff.patch,
150 + +virtualbox-1.5.4.ebuild, +files/virtualbox-1.5.4-remove-alsa.patch,
151 + virtualbox-9999.ebuild, files/virtualbox.desktop:
152 + version bump; add pulseaudio use flag; fix remove alsa patch; drop unneeded
153 + files; disable vboxdrv kernel module compilation
154
155 05 Dec 2007; Markus Ullmann <jokey@g.o> files/virtualbox.desktop,
156 virtualbox-1.5.2-r1.ebuild:
157
158
159
160 1.1 app-emulation/virtualbox/virtualbox-1.5.4.ebuild
161
162 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.4.ebuild?rev=1.1&view=markup
163 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.4.ebuild?rev=1.1&content-type=text/plain
164
165 Index: virtualbox-1.5.4.ebuild
166 ===================================================================
167 # Copyright 1999-2008 Gentoo Foundation
168 # Distributed under the terms of the GNU General Public License v2
169 # $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.4.ebuild,v 1.1 2008/01/05 17:51:47 jokey Exp $
170
171 inherit eutils fdo-mime flag-o-matic qt3 toolchain-funcs
172
173 MY_P=VirtualBox-${PV}_OSE
174 DESCRIPTION="Softwarefamily of powerful x86 virtualization"
175 HOMEPAGE="http://www.virtualbox.org/"
176 SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}.tar.bz2"
177
178 LICENSE="GPL-2"
179 SLOT="0"
180 KEYWORDS="~amd64 ~x86"
181 IUSE="additions alsa pulseaudio sdk"
182
183 RDEPEND="!app-emulation/virtualbox-bin
184 ~app-emulation/virtualbox-modules-${PV}
185 dev-libs/libIDL
186 >=dev-libs/libxslt-1.1.19
187 dev-libs/xalan-c
188 dev-libs/xerces-c
189 media-libs/libsdl
190 x11-libs/libXcursor
191 $(qt_min_version 3.3.5)"
192 DEPEND="${RDEPEND}
193 sys-devel/bin86
194 sys-devel/dev86
195 sys-power/iasl
196 alsa? ( >=media-libs/alsa-lib-1.0.13 )
197 pulseaudio? ( media-sound/pulseaudio )"
198 # sys-apps/hal is required at runtime (bug #197541)
199 RDEPEND="${RDEPEND}
200 additions? ( ~app-emulation/virtualbox-additions-${PV} )
201 sys-apps/usermode-utilities
202 net-misc/bridge-utils
203 sys-apps/hal"
204
205 S=${WORKDIR}/${MY_P}
206
207 pkg_setup() {
208 # The VBoxSDL frontend needs media-libs/libsdl compiled
209 # with USE flag X enabled (bug #177335)
210 if ! built_with_use media-libs/libsdl X; then
211 eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
212 eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
213 die "media-libs/libsdl should be compiled with the \"X\" USE flag."
214 fi
215 }
216
217 src_unpack() {
218 unpack ${A}
219 cd "${S}"
220
221 # Don't build the Alsa audio driver and remove Alsa checks in configure
222 # when Alsa is not selected (bug #167739)
223 use alsa || epatch "${FILESDIR}/${P}-remove-alsa.patch"
224 }
225
226 src_compile() {
227
228 local myconf
229 # Don't build vboxdrv kernel module
230 myconf="--disable-kmods"
231
232 if ! use pulseaudio; then
233 myconf="${myconf} --disable-pulse"
234 fi
235
236 ./configure \
237 ${myconf} || die "configure failed"
238 source ./env.sh
239
240 # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
241 # and strip all flags
242 strip-flags
243
244 MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
245 TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
246 TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
247 TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
248 all || die "kmk failed"
249 }
250
251 src_install() {
252 cd "${S}"/out/linux.${ARCH}/release/bin
253
254 # create virtualbox configurations files
255 insinto /etc/vbox
256 newins "${FILESDIR}/${PN}-config" vbox.cfg
257 newins "${FILESDIR}/${PN}-interfaces" interfaces
258
259 insinto /opt/VirtualBox
260 if use sdk; then
261 doins -r sdk
262 fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl
263 fperms 0750 /opt/VirtualBox/sdk/bin/xpidl
264 fi
265
266 rm -rf sdk src tst* testcase xpidl SUPInstall SUPUninstall VBox.png \
267 VBoxBFE vditool VBoxSysInfo.sh
268
269 doins -r *
270 for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl} VirtualBox ; do
271 fowners root:vboxusers /opt/VirtualBox/${each}
272 fperms 0750 /opt/VirtualBox/${each}
273 done
274
275 exeinto /opt/VirtualBox
276 newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die
277 fowners root:vboxusers /opt/VirtualBox/VBox.sh
278 fperms 0750 /opt/VirtualBox/VBox.sh
279 newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die
280 fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh
281 fperms 0750 /opt/VirtualBox/VBoxAddIF.sh
282
283 dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox
284 dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage
285 dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL
286 dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl
287 dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF
288 dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF
289
290 # desktop entry
291 newicon "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
292 domenu "${FILESDIR}"/${PN}.desktop
293 }
294
295 pkg_postinst() {
296 fdo-mime_desktop_database_update
297 elog ""
298 elog "To launch VirtualBox just type: \"VirtualBox\""
299 elog "You must be in the vboxusers group to use VirtualBox,"
300 elog ""
301 elog "The last user manual is available for download at:"
302 elog "http://www.virtualbox.org/download/UserManual.pdf"
303 elog ""
304 }
305
306 pkg_postrm() {
307 fdo-mime_desktop_database_update
308 }
309
310
311
312 --
313 gentoo-commits@g.o mailing list