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: ChangeLog vmware-player-2.5.2.156735.ebuild
Date: Mon, 06 Apr 2009 21:30:47
Message-Id: E1LqwOy-0000TC-QI@stork.gentoo.org
1 ikelos 09/04/06 21:30:44
2
3 Modified: ChangeLog
4 Added: vmware-player-2.5.2.156735.ebuild
5 Log:
6 Version bump vmware-player-2.5.2-156735.
7 (Portage version: 2.2_rc28/cvs/Linux i686)
8
9 Revision Changes Path
10 1.72 app-emulation/vmware-player/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.72&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.72&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/ChangeLog?r1=1.71&r2=1.72
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v
19 retrieving revision 1.71
20 retrieving revision 1.72
21 diff -u -r1.71 -r1.72
22 --- ChangeLog 25 Mar 2009 10:18:52 -0000 1.71
23 +++ ChangeLog 6 Apr 2009 21:30:44 -0000 1.72
24 @@ -1,6 +1,15 @@
25 # ChangeLog for app-emulation/vmware-player
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.71 2009/03/25 10:18:52 ikelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.72 2009/04/06 21:30:44 ikelos Exp $
29 +
30 +*vmware-player-2.5.2.156735 (06 Apr 2009)
31 +
32 + 06 Apr 2009; Mike Auty <ikelos@g.o>
33 + +files/2.5.2.156735/vmware-player.py.patch,
34 + +files/vmware-player-2.5.2.156735-installer.patch,
35 + +files/2.5.2.156735/vmware-player-extras.py.patch,
36 + +vmware-player-2.5.2.156735.ebuild:
37 + Version bump vmware-player-2.5.2-156735.
38
39 25 Mar 2009; Mike Auty <ikelos@g.o>
40 vmware-player-2.5.1.126130.ebuild:
41
42
43
44 1.1 app-emulation/vmware-player/vmware-player-2.5.2.156735.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.2.156735.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.2.156735.ebuild?rev=1.1&content-type=text/plain
48
49 Index: vmware-player-2.5.2.156735.ebuild
50 ===================================================================
51 # Copyright 1999-2009 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.2.156735.ebuild,v 1.1 2009/04/06 21:30:44 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-0.6.2
86 dev-cpp/libsexymm
87 dev-cpp/cairomm
88 dev-cpp/libgnomecanvasmm
89 x11-libs/libXft
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 -a '>=dev-lang/python-2.5' sqlite ncurses; then
108 eerror "You need to build dev-lang/python with \"sqlite ncurses\" USE flags!"
109 die "Please rebuild dev-lang/python with sqlite and ncurses USE flags!"
110 fi
111
112 if [ "$(python -c "import curses; curses.setupterm(); print curses.tigetstr('hpa')")" == "None" ]; then
113 die "Please emerge this package using a different terminal (e.g. not within screen)."
114 fi
115 }
116
117 pkg_nofetch() {
118 if use x86; then
119 MY_P="${MY_PN}.i386"
120 elif use amd64; then
121 MY_P="${MY_PN}.x86_64"
122 fi
123
124 einfo "Please download the ${MY_P}.bundle from ${HOMEPAGE}"
125 }
126
127 src_unpack() {
128 # Unbundle the bundle
129 cp "${FILESDIR}"/helpers/* "${WORKDIR}"
130 chmod a+x "${WORKDIR}"/*.sh
131 "${WORKDIR}"/unbundler.sh "${DISTDIR}/${MY_P}".bundle
132
133 # Patch up the installer
134 epatch "${FILESDIR}/${P}-installer.patch"
135
136 mkdir "${WORKDIR}/vmware-confdir"
137 }
138
139 src_install() {
140 dodir /etc/init.d
141
142 #Run the installer
143 local INSTALLER="${WORKDIR}/payload/install/vmware-installer"
144 local PYOPTS="-W ignore::DeprecationWarning"
145 export VMWARE_SKIP_NETWORKING="true"
146 python ${PYOPTS} "${INSTALLER}/vmware-installer.py" \
147 --set-setting vmware-installer.libconf "${INSTALLER}/lib/libconf" \
148 --set-setting initdir "${T}" \
149 --set-setting initscriptdir "${D}/etc/init.d" \
150 --set-setting prefix "${D}${VM_INSTALL_DIR}" \
151 --set-setting sysconfdir "${D}/etc" \
152 --install-component "${INSTALLER}" \
153 --install-bundle "${DISTDIR}/${MY_P}.bundle" \
154 --console --required
155
156 rm -fr "${D}${VM_INSTALL_DIR}/lib/vmware/modules/binary"
157
158 if [ ! -e "${WORKDIR}"/vmware-confdir/bootstrap ]; then
159 eerror "VMware installation seems to have rolled back."
160 eerror "Please include the contents of ${WORKDIR}/vmware-installer.log"
161 eerror "in any bug reports you file."
162 die "VMware installation rolled back."
163 fi
164
165 # Redirect all the ${D} paths to / paths"
166 sed -i -e "s:${D}::" "${WORKDIR}"/vmware-confdir/bootstrap
167
168 # Fix up icons/mime/desktop handlers
169 dodir /usr/share/
170 mv "${D}${VM_INSTALL_DIR}"/share/applications "${D}"/usr/share/
171 rm -f "${D}${VM_INSTALL_DIR}"/share/icons/hicolor/{icon-theme.cache,index.theme}
172 mv "${D}${VM_INSTALL_DIR}"/share/icons "${D}"/usr/share/
173 dodir /usr/share/mime
174 mv "${D}${VM_INSTALL_DIR}"/share/mime/packages "${D}"/usr/share/mime
175 sed -i -e "s:${D}::" "${D}"/usr/share/applications/*.desktop
176
177 # Copy across the temporary /etc/vmware directory
178 dodir /etc/vmware/init.d
179 cp -r "${WORKDIR}"/vmware-confdir/* "${D}/etc/vmware"
180 mv "${D}"/etc/init.d/* "${D}/etc/vmware/init.d"
181 newinitd "${FILESDIR}/${PN}"-2.5.rc vmware
182 touch "${D}"/etc/vmware/networking
183
184 # Setup the path environment
185 insinto /etc/env.d
186 doins "${FILESDIR}/90${PN}"
187
188 # Fix some paths to allow included gtk to work
189 for i in "/etc/pango/pangorc" \
190 "/etc/pango/pango.modules" \
191 "/etc/gtk-2.0/gtk.immodules" \
192 "/etc/gtk-2.0/gdk-pixbuf.loaders" ; do
193 sed -i -e "s:${D}::" "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf${i} ;
194 sed -i -e "s:${D}::" "${D}${VM_INSTALL_DIR}"/lib/vmware/installer/lib/libconf${i} ;
195 done
196
197 # No idea why this happens, but it seems to happen all the time
198 ewarn "The following installation segment takes a *very* long time."
199 ewarn "Please be patient."
200 }
201
202 pkg_config() {
203 ${VM_INSTALL_DIR}/bin/vmware-networks --postinstall ${PN},old,new
204 }
205
206 pkg_preinst() {
207 gnome2_icon_savelist
208 }
209
210 pkg_postinst() {
211 fdo-mime_desktop_database_update
212 gnome2_icon_cache_update
213
214 ewarn "Before you can use vmware-player, you must configure a default
215 network setup."
216 ewarn "You can do this by running 'emerge --config ${PN}'."
217 }
218
219 pkg_postrm() {
220 fdo-mime_desktop_database_update
221 gnome2_icon_cache_update
222 }