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-vix: vmware-vix-1.11.1.528992.ebuild ChangeLog
Date: Sat, 03 Dec 2011 20:16:14
Message-Id: 20111203201558.054F22004C@flycatcher.gentoo.org
1 vadimk 11/12/03 20:15:58
2
3 Modified: ChangeLog
4 Added: vmware-vix-1.11.1.528992.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.1.10.39/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 app-emulation/vmware-vix/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-vix/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-vix/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-vix/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 26 Aug 2009 14:59:25 -0000 1.4
24 +++ ChangeLog 3 Dec 2011 20:15:57 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-emulation/vmware-vix
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.4 2009/08/26 14:59:25 vadimk Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.5 2011/12/03 20:15:57 vadimk Exp $
31 +
32 +*vmware-vix-1.11.1.528992 (03 Dec 2011)
33 +
34 + 03 Dec 2011; Vadim Kuznetsov <vadimk@g.o>
35 + +vmware-vix-1.11.1.528992.ebuild:
36 + version bump
37
38 *vmware-vix-1.6.2.156745-r2 (26 Aug 2009)
39
40
41
42
43 1.1 app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild?rev=1.1&content-type=text/plain
47
48 Index: vmware-vix-1.11.1.528992.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild,v 1.1 2011/12/03 20:15:57 vadimk Exp $
53
54 EAPI="4"
55
56 inherit eutils versionator vmware-bundle
57
58 MY_PN="VMware-VIX"
59 MY_PV="$(replace_version_separator 3 - $PV)"
60 MY_P="${MY_PN}-${MY_PV}"
61
62 DESCRIPTION="VMware VIX API for Linux"
63 HOMEPAGE="http://www.vmware.com/support/developer/vix-api/"
64 SRC_URI="
65 x86? ( ${MY_P}.i386.bundle )
66 amd64? ( ${MY_P}.x86_64.bundle )
67 "
68
69 LICENSE="vmware"
70 SLOT="0"
71 KEYWORDS="-* ~amd64 ~x86"
72 IUSE="doc"
73 RESTRICT="binchecks fetch mirror strip"
74
75 # vmware-workstation should not use virtual/libc as this is a
76 # precompiled binary package thats linked to glibc.
77 RDEPEND="
78 dev-libs/glib:2
79 dev-libs/libxml2
80 =dev-libs/openssl-0.9.8*
81 net-misc/curl
82 sys-libs/glibc
83 sys-libs/zlib
84 !app-emulation/vmware-workstation"
85
86 S=${WORKDIR}
87 VM_INSTALL_DIR="/opt/vmware"
88
89 pkg_nofetch() {
90 local bundle
91
92 if use x86; then
93 bundle="${MY_P}.i386.bundle"
94 elif use amd64; then
95 bundle="${MY_P}.x86_64.bundle"
96 fi
97
98 einfo "Please download ${bundle}"
99 einfo "from ${HOMEPAGE}"
100 einfo "and place it in ${DISTDIR}"
101 }
102
103 src_unpack() {
104 local component; for component in \
105 vmware-vix \
106 vmware-vix-core \
107 vmware-vix-lib-Workstation800andvSphere500
108 #vmware-vix-legacy \
109 do
110 vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}"
111 done
112 }
113
114 src_install() {
115 # install the binary
116 into "${VM_INSTALL_DIR}"
117 dobin bin/*
118
119 # install the libraries
120 insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
121 doins -r lib/*
122
123 dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
124
125 # install headers
126 insinto /usr/include/vmware-vix
127 doins include/*
128
129 if use doc; then
130 dohtml -r doc/*
131 fi
132
133 # fix permissions
134 fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config
135
136 # create the environment
137 local envd="${T}/90${PN}"
138 cat > "${envd}" <<-EOF
139 PATH='${VM_INSTALL_DIR}/bin'
140 ROOTPATH='${VM_INSTALL_DIR}/bin'
141 EOF
142 doenvd "${envd}"
143
144 # create the configuration
145 dodir /etc/vmware
146
147 local vmconfig="${T}/config"
148 if [[ -e ${ROOT}/etc/vmware/config ]]
149 then
150 cp -a "${ROOT}"/etc/vmware/config "${vmconfig}"
151 sed -i -e "/vmware.fullpath/d" "${vmconfig}"
152 sed -i -e "/vix.libdir/d" "${vmconfig}"
153 sed -i -e "/vix.config.version/d" "${vmconfig}"
154 fi
155
156 cat >> "${vmconfig}" <<-EOF
157 vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
158 vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
159 vix.config.version = "1"
160 EOF
161
162 insinto /etc/vmware/
163 doins "${vmconfig}"
164 }
165
166 pkg_postinst() {
167 ewarn "/etc/env.d was updated. Please run:"
168 ewarn "env-update && source /etc/profile"
169 }
170
171 pkg_prerm() {
172 sed -i -e "/vix.libdir/d" "${ROOT}"/etc/vmware/config
173 }