diff options
author | Mike Auty <ikelos@gentoo.org> | 2008-06-14 23:33:08 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2008-06-14 23:33:08 +0000 |
commit | 666acf8e0ecb350ef68234e1745d442077c519ec (patch) | |
tree | 669873b765535b74d1b7f911cb793a046a0d4596 /app-emulation/vmware-workstation | |
parent | Do not assign SIMPLE_ELISP since elisp.eclass now detects this case automatic... (diff) | |
download | historical-666acf8e0ecb350ef68234e1745d442077c519ec.tar.gz historical-666acf8e0ecb350ef68234e1745d442077c519ec.tar.bz2 historical-666acf8e0ecb350ef68234e1745d442077c519ec.zip |
Version bump for bug 224637. Also clear out old version.
Package-Manager: portage-2.2_pre8/cvs/Linux 2.6.25-gentoo-r4 i686
Diffstat (limited to 'app-emulation/vmware-workstation')
16 files changed, 93 insertions, 270 deletions
diff --git a/app-emulation/vmware-workstation/ChangeLog b/app-emulation/vmware-workstation/ChangeLog index 02a04bc01805..a2a108212876 100644 --- a/app-emulation/vmware-workstation/ChangeLog +++ b/app-emulation/vmware-workstation/ChangeLog @@ -1,6 +1,42 @@ # ChangeLog for app-emulation/vmware-workstation # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.177 2008/05/12 15:45:42 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.178 2008/06/14 23:33:07 ikelos Exp $ + +*vmware-workstation-6.0.4.93057 (14 Jun 2008) +*vmware-workstation-5.5.7.91707 (14 Jun 2008) + + 14 Jun 2008; <mike@gentoo.org> + -files/5.5.5.56455/000_all_initd-location.patch, + -files/5.5.5.56455/001_all_fix-permissions.patch, + -files/5.5.5.56455/002_all_pagebreak-detection-fix.patch, + -files/5.5.5.56455/004_all_do-not-build-modules.patch, + -files/5.5.5.56455/007_all_use-modprobe-over-insmod.patch, + -files/5.5.5.56455/009_all_init.d-modules-warning.patch, + +files/5.5.7.91707/000_all_initd-location.patch, + +files/5.5.7.91707/001_all_fix-permissions.patch, + +files/5.5.7.91707/002_all_pagebreak-detection-fix.patch, + +files/5.5.7.91707/004_all_do-not-build-modules.patch, + +files/5.5.7.91707/007_all_use-modprobe-over-insmod.patch, + +files/5.5.7.91707/009_all_init.d-modules-warning.patch, + -files/6.0.2.59824/000_all_initd-location.patch, + -files/6.0.2.59824/001_all_fix-permissions.patch, + -files/6.0.2.59824/002_all_pagebreak-detection-fix.patch, + -files/6.0.2.59824/004_all_do-not-build-modules.patch, + -files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch, + -files/6.0.2.59824/009_all_init.d-modules-warning.patch, + -files/6.0.2.59824/011_all_legit-modules-only.patch, + +files/6.0.4.93057/000_all_initd-location.patch, + +files/6.0.4.93057/001_all_fix-permissions.patch, + +files/6.0.4.93057/002_all_pagebreak-detection-fix.patch, + +files/6.0.4.93057/004_all_do-not-build-modules.patch, + +files/6.0.4.93057/007_all_use-modprobe-over-insmod.patch, + +files/6.0.4.93057/009_all_init.d-modules-warning.patch, + +files/6.0.4.93057/011_all_legit-modules-only.patch, + -vmware-workstation-5.5.5.56455.ebuild, + +vmware-workstation-5.5.7.91707.ebuild, + -vmware-workstation-6.0.2.59824.ebuild, + +vmware-workstation-6.0.4.93057.ebuild: + Version bump for bug 224637. Also clear out old version. 12 May 2008; Markus Meier <maekke@gentoo.org> vmware-workstation-5.5.6.80404.ebuild: diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/000_all_initd-location.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/000_all_initd-location.patch deleted file mode 100644 index 1d864f7e0dd7..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/000_all_initd-location.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- vmware-distrib/bin/vmware-config.pl.ori 2005-11-09 01:45:08.000000000 +0000 -+++ vmware-distrib/bin/vmware-config.pl 2005-11-09 01:48:21.000000000 +0000 -@@ -8433,7 +8433,7 @@ - error('Please shut down any running VMs and run this script again.' . - "\n\n"); - } else { -- if (system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') -+ if (system(shell_string('/etc/init.d' . '/vmware') - . ' stop')) { - error('Unable to stop services for ' . vmware_product_name() . - "\n\n"); -@@ -8463,8 +8463,8 @@ - } - if (vmware_product() ne 'server') { - configure_gtk2(); -- createMimePackageFile(); -- configureDesktopFiles(); -+# createMimePackageFile(); -+# configureDesktopFiles(); - configure_mon(); - configure_pp(); - configure_net(); -@@ -8532,7 +8532,7 @@ - db_save(); - # Then start VMware's services - if (!$gOption{'skipstopstart'}) { -- system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') . ' start'); -+ system(shell_string('/etc/init.d' . '/vmware') . ' start'); - print "\n"; - } - diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/001_all_fix-permissions.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/001_all_fix-permissions.patch deleted file mode 100644 index e646b7b2da5c..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/001_all_fix-permissions.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -urN vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl ---- vmware-distrib.orig/bin/vmware-config.pl 2005-12-16 00:51:03.000000000 -0500 -+++ vmware-distrib/bin/vmware-config.pl 2005-12-21 14:34:03.000000000 -0500 -@@ -7327,7 +7327,10 @@ - error('Unable to write configuration file "' . $name . '".' . "\n\n"); - } - db_add_file($name, 0x1); -- safe_chmod(0644, $name); -+ safe_chmod(0664, $name); -+ my $gid = (getgrnam('vmware'))[2]; -+ my $uid = (stat($name))[4]; -+ safe_chown($uid,$gid,$name); - - # Append the promotional configuration if it exists - $promoconfig = $libdir . '/configurator/PROMOCONFIG'; diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/002_all_pagebreak-detection-fix.patch deleted file mode 100644 index fd3fc76ca679..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/002_all_pagebreak-detection-fix.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ur vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl ---- vmware-distrib.orig/bin/vmware-config.pl 2006-03-24 23:13:05.000000000 +0100 -+++ vmware-distrib/bin/vmware-config.pl 2006-03-24 23:26:40.000000000 +0100 -@@ -2015,9 +2015,9 @@ - . shell_string($pattern)); - chomp($header_page_offset); - # Ignore PAGE_OFFSET if we cannot parse it. -- if ($header_page_offset =~ /^$pattern \(?0x([0-9a-fA-F]{8,})/) { -+ if ($header_page_offset =~ /^$pattern \(?(\([^)]*\))?\)?0x([0-9a-fA-F]{8,}).*$/) { - # We found a valid page offset -- $header_page_offset = $1; -+ $header_page_offset = $2; - if (defined($gSystem{'page_offset'}) and - not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) { - if ($source eq 'user') { diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/004_all_do-not-build-modules.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/004_all_do-not-build-modules.patch deleted file mode 100644 index cec3b3ee4c1d..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/004_all_do-not-build-modules.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -uNr vmware-server-distrib.orig/bin/vmware-config.pl vmware-server-distrib/bin/vmware-config.pl ---- vmware-server-distrib.orig/bin/vmware-config.pl 2006-02-18 18:12:26.000000000 +0000 -+++ vmware-server-distrib/bin/vmware-config.pl 2006-02-18 18:14:17.000000000 +0000 -@@ -8571,10 +8571,10 @@ - configure_gtk2(); - # createMimePackageFile(); - # configureDesktopFiles(); -- configure_mon(); -- configure_pp(); -+# configure_mon(); -+# configure_pp(); - configure_net(); -- build_vmnet(); -+# build_vmnet(); - } - - # Create the directory for the UNIX domain sockets diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/007_all_use-modprobe-over-insmod.patch deleted file mode 100644 index c29a87e8f226..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/007_all_use-modprobe-over-insmod.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr vmware-server-distrib/installer/services.sh vmware-server-distrib.new/installer/services.sh ---- vmware-server-distrib/installer/services.sh 2006-02-05 00:21:25.000000000 +0000 -+++ vmware-server-distrib.new/installer/services.sh 2006-02-20 23:48:07.000000000 +0000 -@@ -538,7 +538,7 @@ - } - - vmware_load_module() { -- /sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.o" || exit 1 -+ /sbin/modprobe -s -f "$1" || exit 1 - exit 0 - } - diff --git a/app-emulation/vmware-workstation/files/5.5.5.56455/009_all_init.d-modules-warning.patch b/app-emulation/vmware-workstation/files/5.5.5.56455/009_all_init.d-modules-warning.patch deleted file mode 100644 index 4eab043af8dc..000000000000 --- a/app-emulation/vmware-workstation/files/5.5.5.56455/009_all_init.d-modules-warning.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -uNr vmware-server-distrib.orig/installer/services.sh vmware-server-distrib/installer/services.sh ---- vmware-server-distrib.orig/installer/services.sh 2006-07-01 03:14:16.000000000 +0000 -+++ vmware-server-distrib/installer/services.sh 2006-07-14 11:59:28.000000000 +0000 -@@ -606,8 +606,13 @@ - start) - if [ -e "$vmware_etc_dir"/not_configured ]; then - echo "`vmware_product_name`"' is installed, but it has not been (correctly) configured' -- echo 'for the running kernel. To (re-)configure it, invoke the' -- echo 'following command: '"$vmdb_answer_BINDIR"'/vmware-config.pl.' -+ echo 'for the running kernel.' -+ echo -+ echo 'Please ensure that the modules have been compiled for this kernel:' -+ echo ' emerge --oneshot vmware-modules' -+ echo -+ echo 'Also ensure '"`vmware_product_name`"' has been configured:' -+ echo ' '"$vmdb_answer_BINDIR"'/vmware-config.pl' - echo - - exit 1 diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/000_all_initd-location.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/000_all_initd-location.patch deleted file mode 100644 index 6eb6619d2b8e..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/000_all_initd-location.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- vmware-distrib/bin/vmware-config.pl.ori 2005-11-09 01:45:08.000000000 +0000 -+++ vmware-distrib/bin/vmware-config.pl 2005-11-09 01:48:21.000000000 +0000 -@@ -8433,7 +8433,7 @@ - error('Please shut down any running VMs and run this script again.' . - "\n\n"); - } else { -- if (system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') -+ if (system(shell_string('/etc/init.d' . '/vmware') - . ' stop')) { - error('Unable to stop services for ' . vmware_product_name() . - "\n\n"); -@@ -8463,8 +8463,8 @@ - } - if (vmware_product() ne 'server') { - configure_gtk2(); -- createMimePackageFile(); -- configureDesktopFiles(); -+# createMimePackageFile(); -+# configureDesktopFiles(); - configure_mon(); - configure_pp(); - configure_net(); -@@ -8532,7 +8532,7 @@ - db_save(); - # Then start VMware's services - if (!$gOption{'skip-stop-start'}) { -- system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') . ' start'); -+ system(shell_string('/etc/init.d' . '/vmware') . ' start'); - print "\n"; - } - diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/001_all_fix-permissions.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/001_all_fix-permissions.patch deleted file mode 100644 index e646b7b2da5c..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/001_all_fix-permissions.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -urN vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl ---- vmware-distrib.orig/bin/vmware-config.pl 2005-12-16 00:51:03.000000000 -0500 -+++ vmware-distrib/bin/vmware-config.pl 2005-12-21 14:34:03.000000000 -0500 -@@ -7327,7 +7327,10 @@ - error('Unable to write configuration file "' . $name . '".' . "\n\n"); - } - db_add_file($name, 0x1); -- safe_chmod(0644, $name); -+ safe_chmod(0664, $name); -+ my $gid = (getgrnam('vmware'))[2]; -+ my $uid = (stat($name))[4]; -+ safe_chown($uid,$gid,$name); - - # Append the promotional configuration if it exists - $promoconfig = $libdir . '/configurator/PROMOCONFIG'; diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/002_all_pagebreak-detection-fix.patch deleted file mode 100644 index fd3fc76ca679..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/002_all_pagebreak-detection-fix.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ur vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl ---- vmware-distrib.orig/bin/vmware-config.pl 2006-03-24 23:13:05.000000000 +0100 -+++ vmware-distrib/bin/vmware-config.pl 2006-03-24 23:26:40.000000000 +0100 -@@ -2015,9 +2015,9 @@ - . shell_string($pattern)); - chomp($header_page_offset); - # Ignore PAGE_OFFSET if we cannot parse it. -- if ($header_page_offset =~ /^$pattern \(?0x([0-9a-fA-F]{8,})/) { -+ if ($header_page_offset =~ /^$pattern \(?(\([^)]*\))?\)?0x([0-9a-fA-F]{8,}).*$/) { - # We found a valid page offset -- $header_page_offset = $1; -+ $header_page_offset = $2; - if (defined($gSystem{'page_offset'}) and - not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) { - if ($source eq 'user') { diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch deleted file mode 100644 index e2649c0af27b..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -uNr vmware-server-distrib.orig/bin/vmware-config.pl vmware-server-distrib/bin/vmware-config.pl ---- vmware-server-distrib.orig/bin/vmware-config.pl 2006-02-18 18:12:26.000000000 +0000 -+++ vmware-server-distrib/bin/vmware-config.pl 2006-02-18 18:14:17.000000000 +0000 -@@ -10158,13 +10158,13 @@ - configure_gtk2(); - # createMimePackageFile(); - # configureDesktopFiles(); -- configure_mon(); -+# configure_mon(); - if (isDesktopProduct()) { -- build_vmblock(); -+# build_vmblock(); - } -- configure_pp(); -+# configure_pp(); - configure_net(); -- build_vmnet(); -+# build_vmnet(); - } - - configure_eclipse_plugin(); diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch deleted file mode 100644 index c29a87e8f226..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr vmware-server-distrib/installer/services.sh vmware-server-distrib.new/installer/services.sh ---- vmware-server-distrib/installer/services.sh 2006-02-05 00:21:25.000000000 +0000 -+++ vmware-server-distrib.new/installer/services.sh 2006-02-20 23:48:07.000000000 +0000 -@@ -538,7 +538,7 @@ - } - - vmware_load_module() { -- /sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.o" || exit 1 -+ /sbin/modprobe -s -f "$1" || exit 1 - exit 0 - } - diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/009_all_init.d-modules-warning.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/009_all_init.d-modules-warning.patch deleted file mode 100644 index 4eab043af8dc..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/009_all_init.d-modules-warning.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -uNr vmware-server-distrib.orig/installer/services.sh vmware-server-distrib/installer/services.sh ---- vmware-server-distrib.orig/installer/services.sh 2006-07-01 03:14:16.000000000 +0000 -+++ vmware-server-distrib/installer/services.sh 2006-07-14 11:59:28.000000000 +0000 -@@ -606,8 +606,13 @@ - start) - if [ -e "$vmware_etc_dir"/not_configured ]; then - echo "`vmware_product_name`"' is installed, but it has not been (correctly) configured' -- echo 'for the running kernel. To (re-)configure it, invoke the' -- echo 'following command: '"$vmdb_answer_BINDIR"'/vmware-config.pl.' -+ echo 'for the running kernel.' -+ echo -+ echo 'Please ensure that the modules have been compiled for this kernel:' -+ echo ' emerge --oneshot vmware-modules' -+ echo -+ echo 'Also ensure '"`vmware_product_name`"' has been configured:' -+ echo ' '"$vmdb_answer_BINDIR"'/vmware-config.pl' - echo - - exit 1 diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/011_all_legit-modules-only.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/011_all_legit-modules-only.patch deleted file mode 100644 index 9e453ed1e2ee..000000000000 --- a/app-emulation/vmware-workstation/files/6.0.2.59824/011_all_legit-modules-only.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl ---- vmware-distrib.orig/bin/vmware-config.pl 2007-08-22 02:58:41.000000000 +0100 -+++ vmware-distrib/bin/vmware-config.pl 2007-09-19 20:04:57.000000000 +0100 -@@ -10127,7 +10127,7 @@ - } - - my @modules = non_vmware_modules_installed(); -- if (scalar(@modules) > 0) { -+ if (scalar(@modules) < 0) { - error("The following VMware kernel modules have been found on your system that " . - "were not installed by the VMware Installer. Please remove them then run " . - "this installer again.\n\n" . join("\n", @modules) . "\n\n"); diff --git a/app-emulation/vmware-workstation/vmware-workstation-5.5.5.56455.ebuild b/app-emulation/vmware-workstation/vmware-workstation-5.5.7.91707.ebuild index bd0909a1ab0a..cb70507eaa35 100644 --- a/app-emulation/vmware-workstation/vmware-workstation-5.5.5.56455.ebuild +++ b/app-emulation/vmware-workstation/vmware-workstation-5.5.7.91707.ebuild @@ -1,15 +1,16 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-5.5.5.56455.ebuild,v 1.3 2007/10/11 07:14:54 kingtaco Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-5.5.7.91707.ebuild,v 1.1 2008/06/14 23:33:07 ikelos Exp $ -inherit vmware eutils +inherit vmware eutils versionator -MY_P="VMware-workstation-5.5.5-56455" +MY_P="VMware-workstation-$(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" +HOMEPAGE="http://www.vmware.com/download/ws/ws5.html" SRC_URI="mirror://vmware/software/wkst/${MY_P}.tar.gz http://download.softpedia.ro/linux/${MY_P}.tar.gz + mirror://gentoo/${ANY_ANY}.tar.gz http://platan.vc.cvut.cz/ftp/pub/vmware/${ANY_ANY}.tar.gz http://platan.vc.cvut.cz/ftp/pub/vmware/obsolete/${ANY_ANY}.tar.gz http://ftp.cvut.cz/vmware/${ANY_ANY}.tar.gz @@ -19,9 +20,9 @@ SRC_URI="mirror://vmware/software/wkst/${MY_P}.tar.gz LICENSE="vmware" SLOT="0" -KEYWORDS="-* amd64 x86" +KEYWORDS="-* ~amd64 ~x86" IUSE="" -RESTRICT="strip" +RESTRICT="fetch strip" # vmware-workstation should not use virtual/libc as this is a # precompiled binary package thats linked to glibc. @@ -85,6 +86,8 @@ src_install() { vmware_src_install doicon lib/share/pixmaps/vmware-player.png + # Fix an ugly GCC error on start + rm -f "${Ddir}lib/lib/libgcc_s.so.1/libgcc_s.so.1" make_desktop_entry vmware "VMWare Workstation" ${PN}.png System make_desktop_entry vmplayer "VMWare Player" vmware-player.png System } diff --git a/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild b/app-emulation/vmware-workstation/vmware-workstation-6.0.4.93057.ebuild index 22e079d02318..29830b8dffd3 100644 --- a/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild +++ b/app-emulation/vmware-workstation/vmware-workstation-6.0.4.93057.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild,v 1.2 2008/04/26 16:29:15 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.0.4.93057.ebuild,v 1.1 2008/06/14 23:33:07 ikelos Exp $ -inherit vmware eutils versionator +inherit vmware eutils versionator fdo-mime gnome2-utils MY_PN="VMware-workstation-$(replace_version_separator 3 - $PV)" @@ -26,29 +26,20 @@ RESTRICT="strip fetch" # vmware-workstation should not use virtual/libc as this is a # precompiled binary package thats linked to glibc. RDEPEND="sys-libs/glibc - amd64? ( - x11-libs/libXrandr - x11-libs/libXcursor - x11-libs/libXinerama - x11-libs/libXi - x11-libs/libview - dev-cpp/libsexymm - dev-cpp/cairomm - dev-cpp/libgnomecanvasmm - virtual/xft ) - x86? ( - x11-libs/libXrandr - x11-libs/libXcursor - x11-libs/libXinerama - x11-libs/libXi - x11-libs/libview - dev-cpp/libsexymm - virtual/xft ) + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXinerama + x11-libs/libXi + x11-libs/libview + dev-cpp/libsexymm + dev-cpp/cairomm + dev-cpp/libgnomecanvasmm + virtual/xft !app-emulation/vmware-player !app-emulation/vmware-server - ~app-emulation/vmware-modules-1.0.0.17 - !<app-emulation/vmware-modules-1.0.0.17 - !>=app-emulation/vmware-modules-1.0.0.18 + ~app-emulation/vmware-modules-1.0.0.20 + !<app-emulation/vmware-modules-1.0.0.20 + !>=app-emulation/vmware-modules-1.0.0.21 >=dev-lang/perl-5 sys-apps/pciutils" @@ -115,18 +106,45 @@ pkg_nofetch() { fi einfo "Please download the ${MY_P}.tar.gz at ${HOMEPAGE}" - einfo "${ANY_ANY}.tar.gz is also necessary for compilation" - einfo "but should already have been fetched." + if [ "${ANY_ANY}" != "" ]; then + einfo "${ANY_ANY}.tar.gz is also necessary for compilation" + einfo "but should already have been fetched." + fi } src_install() { vmware_src_install - ICONDIR=/opt/vmware/workstation/lib/share/icons/hicolor/scalable/apps/ - make_desktop_entry vmware "VMWare Workstation" ${ICONDIR}/${PN}.svg System - make_desktop_entry vmplayer "VMWare Player" ${ICONDIR}/vmware-player.svg System + # move the icons into a location where DEs will find it: + ICONDIR=/opt/vmware/workstation/lib/share/icons/hicolor + rm "${D}${ICONDIR}/index.theme" + mkdir -p "${D}/usr/share/icons" + mv "${D}${ICONDIR}" "${D}/usr/share/icons" + ln -s /usr/share/icons/hicolor "${D}${ICONSDIR}" + + # install .desktop files: + insinto /usr/share/applications + doins "${FILESDIR}/vmware-workstation.desktop" + doins "${FILESDIR}/vmware-player.desktop" # Nasty hack to ensure the EULA is included insinto /opt/vmware/workstation/lib/share newins doc/EULA EULA.txt } + +pkg_preinst() { + vmware_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + vmware_pkg_postinst + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + vmware_pkg_postrm + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |