diff options
author | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-12-03 20:15:57 +0000 |
---|---|---|
committer | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-12-03 20:15:57 +0000 |
commit | 0a924d7224969715cd5d2409502cfb3a9d4365c3 (patch) | |
tree | f5c4a3413385fa6319884bfa799745c7ac4eb8d0 /app-emulation/vmware-vix | |
parent | Stable for HPPA (bug #392773). (diff) | |
download | gentoo-2-0a924d7224969715cd5d2409502cfb3a9d4365c3.tar.gz gentoo-2-0a924d7224969715cd5d2409502cfb3a9d4365c3.tar.bz2 gentoo-2-0a924d7224969715cd5d2409502cfb3a9d4365c3.zip |
version bump
(Portage version: 2.1.10.39/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/vmware-vix')
-rw-r--r-- | app-emulation/vmware-vix/ChangeLog | 10 | ||||
-rw-r--r-- | app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild | 124 |
2 files changed, 132 insertions, 2 deletions
diff --git a/app-emulation/vmware-vix/ChangeLog b/app-emulation/vmware-vix/ChangeLog index 1f53ef065a78..5cdbce0a5304 100644 --- a/app-emulation/vmware-vix/ChangeLog +++ b/app-emulation/vmware-vix/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/vmware-vix -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.4 2009/08/26 14:59:25 vadimk Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-vix/ChangeLog,v 1.5 2011/12/03 20:15:57 vadimk Exp $ + +*vmware-vix-1.11.1.528992 (03 Dec 2011) + + 03 Dec 2011; Vadim Kuznetsov <vadimk@gentoo.org> + +vmware-vix-1.11.1.528992.ebuild: + version bump *vmware-vix-1.6.2.156745-r2 (26 Aug 2009) diff --git a/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild b/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild new file mode 100644 index 000000000000..a684b5fc05b4 --- /dev/null +++ b/app-emulation/vmware-vix/vmware-vix-1.11.1.528992.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="4" + +inherit eutils versionator vmware-bundle + +MY_PN="VMware-VIX" +MY_PV="$(replace_version_separator 3 - $PV)" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="VMware VIX API for Linux" +HOMEPAGE="http://www.vmware.com/support/developer/vix-api/" +SRC_URI=" + x86? ( ${MY_P}.i386.bundle ) + amd64? ( ${MY_P}.x86_64.bundle ) + " + +LICENSE="vmware" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="doc" +RESTRICT="binchecks fetch mirror strip" + +# vmware-workstation should not use virtual/libc as this is a +# precompiled binary package thats linked to glibc. +RDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + =dev-libs/openssl-0.9.8* + net-misc/curl + sys-libs/glibc + sys-libs/zlib + !app-emulation/vmware-workstation" + +S=${WORKDIR} +VM_INSTALL_DIR="/opt/vmware" + +pkg_nofetch() { + local bundle + + if use x86; then + bundle="${MY_P}.i386.bundle" + elif use amd64; then + bundle="${MY_P}.x86_64.bundle" + fi + + einfo "Please download ${bundle}" + einfo "from ${HOMEPAGE}" + einfo "and place it in ${DISTDIR}" +} + +src_unpack() { + local component; for component in \ + vmware-vix \ + vmware-vix-core \ + vmware-vix-lib-Workstation800andvSphere500 + #vmware-vix-legacy \ + do + vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}" + done +} + +src_install() { + # install the binary + into "${VM_INSTALL_DIR}" + dobin bin/* + + # install the libraries + insinto "${VM_INSTALL_DIR}"/lib/vmware-vix + doins -r lib/* + + dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so + + # install headers + insinto /usr/include/vmware-vix + doins include/* + + if use doc; then + dohtml -r doc/* + fi + + # fix permissions + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config + + # create the environment + local envd="${T}/90${PN}" + cat > "${envd}" <<-EOF + PATH='${VM_INSTALL_DIR}/bin' + ROOTPATH='${VM_INSTALL_DIR}/bin' + EOF + doenvd "${envd}" + + # create the configuration + dodir /etc/vmware + + local vmconfig="${T}/config" + if [[ -e ${ROOT}/etc/vmware/config ]] + then + cp -a "${ROOT}"/etc/vmware/config "${vmconfig}" + sed -i -e "/vmware.fullpath/d" "${vmconfig}" + sed -i -e "/vix.libdir/d" "${vmconfig}" + sed -i -e "/vix.config.version/d" "${vmconfig}" + fi + + cat >> "${vmconfig}" <<-EOF + vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" + vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" + vix.config.version = "1" + EOF + + insinto /etc/vmware/ + doins "${vmconfig}" +} + +pkg_postinst() { + ewarn "/etc/env.d was updated. Please run:" + ewarn "env-update && source /etc/profile" +} + +pkg_prerm() { + sed -i -e "/vix.libdir/d" "${ROOT}"/etc/vmware/config +} |