Gentoo Archives: gentoo-commits

From: "Mike Auty (ikelos)" <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/vmware-player: vmware-player-2.5.1.126130.ebuild ChangeLog
Date: Wed, 31 Dec 2008 02:06:05
Message-Id: E1LHqTB-0005dD-MZ@stork.gentoo.org
1 ikelos 08/12/31 02:06:01
2
3 Modified: ChangeLog
4 Added: vmware-player-2.5.1.126130.ebuild
5 Log:
6 Version bump vmware-player to 2.5.1.
7 (Portage version: 2.2_rc20/cvs/Linux 2.6.28 i686)
8
9 Revision Changes Path
10 1.63 app-emulation/vmware-player/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.63&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.63&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?r1=1.62&r2=1.63
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v
19 retrieving revision 1.62
20 retrieving revision 1.63
21 diff -u -r1.62 -r1.63
22 --- ChangeLog 27 Nov 2008 23:52:11 -0000 1.62
23 +++ ChangeLog 31 Dec 2008 02:06:01 -0000 1.63
24 @@ -1,6 +1,15 @@
25 # ChangeLog for app-emulation/vmware-player
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.62 2008/11/27 23:52:11 ikelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.63 2008/12/31 02:06:01 ikelos Exp $
29 +
30 +*vmware-player-2.5.1.126130 (31 Dec 2008)
31 +
32 + 31 Dec 2008; Mike Auty <ikelos@g.o>
33 + +files/2.5.1.126130/vmware-player.py.patch,
34 + +files/vmware-player-2.5.1.126130-installer.patch,
35 + +files/2.5.1.126130/vmware-player-extras.py.patch,
36 + +vmware-player-2.5.1.126130.ebuild:
37 + Version bump vmware-player to 2.5.1.
38
39 27 Nov 2008; Mike Auty <ikelos@g.o> files/helpers/vmware-config.sh:
40 Fix up vmware-config.sh helper (bug 246854).
41
42
43
44 1.1 app-emulation/vmware-player/vmware-player-2.5.1.126130.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.1.126130.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.1.126130.ebuild?rev=1.1&content-type=text/plain
48
49 Index: vmware-player-2.5.1.126130.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.1.126130.ebuild,v 1.1 2008/12/31 02:06:01 ikelos Exp $
54
55 inherit eutils versionator fdo-mime gnome2-utils
56
57 MY_PN="VMware-Player-$(replace_version_separator 3 - $PV)"
58
59 DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
60 HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
61 SRC_URI="
62 x86? (
63 mirror://vmware/software/vmplayer/${MY_PN}.i386.bundle
64 http://download.softpedia.ro/linux/${MY_PN}.i386.bundle )
65 amd64? (
66 mirror://vmware/software/vmplayer/${MY_PN}.x86_64.bundle
67 http://download.softpedia.ro/linux/${MY_PN}.x86_64.bundle )
68 "
69
70 LICENSE="vmware"
71 SLOT="0"
72 KEYWORDS="-* ~x86 ~amd64"
73 IUSE=""
74 RESTRICT="strip binchecks"
75
76 # vmware-workstation should not use virtual/libc as this is a
77 # precompiled binary package thats linked to glibc.
78 DEPEND=">=dev-lang/python-2.5
79 dev-python/lxml"
80 RDEPEND="sys-libs/glibc
81 x11-libs/libXrandr
82 x11-libs/libXcursor
83 x11-libs/libXinerama
84 x11-libs/libXi
85 x11-libs/libview
86 dev-cpp/libsexymm
87 dev-cpp/cairomm
88 dev-cpp/libgnomecanvasmm
89 virtual/xft
90 !app-emulation/vmware-player
91 !app-emulation/vmware-server
92 ~app-emulation/vmware-modules-1.0.0.23
93 !<app-emulation/vmware-modules-1.0.0.23
94 !>=app-emulation/vmware-modules-1.0.0.24
95 sys-apps/pciutils"
96
97 S=${WORKDIR}/vmware-distrib
98 VM_INSTALL_DIR="/opt/vmware/player"
99
100 pkg_setup() {
101 if use x86; then
102 MY_P="${MY_PN}.i386"
103 elif use amd64; then
104 MY_P="${MY_PN}.x86_64"
105 fi
106
107 if ! built_with_use ">=dev-cpp/gtkmm-2.4" accessibility ; then
108 eerror "Rebuild dev-cpp/gtkmm with USE=\"accessibility\""
109 die "VMware workstation only works with gtkmm built with USE=\"accessibility\"."
110 fi
111
112 if ! built_with_use -a '>=dev-lang/python-2.5' sqlite ncurses; then
113 eerror "You need to build dev-lang/python with \"sqlite ncurses\" USE flags!"
114 die "Please rebuild dev-lang/python with sqlite and ncurses USE flags!"
115 fi
116
117 if [ "$(python -c "import curses; curses.setupterm(); print curses.tigetstr('hpa')")" == "None" ]; then
118 die "Please emerge this package using a different terminal (e.g. not within screen)."
119 fi
120 }
121
122 pkg_nofetch() {
123 if use x86; then
124 MY_P="${MY_PN}.i386"
125 elif use amd64; then
126 MY_P="${MY_PN}.x86_64"
127 fi
128
129 einfo "Please download the ${MY_P}.bundle from ${HOMEPAGE}"
130 }
131
132 src_unpack() {
133 # Unbundle the bundle
134 cp "${FILESDIR}"/helpers/* "${WORKDIR}"
135 chmod a+x "${WORKDIR}"/*.sh
136 "${WORKDIR}"/unbundler.sh "${DISTDIR}/${MY_P}".bundle
137
138 # Patch up the installer
139 epatch "${FILESDIR}/${P}-installer.patch"
140
141 mkdir "${WORKDIR}/vmware-confdir"
142 }
143
144 src_install() {
145 dodir /etc/init.d
146
147 #Run the installer
148 local INSTALLER="${WORKDIR}/payload/install/vmware-installer"
149 local PYOPTS="-W ignore::DeprecationWarning"
150 export VMWARE_SKIP_NETWORKING="true"
151 python ${PYOPTS} "${INSTALLER}/vmware-installer.py" \
152 --set-setting vmware-installer.libconf "${INSTALLER}/lib/libconf" \
153 --set-setting initdir "${T}" \
154 --set-setting initscriptdir "${D}/etc/init.d" \
155 --set-setting prefix "${D}${VM_INSTALL_DIR}" \
156 --set-setting sysconfdir "${D}/etc" \
157 --install-component "${INSTALLER}" \
158 --install-bundle "${DISTDIR}/${MY_P}.bundle" \
159 --console --required
160
161 rm -fr "${D}${VM_INSTALL_DIR}/lib/vmware/modules/binary"
162
163 if [ ! -e "${WORKDIR}"/vmware-confdir/bootstrap ]; then
164 eerror "VMware installation seems to have rolled back."
165 eerror "Please include the contents of ${WORKDIR}/vmware-installer.log"
166 eerror "in any bug reports you file."
167 die "VMware installation rolled back."
168 fi
169
170 # Redirect all the ${D} paths to / paths"
171 sed -i -e "s:${D}::" "${WORKDIR}"/vmware-confdir/bootstrap
172
173 # Fix up icons/mime/desktop handlers
174 dodir /usr/share/
175 mv "${D}${VM_INSTALL_DIR}"/share/applications "${D}"/usr/share/
176 rm -f "${D}${VM_INSTALL_DIR}"/share/icons/hicolor/{icon-theme.cache,index.theme}
177 mv "${D}${VM_INSTALL_DIR}"/share/icons "${D}"/usr/share/
178 dodir /usr/share/mime
179 mv "${D}${VM_INSTALL_DIR}"/share/mime/packages "${D}"/usr/share/mime
180 sed -i -e "s:${D}::" "${D}"/usr/share/applications/*.desktop
181
182 # Copy across the temporary /etc/vmware directory
183 dodir /etc/vmware/init.d
184 cp -r "${WORKDIR}"/vmware-confdir/* "${D}/etc/vmware"
185 mv "${D}"/etc/init.d/* "${D}/etc/vmware/init.d"
186 newinitd "${FILESDIR}/${PN}"-2.5.rc vmware
187 touch "${D}"/etc/vmware/networking
188
189 # Setup the path environment
190 insinto /etc/env.d
191 doins "${FILESDIR}/90${PN}"
192
193 # Fix some paths to allow included gtk to work
194 for i in "/etc/pango/pangorc" \
195 "/etc/pango/pango.modules" \
196 "/etc/gtk-2.0/gtk.immodules" \
197 "/etc/gtk-2.0/gdk-pixbuf.loaders" ; do
198 sed -i -e "s:${D}::" "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf${i} ;
199 sed -i -e "s:${D}::" "${D}${VM_INSTALL_DIR}"/lib/vmware/installer/lib/libconf${i} ;
200 done
201
202 # No idea why this happens, but it seems to happen all the time
203 ewarn "The following installation segment takes a *very* long time."
204 ewarn "Please be patient."
205 }
206
207 pkg_config() {
208 ${VM_INSTALL_DIR}/bin/vmware-networks --postinstall ${PN},old,new
209 }
210
211 pkg_preinst() {
212 gnome2_icon_savelist
213 }
214
215 pkg_postinst() {
216 fdo-mime_desktop_database_update
217 gnome2_icon_cache_update
218
219 ewarn "Before you can use vmware-player, you must configure a default
220 network setup."
221 ewarn "You can do this by running 'emerge --config ${PN}'."
222 }
223
224 pkg_postrm() {
225 fdo-mime_desktop_database_update
226 gnome2_icon_cache_update
227 }