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: ChangeLog virtualbox-1.5.2-r1.ebuild virtualbox-1.4.0.ebuild virtualbox-1.5.2.ebuild
Date: Sat, 03 Nov 2007 15:09:01
Message-Id: E1IoKcG-0006Yb-E9@stork.gentoo.org
1 jokey 07/11/03 15:08:52
2
3 Modified: ChangeLog
4 Added: virtualbox-1.5.2-r1.ebuild
5 Removed: virtualbox-1.4.0.ebuild virtualbox-1.5.2.ebuild
6 Log:
7 Fix desktop entry for bug #196832, typo in wrapper and HAL warning. Thanks to Alessio for providing needed modifications
8 (Portage version: 2.1.3.16, RepoMan options: --force)
9
10 Revision Changes Path
11 1.29 app-emulation/virtualbox/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 29 Oct 2007 06:27:32 -0000 1.28
24 +++ ChangeLog 3 Nov 2007 15:08:51 -0000 1.29
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-emulation/virtualbox
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.28 2007/10/29 06:27:32 cla Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.29 2007/11/03 15:08:51 jokey Exp $
30 +
31 +*virtualbox-1.5.2-r1 (03 Nov 2007)
32 +
33 + 03 Nov 2007; Markus Ullmann <jokey@g.o> files/virtualbox-wrapper,
34 + -virtualbox-1.4.0.ebuild, -virtualbox-1.5.2.ebuild,
35 + +virtualbox-1.5.2-r1.ebuild:
36 + Fix desktop entry for bug #196832, typo in wrapper and HAL warning. Thanks
37 + to Alessio for providing needed modifications
38
39 29 Oct 2007; Dawid Węgliński <cla@g.o> virtualbox-1.5.2.ebuild:
40 Stable on x86
41
42
43
44 1.1 app-emulation/virtualbox/virtualbox-1.5.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: virtualbox-1.5.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-1.5.2-r1.ebuild,v 1.1 2007/11/03 15:08:51 jokey Exp $
54
55 inherit eutils flag-o-matic qt3 toolchain-funcs
56
57 MY_P=VirtualBox-${PV}_OSE
58 DESCRIPTION="Softwarefamily of powerful x86 virtualization"
59 HOMEPAGE="http://www.virtualbox.org/"
60 SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 x86"
65 IUSE="additions alsa sdk"
66
67 RDEPEND="!app-emulation/virtualbox-bin
68 ~app-emulation/virtualbox-modules-${PV}
69 dev-libs/libIDL
70 >=dev-libs/libxslt-1.1.19
71 dev-libs/xalan-c
72 dev-libs/xerces-c
73 media-libs/libsdl
74 x11-libs/libXcursor
75 $(qt_min_version 3.3.5)"
76 DEPEND="${RDEPEND}
77 sys-devel/bin86
78 sys-devel/dev86
79 sys-power/iasl
80 alsa? ( >=media-libs/alsa-lib-1.0.13 )"
81 # sys-apps/hal is required at runtime (bug #197541)
82 RDEPEND="${RDEPEND}
83 additions? ( ~app-emulation/virtualbox-additions-${PV} )
84 sys-apps/usermode-utilities
85 net-misc/bridge-utils
86 sys-apps/hal"
87
88 S=${WORKDIR}/${MY_P}
89
90 pkg_setup() {
91 # The VBoxSDL frontend needs media-libs/libsdl compiled
92 # with USE flag X enabled (bug #177335)
93 if ! built_with_use media-libs/libsdl X; then
94 eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
95 eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
96 die "media-libs/libsdl should be compiled with the \"X\" USE flag."
97 fi
98 }
99
100 src_unpack() {
101 unpack ${A}
102 cd "${S}"
103
104 # Don't build vboxdrv and additions: splitted into separate ebuilds
105 epatch "${FILESDIR}/${P}-remove-splitted-stuff.patch"
106 # Don't build the Alsa audio driver and remove Alsa checks in configure
107 # when Alsa is not selected (bug #167739)
108 use alsa || epatch "${FILESDIR}/${P}-remove-alsa.patch"
109 }
110
111 src_compile() {
112 cd "${S}"
113
114 ./configure || die "configure failed"
115 source ./env.sh
116
117 # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
118 # and strip all flags
119 strip-flags
120
121 MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
122 TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
123 TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
124 TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
125 all || die "kmk failed"
126 }
127
128 src_install() {
129 cd "${S}"/out/linux.${ARCH}/release/bin
130
131 # create virtualbox configurations files
132 insinto /etc/vbox
133 newins "${FILESDIR}/${PN}-config" vbox.cfg
134 newins "${FILESDIR}/${PN}-interfaces" interfaces
135
136 insinto /opt/VirtualBox
137 if use sdk; then
138 doins -r sdk
139 fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl
140 fperms 0750 /opt/VirtualBox/sdk/bin/xpidl
141 fi
142
143 rm -rf sdk tst* testcase xpidl SUPInstall SUPUninstall VBox.png VBoxBFE \
144 vditool
145
146 doins -r *
147 for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl} VirtualBox ; do
148 fowners root:vboxusers /opt/VirtualBox/${each}
149 fperms 0750 /opt/VirtualBox/${each}
150 done
151
152 exeinto /opt/VirtualBox
153 newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die
154 fowners root:vboxusers /opt/VirtualBox/VBox.sh
155 fperms 0750 /opt/VirtualBox/VBox.sh
156 newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die
157 fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh
158 fperms 0750 /opt/VirtualBox/VBoxAddIF.sh
159
160 dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox
161 dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage
162 dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL
163 dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl
164 dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF
165 dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF
166
167 # desktop entry
168 insinto /usr/share/pixmaps
169 newins "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png
170 insinto /usr/share/applications
171 doins "${FILESDIR}"/${PN}.desktop
172 dosed -e "s/Version=/Version=${PV}/" /usr/share/applications/${PN}.desktop
173 }
174
175 pkg_postinst() {
176 elog ""
177 elog "To launch VirtualBox just type: \"VirtualBox\""
178 elog "You must be in the vboxusers group to use VirtualBox,"
179 elog ""
180 elog "The last user manual is available for download at:"
181 elog "http://www.virtualbox.org/download/UserManual.pdf"
182 elog ""
183 }
184
185
186
187 --
188 gentoo-commits@g.o mailing list