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