summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-21 10:22:42 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-21 10:22:42 +0000
commitd412d12b73ab00a944ac1a83ecb0ba1faf4dc9af (patch)
tree28abffa8effbeb86c5c293a519974c1bce6873b5 /app-emulation
parentstable sparc, bug 262899 (diff)
downloadhistorical-d412d12b73ab00a944ac1a83ecb0ba1faf4dc9af.tar.gz
historical-d412d12b73ab00a944ac1a83ecb0ba1faf4dc9af.tar.bz2
historical-d412d12b73ab00a944ac1a83ecb0ba1faf4dc9af.zip
Undo last fix as upstream already did so. Fixes #262271
Package-Manager: portage-2.2_rc26/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virtualbox-ose/ChangeLog8
-rw-r--r--app-emulation/virtualbox-ose/Manifest3
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-2.1.4-r2.ebuild206
3 files changed, 215 insertions, 2 deletions
diff --git a/app-emulation/virtualbox-ose/ChangeLog b/app-emulation/virtualbox-ose/ChangeLog
index b27cea613d9d..38e5378e24e8 100644
--- a/app-emulation/virtualbox-ose/ChangeLog
+++ b/app-emulation/virtualbox-ose/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/virtualbox-ose
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.12 2009/03/11 09:24:46 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.13 2009/03/21 10:22:41 patrick Exp $
+
+*virtualbox-ose-2.1.4-r2 (21 Mar 2009)
+
+ 21 Mar 2009; Patrick Lauer <patrick@gentoo.org>
+ +virtualbox-ose-2.1.4-r2.ebuild:
+ Undo last fix as upstream already did so. Fixes #262271
11 Mar 2009; Markus Ullmann <jokey@gentoo.org>
virtualbox-ose-2.1.4-r1.ebuild:
diff --git a/app-emulation/virtualbox-ose/Manifest b/app-emulation/virtualbox-ose/Manifest
index fcf5c3f6905e..03406a3da6bb 100644
--- a/app-emulation/virtualbox-ose/Manifest
+++ b/app-emulation/virtualbox-ose/Manifest
@@ -19,6 +19,7 @@ EBUILD virtualbox-ose-2.0.4-r1.ebuild 6978 RMD160 fdf029f32e09071b934e89826a01d5
EBUILD virtualbox-ose-2.0.4.ebuild 6860 RMD160 41830bdb8e52060fcab3226c1cee322a295e4ffc SHA1 dd78a4bf1b64b101a05d7c23ed3675e6def34dfb SHA256 24467161314a40ebc313b8e5f0ac348ae83e9083dbd11b7c6291dcdd663dee6c
EBUILD virtualbox-ose-2.0.6.ebuild 6868 RMD160 248fcb1464cba9c3328ed09fd4e83a3fe7b99141 SHA1 3b752beb4b8e6d7ea5f3ec3a3a973f365b9ae40d SHA256 87b1008512208f30f430e1a27367d3ca2fd19a1a88f7a791e78bf3402f8d8277
EBUILD virtualbox-ose-2.1.4-r1.ebuild 6207 RMD160 f47fd29e80ab506add72f91c699e1465a925906c SHA1 d337a7801379efcaaf4adabbfa89ad3c2159d8ca SHA256 d584ce0559fb4aa3df18ace64d63a88918b723e571614b18a50497d167f200c3
+EBUILD virtualbox-ose-2.1.4-r2.ebuild 6210 RMD160 470f0e14905f4168826840414d811bb975b91ad6 SHA1 73a6b7891743b426ea6e8329395608e1f5d6d53d SHA256 c7b65ff1b62a102fe9cf6f6f73943391a662dab7502665a8bfd03d5692a4658b
EBUILD virtualbox-ose-9999.ebuild 5717 RMD160 a720d64a0f941083f300263eb6277651babf1e7a SHA1 25e58d977b78a1ce8370dafb5fcd012bdf41f279 SHA256 892b91d5027b8a8cf8b6d91a6645ae92059e5b1784c9e83c566ef85294ac25bf
-MISC ChangeLog 16494 RMD160 7f8a6bf1e6f74df1ee74a950f6be263ddd4d0ade SHA1 679094ec483d48cf617d190d96dcd70e9becc17f SHA256 0e76d3af19815789dab20ed907306d8edcea381c93c387e5d11c14d29f87b669
+MISC ChangeLog 16680 RMD160 2078eb3efa881331b78a27dd46175c8117c1784d SHA1 54d4a3edf20c8546e16424d71d8b840c63387bf3 SHA256 cac72a2d8157cc9443a6d17f7abbc60edf8dda146db19958ce6b36bc2db2bafc
MISC metadata.xml 608 RMD160 05b2e56d330d28aed13d4a7035369e04dc1e989e SHA1 ea332f57fa454cc6f8489f6debcd991003886fc0 SHA256 ab349ab6727625054f24bbf733a3f6fabb34ba1e1f0fd845c51c70595b05b6aa
diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-2.1.4-r2.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-2.1.4-r2.ebuild
new file mode 100644
index 000000000000..1a69d6997e67
--- /dev/null
+++ b/app-emulation/virtualbox-ose/virtualbox-ose-2.1.4-r2.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI=2
+
+inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4 toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ # XXX: should finish merging the -9999 ebuild into this one ...
+ ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk"
+ inherit linux-mod subversion
+else
+ MY_P=VirtualBox-${PV}-OSE
+ SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P/-O/-3-O}.tar.bz2"
+ S=${WORKDIR}/${MY_P/-OSE/_OSE}
+fi
+
+DESCRIPTION="Software family of powerful x86 virtualization"
+HOMEPAGE="http://www.virtualbox.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+additions alsa +hal headless pulseaudio python +qt4 sdk vboxwebsrv"
+
+RDEPEND="!app-emulation/virtualbox-bin
+ ~app-emulation/virtualbox-modules-${PV}
+ dev-libs/libIDL
+ >=dev-libs/libxslt-1.1.19
+ !headless? (
+ qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) )
+ x11-libs/libXcursor
+ media-libs/libsdl[X]
+ x11-libs/libXt
+ )"
+DEPEND="${RDEPEND}
+ >=dev-util/kbuild-0.1.5
+ >=dev-lang/yasm-0.6.2
+ sys-devel/bin86
+ sys-devel/dev86
+ sys-power/iasl
+ media-libs/libpng
+ sys-libs/libcap
+ alsa? ( >=media-libs/alsa-lib-1.0.13 )
+ hal? ( sys-apps/hal )
+ pulseaudio? ( media-sound/pulseaudio )
+ python? ( >=dev-lang/python-2.3 )
+ vboxwebsrv? ( <=net-libs/gsoap-2.7.9f )"
+RDEPEND="${RDEPEND}
+ additions? ( ~app-emulation/virtualbox-ose-additions-${PV} )
+ sys-apps/usermode-utilities
+ net-misc/bridge-utils"
+
+pkg_setup() {
+ if ! use headless && ! use qt4 ; then
+ einfo "No USE=\"qt4\" selected, this build will not include"
+ einfo "any Qt frontend."
+ elif use headless && use qt4 ; then
+ einfo "You selected USE=\"headless qt4\", defaulting to"
+ einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
+ fi
+}
+
+src_prepare() {
+ # Remove shipped binaries (kBuild,yasm), see bug #232775
+ rm -rf kBuild/bin tools
+
+ # Disable things unused or split into separate ebuilds
+ sed -e "s/MY_LIBDIR/$(get_libdir)/" \
+ "${FILESDIR}"/${PN}-2-localconfig > LocalConfig.kmk || die
+
+ # Fix an upstream typo in Config.kmk, bug #251335
+ #sed -i -e "2511d" Config.kmk || die "Config.kmk sed failed"
+}
+
+src_configure() {
+ local myconf
+ use alsa || myconf="${myconf} --disable-alsa"
+ use pulseaudio || myconf="${myconf} --disable-pulse"
+ use python || myconf="${myconf} --disable-python"
+ use hal || myconf="${myconf} --disable-dbus"
+ use vboxwebsrv && myconf="${myconf} --enable-webservice"
+ if ! use headless ; then
+ use qt4 || myconf="${myconf} --disable-qt4"
+ else
+ myconf="${myconf} --build-headless"
+ fi
+ # not an autoconf script
+ ./configure \
+ --with-gcc="$(tc-getCC)" \
+ --with-g++="$(tc-getCXX)" \
+ --disable-kmods \
+ --disable-qt3 \
+ ${myconf} \
+ || die "configure failed"
+}
+
+src_compile() {
+ source ./env.sh
+
+ # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
+ # and strip all flags
+ strip-flags
+
+ MAKE="kmk" emake \
+ TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
+ TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
+ TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
+ TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
+ TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
+ all || die "kmk failed"
+}
+
+src_install() {
+ cd "${S}"/out/linux.*/release/bin || die
+
+ # Create configuration files
+ insinto /etc/vbox
+ newins "${FILESDIR}/${PN}-2-config" vbox.cfg
+
+ # Set the right libdir
+ sed -i \
+ -e "s/MY_LIBDIR/$(get_libdir)/" \
+ "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
+
+ # Symlink binaries to the shipped wrapper
+ exeinto /usr/$(get_libdir)/${PN}
+ newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
+ fperms 0750 /usr/$(get_libdir)/${PN}/VBox
+
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
+ dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
+
+ # Install binaries and libraries
+ insinto /usr/$(get_libdir)/${PN}
+ doins -r components || die
+
+ if use sdk ; then
+ doins -r sdk || die
+ fi
+
+ if use vboxwebsrv ; then
+ doins vboxwebsrv || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
+ fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
+ newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
+ newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
+ fi
+
+ for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do
+ doins $each || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
+ fperms 0750 /usr/$(get_libdir)/${PN}/${each}
+ done
+
+ if ! use headless ; then
+ for each in VBox{SDL,Headless} ; do
+ doins $each || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
+ fperms 4750 /usr/$(get_libdir)/${PN}/${each}
+ pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
+ done
+
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
+
+ if use qt4 ; then
+ doins VirtualBox || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
+ fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
+ pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox
+
+ dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
+ fi
+
+ newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png
+ domenu "${FILESDIR}"/${PN}.desktop
+ else
+ doins VBoxHeadless || die
+ fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
+ fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
+ pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r nls
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ if ! use headless ; then
+ elog "To launch VirtualBox just type: \"VirtualBox\""
+ fi
+ elog "You must be in the vboxusers group to use VirtualBox."
+ elog ""
+ elog "The lastest user manual is available for download at:"
+ elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}