Gentoo Archives: gentoo-commits

From: "Vadim Kuznetsov (vadimk)" <vadimk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/vmware-workstation: vmware-workstation-6.5.5.328052.ebuild ChangeLog
Date: Wed, 29 Dec 2010 20:08:57
Message-Id: 20101229200847.B8F6D20057@flycatcher.gentoo.org
1 vadimk 10/12/29 20:08:47
2
3 Modified: ChangeLog
4 Added: vmware-workstation-6.5.5.328052.ebuild
5 Log:
6 Version bump. Bugs 350073, 345377
7
8 (Portage version: 2.1.9.26/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.214 app-emulation/vmware-workstation/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?rev=1.214&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?rev=1.214&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?r1=1.213&r2=1.214
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v
20 retrieving revision 1.213
21 retrieving revision 1.214
22 diff -u -r1.213 -r1.214
23 --- ChangeLog 15 Sep 2010 13:10:35 -0000 1.213
24 +++ ChangeLog 29 Dec 2010 20:08:47 -0000 1.214
25 @@ -1,6 +1,17 @@
26 # ChangeLog for app-emulation/vmware-workstation
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.213 2010/09/15 13:10:35 vadimk Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.214 2010/12/29 20:08:47 vadimk Exp $
30 +
31 +*vmware-workstation-6.5.5.328052 (29 Dec 2010)
32 +
33 + 29 Dec 2010; Vadim Kuznetsov <vadimk@g.o>
34 + +files/vmware-workstation-6.5.5.328052-installer.patch,
35 + +files/6.5.5.328052/vmware-player.py.patch,
36 + +files/6.5.5.328052/vmware-player-extras.py.patch,
37 + +files/6.5.5.328052/vmware-vix.py.patch,
38 + +files/6.5.5.328052/vmware-workstation.py.patch,
39 + +vmware-workstation-6.5.5.328052.ebuild:
40 + Version bump. Bugs 350073, 345377
41
42 *vmware-workstation-6.5.4.246459 (15 Sep 2010)
43
44
45
46
47 1.1 app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild?rev=1.1&content-type=text/plain
51
52 Index: vmware-workstation-6.5.5.328052.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild,v 1.1 2010/12/29 20:08:47 vadimk Exp $
57
58 EAPI="2"
59
60 inherit eutils versionator fdo-mime gnome2-utils
61
62 MY_PN="VMware-Workstation-$(replace_version_separator 3 - $PV)"
63
64 DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
65 HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
66 DOWNLOAD_URL="http://www.vmware.com/download/ws/"
67 SRC_URI="
68 x86? ( ${MY_PN}.i386.bundle )
69 amd64? ( ${MY_PN}.x86_64.bundle )
70 "
71
72 LICENSE="vmware"
73 SLOT="0"
74 KEYWORDS="-* ~amd64 ~x86"
75 IUSE=""
76 RESTRICT="strip fetch binchecks"
77 PROPERTIES="interactive"
78
79 # vmware-workstation should not use virtual/libc as this is a
80 # precompiled binary package thats linked to glibc.
81 DEPEND=">=dev-lang/python-2.5[sqlite,ncurses]
82 dev-python/lxml"
83 RDEPEND="
84 ~app-emulation/vmware-modules-1.0.0.25
85 dev-cpp/cairomm
86 dev-cpp/libgnomecanvasmm
87 dev-cpp/libsexymm
88 sys-apps/pciutils
89 sys-fs/fuse
90 sys-libs/glibc
91 >=x11-libs/libview-0.6.2
92 x11-libs/libgksu
93 x11-libs/libXcursor
94 x11-libs/libXft
95 x11-libs/libXi
96 x11-libs/libXinerama
97 x11-libs/libXrandr
98 !!app-emulation/vmware-player
99 !!app-emulation/vmware-server
100 "
101
102 S=${WORKDIR}/vmware-distrib
103 VM_INSTALL_DIR="/opt/vmware/workstation"
104
105 pkg_setup() {
106 if use x86; then
107 MY_P="${MY_PN}.i386"
108 elif use amd64; then
109 MY_P="${MY_PN}.x86_64"
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"
125 einfo "${DOWNLOAD_URL}"
126 einfo "and place it in ${DISTDIR}"
127 }
128
129 src_unpack() {
130 # Unbundle the bundle
131 cp "${FILESDIR}"/helpers/* "${WORKDIR}"
132 chmod a+x "${WORKDIR}"/*.sh
133 "${WORKDIR}"/unbundler.sh "${DISTDIR}/${MY_P}".bundle
134 }
135
136 src_prepare() {
137 # Patch up the installer
138 epatch "${FILESDIR}/${P}-installer.patch"
139
140 mkdir "${WORKDIR}/vmware-confdir"
141 }
142
143 src_install() {
144 dodir /etc/init.d
145
146 #Run the installer
147 local INSTALLER="${WORKDIR}/payload/install/vmware-installer"
148 local PYOPTS="-W ignore::DeprecationWarning"
149 export VMWARE_SKIP_NETWORKING="true"
150 python ${PYOPTS} "${INSTALLER}/vmware-installer.py" \
151 --set-setting vmware-installer.libconf "${INSTALLER}/lib/libconf" \
152 --set-setting initdir "${T}" \
153 --set-setting initscriptdir "${D}/etc/init.d" \
154 --set-setting prefix "${D}${VM_INSTALL_DIR}" \
155 --set-setting sysconfdir "${D}/etc" \
156 --install-component "${INSTALLER}" \
157 --install-bundle "${DISTDIR}/${MY_P}.bundle" \
158 --console --required
159
160 rm -fr "${D}${VM_INSTALL_DIR}/lib/vmware/modules/binary"
161
162 if [ ! -e "${WORKDIR}"/vmware-confdir/bootstrap ]; then
163 eerror "VMware installation seems to have rolled back."
164 eerror "Please include the contents of ${WORKDIR}/vmware-installer.log"
165 eerror "in any bug reports you file."
166 die "VMware installation rolled back."
167 fi
168
169 # Redirect all the ${D} paths to / paths"
170 sed -i -e "s:${D}::" "${WORKDIR}"/vmware-confdir/bootstrap
171
172 # Fix up icons/mime/desktop handlers
173 dodir /usr/share/
174 mv "${D}${VM_INSTALL_DIR}"/share/applications "${D}"/usr/share/
175 rm -f "${D}${VM_INSTALL_DIR}"/share/icons/hicolor/{icon-theme.cache,index.theme}
176 mv "${D}${VM_INSTALL_DIR}"/share/icons "${D}"/usr/share/
177 dodir /usr/share/mime
178 mv "${D}${VM_INSTALL_DIR}"/share/mime/packages "${D}"/usr/share/mime
179 sed -i -e "s:${D}::" "${D}"/usr/share/applications/*.desktop
180
181 # Copy across the temporary /etc/vmware directory
182 dodir /etc/vmware/init.d
183 cp -r "${WORKDIR}"/vmware-confdir/* "${D}/etc/vmware"
184 mv "${D}"/etc/init.d/* "${D}/etc/vmware/init.d"
185 sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${D}"/etc/vmware/init.d/vmware
186 newinitd "${FILESDIR}/${PN}"-6.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
203 pkg_config() {
204 ${VM_INSTALL_DIR}/bin/vmware-networks --postinstall ${PN},old,new
205 }
206
207 pkg_preinst() {
208 gnome2_icon_savelist
209 }
210
211 pkg_postinst() {
212 fdo-mime_desktop_database_update
213 gnome2_icon_cache_update
214
215 ewarn "Before you can use vmware-workstation, you must configure a default network setup."
216 ewarn "You can do this by running 'emerge --config ${PN}'."
217 }
218
219 pkg_prerm() {
220 einfo "Stopping ${product_name} for safe unmerge"
221 /etc/init.d/vmware stop
222 }
223
224 pkg_postrm() {
225 fdo-mime_desktop_database_update
226 gnome2_icon_cache_update
227 }