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-player: ChangeLog vmware-player-4.0.1.528992-r1.ebuild
Date: Sat, 03 Dec 2011 20:07:56
Message-Id: 20111203200745.A7B082004C@flycatcher.gentoo.org
1 vadimk 11/12/03 20:07:45
2
3 Modified: ChangeLog
4 Added: vmware-player-4.0.1.528992-r1.ebuild
5 Log:
6 vmware desktop version bump
7
8 (Portage version: 2.1.10.39/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.99 app-emulation/vmware-player/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.99&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-player/ChangeLog?rev=1.99&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-player/ChangeLog?r1=1.98&r2=1.99
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v
20 retrieving revision 1.98
21 retrieving revision 1.99
22 diff -u -r1.98 -r1.99
23 --- ChangeLog 22 Nov 2011 18:00:27 -0000 1.98
24 +++ ChangeLog 3 Dec 2011 20:07:45 -0000 1.99
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-emulation/vmware-player
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.98 2011/11/22 18:00:27 vadimk Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.99 2011/12/03 20:07:45 vadimk Exp $
30 +
31 +*vmware-player-4.0.1.528992-r1 (03 Dec 2011)
32 +
33 + 03 Dec 2011; Vadim Kuznetsov <vadimk@g.o>
34 + +vmware-player-4.0.1.528992-r1.ebuild:
35 + vmware desktop version bump
36
37 22 Nov 2011; Vadim Kuznetsov <vadimk@g.o>
38 vmware-player-2.5.5.328052.ebuild, vmware-player-3.1.5.491717.ebuild,
39
40
41
42 1.1 app-emulation/vmware-player/vmware-player-4.0.1.528992-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-player/vmware-player-4.0.1.528992-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-player/vmware-player-4.0.1.528992-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: vmware-player-4.0.1.528992-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-4.0.1.528992-r1.ebuild,v 1.1 2011/12/03 20:07:45 vadimk Exp $
52
53 EAPI="4"
54
55 inherit eutils versionator fdo-mime gnome2-utils vmware-bundle
56
57 MY_PN="VMware-Player"
58 MY_PV="$(replace_version_separator 3 - $PV)"
59 MY_P="${MY_PN}-${MY_PV}"
60
61 DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
62 HOMEPAGE="http://www.vmware.com/products/player/"
63 SRC_URI="
64 x86? ( ${MY_P}.i386.bundle )
65 amd64? ( ${MY_P}.x86_64.bundle )
66 "
67
68 LICENSE="vmware"
69 SLOT="0"
70 KEYWORDS="-* ~amd64 ~x86"
71 IUSE="cups doc +vmware-tools"
72 RESTRICT="binchecks fetch strip"
73
74 # vmware-workstation should not use virtual/libc as this is a
75 # precompiled binary package thats linked to glibc.
76 RDEPEND="dev-cpp/cairomm
77 dev-cpp/glibmm:2
78 dev-cpp/gtkmm:2.4
79 dev-cpp/libgnomecanvasmm:2.6
80 dev-cpp/libsexymm
81 dev-cpp/pangomm:1.4
82 dev-libs/atk
83 dev-libs/glib:2
84 dev-libs/libaio
85 dev-libs/libsigc++
86 dev-libs/libxml2
87 =dev-libs/openssl-0.9.8*
88 dev-libs/xmlrpc-c
89 gnome-base/libgnomecanvas
90 gnome-base/libgtop:2
91 gnome-base/librsvg:2
92 gnome-base/orbit
93 media-libs/fontconfig
94 media-libs/freetype
95 media-libs/libart_lgpl
96 =media-libs/libpng-1.2*
97 net-misc/curl
98 cups? ( net-print/cups )
99 sys-devel/gcc
100 sys-fs/fuse
101 sys-libs/glibc
102 sys-libs/zlib
103 x11-libs/cairo
104 x11-libs/gtk+:2
105 x11-libs/libgksu
106 x11-libs/libICE
107 x11-libs/libsexy
108 x11-libs/libSM
109 x11-libs/libX11
110 x11-libs/libXau
111 x11-libs/libxcb
112 x11-libs/libXcomposite
113 x11-libs/libXcursor
114 x11-libs/libXdamage
115 x11-libs/libXdmcp
116 x11-libs/libXext
117 x11-libs/libXfixes
118 x11-libs/libXft
119 x11-libs/libXi
120 x11-libs/libXinerama
121 x11-libs/libXrandr
122 x11-libs/libXrender
123 x11-libs/libXtst
124 x11-libs/pango
125 x11-libs/startup-notification
126 !app-emulation/vmware-workstation"
127 PDEPEND="~app-emulation/vmware-modules-264.1
128 vmware-tools? ( app-emulation/vmware-tools )"
129
130 S=${WORKDIR}
131 VM_INSTALL_DIR="/opt/vmware"
132
133 pkg_nofetch() {
134 local bundle
135
136 if use x86; then
137 bundle="${MY_P}.i386.bundle"
138 elif use amd64; then
139 bundle="${MY_P}.x86_64.bundle"
140 fi
141
142 einfo "Please download ${bundle}"
143 einfo "from ${HOMEPAGE}"
144 einfo "and place it in ${DISTDIR}"
145 }
146
147 src_unpack() {
148 local component ; for component in \
149 vmware-player \
150 vmware-player-app \
151 vmware-vmx \
152 vmware-usbarbitrator \
153 vmware-network-editor \
154 vmware-player-setup
155 #vmware-ovftool
156 do
157 vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}"
158 done
159 }
160
161 src_prepare() {
162 rm -f bin/vmware-modconfig
163 rm -rf lib/modules/binary
164 }
165
166 clean_bundled_libs() {
167 ebegin 'Removing superfluous libraries'
168 # exclude OpenSSL from unbundling until the AES-NI patch gets into the tree
169 # see http://forums.gentoo.org/viewtopic-t-835867.html
170 # must use shipped libgcr.so.0 or else "undefined symbol: gcr_certificate_widget_new"
171 ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> \(/.*\)$:\1 \2:g;t;d' | fgrep -v 'libcrypto.so.0.9.8
172 libssl.so.0.9.8
173 libgcr.so.0' | while read -r libname libpath ; do
174 dosym "${libpath}" "${VM_INSTALL_DIR}/lib/vmware/lib/${libname}/${libname}"
175 done
176 eend
177 }
178
179 src_install() {
180 local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
181 local build=$(get_version_component_range 4 "${PV}")
182
183 # install the binaries
184 into "${VM_INSTALL_DIR}"
185 dobin bin/* || die "failed to install bin"
186
187 # install the libraries
188 insinto "${VM_INSTALL_DIR}"/lib/vmware
189 doins -r lib/*
190
191 # install the ancillaries
192 insinto /usr
193 doins -r share
194
195 if use cups; then
196 exeinto $(cups-config --serverbin)/filter
197 doexe extras/thnucups
198
199 insinto /etc/cups
200 doins -r etc/cups/*
201 fi
202
203 # install documentation
204 if use doc; then
205 dodoc doc/*
206 fi
207
208 exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup
209 doexe vmware-config
210
211 # create symlinks for the various tools
212 local tool ; for tool in thnuclnt vmplayer{,-daemon} \
213 vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do
214 dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
215 done
216 dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
217 dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
218
219 # fix up permissions
220 fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh,lib/libgksu2.so.0/gksu-run-helper}
221 fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx*
222
223 # create the environment
224 local envd="${T}/90vmware"
225 cat > "${envd}" <<-EOF
226 PATH='${VM_INSTALL_DIR}/bin'
227 ROOTPATH='${VM_INSTALL_DIR}/bin'
228 EOF
229 doenvd "${envd}" || die
230
231 # create the configuration
232 dodir /etc/vmware || die
233
234 cat > "${D}"/etc/vmware/bootstrap <<-EOF
235 BINDIR='${VM_INSTALL_DIR}/bin'
236 LIBDIR='${VM_INSTALL_DIR}/lib'
237 EOF
238
239 cat > "${D}"/etc/vmware/config <<-EOF
240 bindir = "${VM_INSTALL_DIR}/bin"
241 libdir = "${VM_INSTALL_DIR}/lib/vmware"
242 initscriptdir = "/etc/init.d"
243 authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
244 gksu.rootMethod = "su"
245 VMCI_CONFED = "yes"
246 VMBLOCK_CONFED = "yes"
247 VSOCK_CONFED = "yes"
248 NETWORKING = "yes"
249 player.product.version = "${major_minor_revision}"
250 product.buildNumber = "${build}"
251 EOF
252
253 # install the init.d script
254 local initscript="${T}/vmware.rc"
255
256 sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
257 "${FILESDIR}/vmware-3.0.rc" > "${initscript}" || die
258 newinitd "${initscript}" vmware || die
259
260 # fill in variable placeholders
261 sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
262 -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die
263 sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
264 -i "${D}/usr/share/applications/${PN}.desktop" || die
265 }
266
267 pkg_config() {
268 "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
269 }
270
271 pkg_preinst() {
272 gnome2_icon_savelist
273 }
274
275 pkg_postinst() {
276 fdo-mime_desktop_database_update
277 gnome2_icon_cache_update
278
279 ewarn "/etc/env.d was updated. Please run:"
280 ewarn "env-update && source /etc/profile"
281 ewarn ""
282 ewarn "Before you can use vmware-player, you must configure a default network setup."
283 ewarn "You can do this by running 'emerge --config ${PN}'."
284 }
285
286 pkg_prerm() {
287 einfo "Stopping ${PN} for safe unmerge"
288 /etc/init.d/vmware stop
289 }
290
291 pkg_postrm() {
292 fdo-mime_desktop_database_update
293 gnome2_icon_cache_update
294 }