diff options
author | mattw <mattw@localhost> | 2010-05-22 18:26:48 +0000 |
---|---|---|
committer | mattw <mattw@localhost> | 2010-05-22 18:26:48 +0000 |
commit | 2a32da0fa401755a5472aa19df3f981bbf659266 (patch) | |
tree | 0f9750e9297cee7a99ccf56f8ab88c5255e62325 /app-emulation | |
parent | app-emulation/vmware-modules: new version of VMware kernel modules (diff) | |
download | vmware-2a32da0fa401755a5472aa19df3f981bbf659266.tar.gz vmware-2a32da0fa401755a5472aa19df3f981bbf659266.tar.bz2 vmware-2a32da0fa401755a5472aa19df3f981bbf659266.zip |
app-emulation/vmware-player: new version of VMware Player
svn path=/trunk/; revision=408
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/vmware-player/ChangeLog | 5 | ||||
-rw-r--r-- | app-emulation/vmware-player/Manifest | 10 | ||||
-rw-r--r-- | app-emulation/vmware-player/metadata.xml | 5 | ||||
-rw-r--r-- | app-emulation/vmware-player/vmware-player-3.0.1.227600-r6.ebuild | 2 | ||||
-rw-r--r-- | app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild | 180 | ||||
-rw-r--r-- | app-emulation/vmware-player/vmware-player-3.1.0.261024.ebuild | 225 |
6 files changed, 241 insertions, 186 deletions
diff --git a/app-emulation/vmware-player/ChangeLog b/app-emulation/vmware-player/ChangeLog index 2ee1b21..8d8c771 100644 --- a/app-emulation/vmware-player/ChangeLog +++ b/app-emulation/vmware-player/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 22 May 2010; Matt Whitlock (whitslack) <matt@whitlock.name> + -vmware-player-3.0.1.227600.ebuild, vmware-player-3.0.1.227600-r6.ebuild, + +vmware-player-3.1.0.261024.ebuild: + new version of VMware Player + 11 May 2010; Vadim Kuznetsov <vadimk@gentoo.org> vmware-player-3.0.1.227600-r6.ebuild: depend on libpng-1.2 diff --git a/app-emulation/vmware-player/Manifest b/app-emulation/vmware-player/Manifest index 5b198a2..9e02a8c 100644 --- a/app-emulation/vmware-player/Manifest +++ b/app-emulation/vmware-player/Manifest @@ -4,7 +4,9 @@ AUX list-component-files.xsl 545 RMD160 46747c300daf5c6b2c143f02840a94a409f381c4 AUX vmware-3.0.rc 776 RMD160 21380174fda9e6bdc2a720ecd4c1742bf76b9439 SHA1 c6ec74a605b31cbb4f1f73a0639b8068545e8f33 SHA256 9a99d7c5a860893061f36ad2655f89340761cfbc3f58d7d633b3726b0cb5a7d0 DIST VMware-Player-3.0.1-227600.i386.bundle 84974107 RMD160 4337339976d25d8dbd1f4904ba2ed2b53d1e9c49 SHA1 cff76010f0429576288ea1e5a594cd47a2c64f4a SHA256 9314e49ebb252fd937032481b13d0bea4a3af6409485e79576f797834b978285 DIST VMware-Player-3.0.1-227600.x86_64.bundle 79959324 RMD160 c6652acadc760bab8ecfed2682706e31f51423ef SHA1 84f25370d24c03a18968a4f4c8e06cef3d21c2df SHA256 8347b3fa0c1cd1c88c3c8049462f3d0d752d6f7daa747a7d2a67667a3f55f190 -EBUILD vmware-player-3.0.1.227600-r6.ebuild 9351 RMD160 8f318d5fc4f3e6138402a9b796a14726e43d5829 SHA1 a26d9b096e1253ab7e86a17259d2b94e9d997837 SHA256 c99b01654e11dcd84019eb5847b16e3d1ec693eed12564b53cdc4dcbec87948b -EBUILD vmware-player-3.0.1.227600.ebuild 5852 RMD160 b6a1ba2e67a5ed38c3be96c7e31db9dfaf54d3ad SHA1 d910759939a4a977db9411470e32b78b6342ca03 SHA256 cf1722ec1f3be23f3a43f7360bf8f200f28ba24d856faadf32a7c0ef8f80b78a -MISC ChangeLog 2820 RMD160 d432471b582cd9d97f35f82c1ae7181b092e5753 SHA1 55a8297630c06d5873a2ddda9c37af4eac19abc1 SHA256 ea66560079c1a3d93ddb34d6b21066276fef6eca7a50ada320213d4c9b75efff -MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215 +DIST VMware-Player-3.1.0-261024.i386.bundle 106519865 RMD160 008cb206b9c17167b655bc89957998da25ccb03f SHA1 147a6a2f19559804ed90e0ff5c545b8b31c400a1 SHA256 39156e974d75b0547e657c4aeea4a9fb401a0c3756205f7c8aec4f44754bb6e7 +DIST VMware-Player-3.1.0-261024.x86_64.bundle 102467637 RMD160 d0911964f94a5d07511ae3fca7928563056830c9 SHA1 6d6a54b3a63f1682ad543c0fcf55b574cdf9eebe SHA256 1dd92f0ca33f3e77be257b8e46ef42ca63562dba98bfa4ae4b211126eca2e59d +EBUILD vmware-player-3.0.1.227600-r6.ebuild 9337 RMD160 21e041803cff26bc788d34690c800bdb06ca49fb SHA1 2f378a122893144c153e5cc8516f0919866d308a SHA256 92bc4595a2518786380fd5b2191a2ec84e8d7b52e1d2d8cbabc73d407663c2fc +EBUILD vmware-player-3.1.0.261024.ebuild 5798 RMD160 8024cc2941ae4980da1689d8984151281c6779f0 SHA1 eb5bb922b6d357d03e50be2adb1bf40a2f90f0cd SHA256 7e687ef63304333645a386baa0f14bb10f7fac33df405cb46738e87a79cac52c +MISC ChangeLog 3028 RMD160 96bdb1afb8bb0e4334136e35339d24125251dcef SHA1 8b4a08ac4b773bf774962a2b6c61181efacdc994 SHA256 dae421d282cd360b7e17aea3fafdf306c6bddeddfc9389a04e6c8646b6cdd57e +MISC metadata.xml 238 RMD160 beef158e0603e5808d104743feba4be3e7a7e8c4 SHA1 276217c6f03ae24c0196519197240031a6961254 SHA256 8374f3a2a8f05bf0690ab35f79a20980026aefa9fabae93fe81442f54291018b diff --git a/app-emulation/vmware-player/metadata.xml b/app-emulation/vmware-player/metadata.xml index 3260ec5..fac5e87 100644 --- a/app-emulation/vmware-player/metadata.xml +++ b/app-emulation/vmware-player/metadata.xml @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>vmware</herd> + <herd>vmware</herd> + <use> + <flag name="vmware-tools">Install VMware Tools images</flag> + </use> </pkgmetadata> diff --git a/app-emulation/vmware-player/vmware-player-3.0.1.227600-r6.ebuild b/app-emulation/vmware-player/vmware-player-3.0.1.227600-r6.ebuild index 14fbb4b..5f91762 100644 --- a/app-emulation/vmware-player/vmware-player-3.0.1.227600-r6.ebuild +++ b/app-emulation/vmware-player/vmware-player-3.0.1.227600-r6.ebuild @@ -27,7 +27,7 @@ RESTRICT="binchecks fetch strip" # precompiled binary package thats linked to glibc. RDEPEND=" ~app-emulation/vmware-modules-1.0.0.26 - vmware-tools? ( ~app-emulation/vmware-tools-8.1.4.227600 ) + vmware-tools? ( app-emulation/vmware-tools ) app-arch/libarchive dev-cpp/cairomm dev-cpp/glibmm diff --git a/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild b/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild deleted file mode 100644 index 43bd29f..0000000 --- a/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild +++ /dev/null @@ -1,180 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.3.185404.ebuild,v 1.4 2009/09/25 10:37:05 maekke Exp $ - -EAPI="2" - -inherit eutils versionator fdo-mime gnome2-utils - -MY_PN="VMware-Player-$(replace_version_separator 3 - $PV)" - -DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators" -HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html" -SRC_URI=" - x86? ( mirror://vmware/software/vmplayer/${MY_PN}.i386.bundle ) - amd64? ( mirror://vmware/software/vmplayer/${MY_PN}.x86_64.bundle ) - " - -LICENSE="vmware" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="" -RESTRICT="strip fetch binchecks" - -# vmware-workstation should not use virtual/libc as this is a -# precompiled binary package thats linked to glibc. -DEPEND="dev-libs/libxslt" -RDEPEND=" - ~app-emulation/vmware-modules-1.0.0.26 - dev-cpp/cairomm - dev-cpp/libgnomecanvasmm - dev-cpp/libsexymm - sys-libs/glibc - sys-apps/pciutils - >=x11-libs/libview-0.6.2 - x11-libs/libXcursor - x11-libs/libXft - x11-libs/libXi - x11-libs/libXinerama - x11-libs/libXrandr - !app-emulation/vmware-server - !app-emulation/vmware-workstation - " - -S=${WORKDIR} -VM_INSTALL_DIR="/opt/vmware/player" - -pkg_nofetch() { - if use x86; then - MY_P="${MY_PN}.i386" - elif use amd64; then - MY_P="${MY_PN}.x86_64" - fi - - einfo "Please download the ${MY_P}.bundle from ${HOMEPAGE}" -} - -src_unpack() { - bundle_extract_component "${DISTDIR}/${A}" vmware-player-app -} - -src_prepare() { - rm -rf "${S}"/vmware-player-app/lib/modules/binary -} - -src_install() { - local major_minor=$(get_version_component_range 1-2 "${PV}") - local build=$(get_version_component_range 4 "${PV}") - - cd "${S}"/vmware-player-app - - # install the binaries - into "${VM_INSTALL_DIR}" - dobin bin/* - dosbin sbin/* - - # install the libraries - insinto "${VM_INSTALL_DIR}"/lib/vmware - doins -r lib/* - - # install the ancillaries - insinto /usr - doins -r share - - # create symlinks for the various tools - local tool ; for tool in vmplayer{,-daemon} \ - vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do - dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" - done - dosym ../lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer - - # fix up permissions - chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/{libgksu2.so.0/gksu-run-helper,wrapper-gtk24.sh}} - chmod 04711 "${D}${VM_INSTALL_DIR}"/sbin/vmware-authd - chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx* - - # create the environment - dodir /etc/env.d - { echo "PATH='${VM_INSTALL_DIR}/bin'" - echo "ROOTPATH='${VM_INSTALL_DIR}/bin'" - } > "${D}"/etc/env.d/90"${PN}" - - # create the configuration - insinto /etc/vmware - { echo "BINDIR='${VM_INSTALL_DIR}/bin'" - echo "LIBDIR='${VM_INSTALL_DIR}/lib'" - } > "${D}"/etc/vmware/bootstrap - newins "${FILESDIR}/config-${major_minor}" config - - # install the init.d script - newinitd "${FILESDIR}/vmware-${major_minor}.rc" vmware - - # fill in variable placeholders - sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ - -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} - sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ - -i "${D}/usr/share/applications/${PN}.desktop" - sed -e "s:@@BUILD_NUMBER@@:${build}:g" \ - -e "s:@@VM_INSTALL_DIR@@:${VM_INSTALL_DIR}:g" \ - -i "${D}/etc/vmware/config" - - # install documentation - dodoc doc/* -} - -pkg_config() { - "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - fdo-mime_desktop_database_update - gnome2_icon_cache_update - - ewarn "Before you can use vmware-player, you must configure a default network setup." - ewarn "You can do this by running 'emerge --config ${PN}'." -} - -pkg_prerm() { - einfo "Stopping ${PN} for safe unmerge" - /etc/init.d/vmware stop -} - -pkg_postrm() { - fdo-mime_desktop_database_update - gnome2_icon_cache_update -} - -bundle_extract_component() { - local -i bundle_size=$(stat -L -c'%s' "${1}") - local -i bundle_manifestOffset=$(od -An -j$((bundle_size-36)) -N4 -tu4 "${1}") - local -i bundle_manifestSize=$(od -An -j$((bundle_size-40)) -N4 -tu4 "${1}") - local -i bundle_dataOffset=$(od -An -j$((bundle_size-44)) -N4 -tu4 "${1}") - local -i bundle_dataSize=$(od -An -j$((bundle_size-52)) -N8 -tu8 "${1}") - tail -c+$((bundle_manifestOffset+1)) "${1}" 2> /dev/null | head -c$((bundle_manifestSize)) | - xsltproc "${FILESDIR}"/list-bundle-components.xsl - | - while read -r component_offset component_size component_name ; do - if [[ ${component_name} == ${2} ]] ; then - ebegin "Extracting '${component_name}' component from '$(basename "${1}")'" - declare -i component_manifestOffset=$(od -An -j$((bundle_dataOffset+component_offset+9)) -N4 -tu4 "${1}") - declare -i component_manifestSize=$(od -An -j$((bundle_dataOffset+component_offset+13)) -N4 -tu4 "${1}") - declare -i component_dataOffset=$(od -An -j$((bundle_dataOffset+component_offset+17)) -N4 -tu4 "${1}") - declare -i component_dataSize=$(od -An -j$((bundle_dataOffset+component_offset+21)) -N8 -tu8 "${1}") - tail -c+$((bundle_dataOffset+component_offset+component_manifestOffset+1)) "${1}" 2> /dev/null | - head -c$((component_manifestSize)) | xsltproc "${FILESDIR}"/list-component-files.xsl - | - while read -r file_offset file_compressedSize file_uncompressedSize file_path ; do - if [[ ${file_path} ]] ; then - echo -n '.' - file_path="${component_name}/${file_path}" - mkdir -p "$(dirname "${file_path}")" - tail -c+$((bundle_dataOffset+component_offset+component_dataOffset+file_offset+1)) "${1}" 2> /dev/null | - head -c$((file_compressedSize)) | gzip -cd > "${file_path}" - fi - done - echo ; eend - fi - done -} diff --git a/app-emulation/vmware-player/vmware-player-3.1.0.261024.ebuild b/app-emulation/vmware-player/vmware-player-3.1.0.261024.ebuild new file mode 100644 index 0000000..8b98a02 --- /dev/null +++ b/app-emulation/vmware-player/vmware-player-3.1.0.261024.ebuild @@ -0,0 +1,225 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +EAPI="2" + +inherit eutils versionator fdo-mime gnome2-utils vmware-bundle + +MY_PN="VMware-Player" +MY_PV="$(replace_version_separator 3 - $PV)" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators" +HOMEPAGE="http://www.vmware.com/products/player/" +SRC_URI=" + x86? ( ${MY_P}.i386.bundle ) + amd64? ( ${MY_P}.x86_64.bundle ) + " + +LICENSE="vmware" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="doc +vmware-tools" +RESTRICT="binchecks fetch strip" + +# vmware-workstation should not use virtual/libc as this is a +# precompiled binary package thats linked to glibc. +RDEPEND="dev-cpp/cairomm + dev-cpp/glibmm + dev-cpp/gtkmm + dev-cpp/libsexymm + dev-cpp/pangomm + dev-libs/atk + dev-libs/glib + dev-libs/libsigc++ + dev-libs/libxml2 + dev-libs/openssl + gnome-base/libgnomecanvas + gnome-base/libgtop + gnome-base/librsvg + gnome-base/orbit + media-libs/fontconfig + media-libs/freetype + media-libs/libart_lgpl + media-libs/libpng + net-misc/curl[ares] + sys-devel/gcc + sys-fs/fuse + sys-libs/glibc + sys-libs/zlib + x11-libs/cairo + x11-libs/gtk+ + x11-libs/libgksu + x11-libs/libICE + x11-libs/libsexy + x11-libs/libSM + x11-libs/libview + x11-libs/libX11 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXft + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango + x11-libs/startup-notification + !app-emulation/vmware-server + !app-emulation/vmware-workstation" +PDEPEND=">=app-emulation/vmware-modules-1.0.0.27 + vmware-tools? ( app-emulation/vmware-tools )" + +S=${WORKDIR}/vmware-player-app +VM_INSTALL_DIR="/opt/vmware" + +pkg_nofetch() { + local bundle + + if use x86; then + bundle="${MY_P}.i386.bundle" + elif use amd64; then + bundle="${MY_P}.x86_64.bundle" + fi + + einfo "Please download ${bundle}" + einfo "from ${HOMEPAGE}" + einfo "and place it in ${DISTDIR}" +} + +src_unpack() { + vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-player-app +} + +src_prepare() { + rm -f bin/vmware-modconfig + rm -rf lib/modules/binary + + # remove superfluous libraries + ebegin 'Removing superfluous libraries' + cd lib/lib || die + ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | xargs -d'\n' -r rm -rf + eend +} + +src_install() { + local major_minor_revision=$(get_version_component_range 1-3 "${PV}") + local build=$(get_version_component_range 4 "${PV}") + + # install the binaries + into "${VM_INSTALL_DIR}" + dobin bin/* || die "failed to install bin" + dosbin sbin/* || die "failed to install sbin" + + # install the libraries + insinto "${VM_INSTALL_DIR}"/lib/vmware + doins -r lib/* || die "failed to install lib" + + # these two libraries do not like to load from /usr/lib* + local each ; for each in libcrypto.so.0.9.8 libssl.so.0.9.8 ; do + if [[ ! -f "${VM_INSTALL_DIR}/lib/vmware/lib/${each}" ]] ; then + dosym "/usr/$(get_libdir)/${each}" \ + "${VM_INSTALL_DIR}/lib/vmware/lib/${each}/${each}" + fi + done + + # install the ancillaries + insinto /usr + doins -r share || die "failed to install share" + + # install documentation + if use doc; then + dodoc doc/* || die "failed to install docs" + fi + + # create symlinks for the various tools + local tool ; for tool in vmplayer{,-daemon} \ + vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do + dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" || die + done + dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer || die + + # fix up permissions + chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh} + chmod 04711 "${D}${VM_INSTALL_DIR}"/sbin/vmware-authd + chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx* + + # create the environment + local envd="${T}/90vmware" + cat > "${envd}" <<-EOF + PATH='${VM_INSTALL_DIR}/bin' + ROOTPATH='${VM_INSTALL_DIR}/bin' + EOF + doenvd "${envd}" || die + + # create the configuration + dodir /etc/vmware || die + + cat > "${D}"/etc/vmware/bootstrap <<-EOF + BINDIR='${VM_INSTALL_DIR}/bin' + LIBDIR='${VM_INSTALL_DIR}/lib' + EOF + + cat > "${D}"/etc/vmware/config <<-EOF + bindir = "${VM_INSTALL_DIR}/bin" + libdir = "${VM_INSTALL_DIR}/lib/vmware" + initscriptdir = "/etc/init.d" + authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" + gksu.rootMethod = "su" + VMCI_CONFED = "yes" + VMBLOCK_CONFED = "yes" + VSOCK_CONFED = "yes" + NETWORKING = "yes" + player.product.version = "${major_minor_revision}" + product.buildNumber = "${build}" + EOF + + # install the init.d script + local initscript="${T}/vmware.rc" + + sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ + "${FILESDIR}/vmware-3.0.rc" > "${initscript}" || die + newinitd "${initscript}" vmware || die + + # fill in variable placeholders + sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ + -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ + -i "${D}/usr/share/applications/${PN}.desktop" || die +} + +pkg_config() { + "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update + + ewarn "/etc/env.d was updated. Please run:" + ewarn "env-update && source /etc/profile" + ewarn "" + ewarn "Before you can use vmware-player, you must configure a default network setup." + ewarn "You can do this by running 'emerge --config ${PN}'." +} + +pkg_prerm() { + einfo "Stopping ${PN} for safe unmerge" + /etc/init.d/vmware stop +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |