/[gentoo-x86]/app-emulation/open-vm-tools/open-vm-tools-0.0.20100119.226760.ebuild
Gentoo

Contents of /app-emulation/open-vm-tools/open-vm-tools-0.0.20100119.226760.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Feb 27 21:27:33 2010 UTC (4 years, 6 months ago) by vadimk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. Bug 305939.
(Portage version: 2.1.7.17/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20100119.226760.ebuild,v 1.1 2010/02/19 17:53:52 vadimk Exp $
4
5 EAPI="2"
6
7 inherit eutils pam versionator
8
9 MY_DATE="$(get_version_component_range 3)"
10 MY_BUILD="$(get_version_component_range 4)"
11 MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}"
12 MY_P="${PN}-${MY_PV}"
13
14 DESCRIPTION="Opensourced tools for VMware guests"
15 HOMEPAGE="http://open-vm-tools.sourceforge.net/"
16 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
17
18 LICENSE="LGPL-2"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="X doc fuse icu +pic unity xinerama"
22
23 RDEPEND="app-emulation/open-vm-tools-kmod
24 >=dev-libs/glib-2
25 dev-libs/libdnet
26 sys-apps/ethtool
27 sys-process/procps
28 virtual/pam
29 X? (
30 dev-cpp/gtkmm
31 x11-base/xorg-server
32 x11-drivers/xf86-input-vmmouse
33 x11-drivers/xf86-video-vmware
34 x11-libs/gtk+
35 x11-libs/libnotify
36 x11-libs/libX11
37 x11-libs/libXtst
38 )
39 fuse? ( sys-fs/fuse )
40 icu? ( dev-libs/icu )
41 unity? (
42 dev-libs/uriparser
43 x11-libs/libXScrnSaver
44 )
45 xinerama? ( x11-libs/libXinerama )
46 "
47
48 DEPEND="${RDEPEND}
49 dev-util/pkgconfig
50 virtual/linux-sources
51 doc? ( app-doc/doxygen )
52 "
53
54 S="${WORKDIR}/${MY_P}"
55
56 pkg_setup() {
57 use unity && ! use xinerama && die 'The Unity USE flag requires USE="xinerama" as well'
58
59 enewgroup vmware
60 }
61
62 src_prepare() {
63 epatch "${FILESDIR}/default-scripts1.patch"
64 epatch "${FILESDIR}/checkvm-pie-safety.patch"
65 sed -i -e 's/proc-3.2.7/proc/g' configure || die "sed configure failed"
66 sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed"
67 sed -i -e 's:\(TEST_PLUGIN_INSTALLDIR=\).*:\1\$libdir/open-vm-tools/plugins/tests:g' configure || die "sed test_plugin_installdir failed"
68 }
69
70 src_configure() {
71 econf \
72 --with-procps \
73 --with-dnet \
74 --without-kernel-modules \
75 $(use_enable doc docs) \
76 --docdir=/usr/share/doc/${PF} \
77 $(use_with X x) \
78 $(use_with X gtk2) \
79 $(use_with X gtkmm) \
80 $(use_with icu) \
81 $(use_with pic) \
82 $(use_enable unity) \
83 $(use_enable xinerama multimon)
84 }
85
86 src_compile() {
87 emake || die "failed to compile"
88 }
89
90 src_install() {
91 emake DESTDIR="${D}" install || die "failed to install"
92
93 rm "${D}"/etc/pam.d/vmtoolsd
94 pamd_mimic_system vmtoolsd auth account
95
96 rm "${D}"/usr/$(get_libdir)/*.la
97 rm "${D}"/usr/$(get_libdir)/open-vm-tools/plugins/common/*.la
98
99 newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools || die "failed to newinitd"
100 newconfd "${FILESDIR}/open-vm.confd" vmware-tools || die "failed to newconfd"
101
102 if use X;
103 then
104 insinto /etc/xdg/autostart
105 doins "${FILESDIR}/open-vm-tools.desktop" || die "failed to install .desktop"
106
107 elog "To be able to use the drag'n'drop feature of VMware for file"
108 elog "exchange, you need to do this:"
109 elog " Add 'vmware-tools' to your default runlevel."
110 elog " Add the users which should have access to this function"
111 elog " to the group 'vmware'."
112 fi
113 }

  ViewVC Help
Powered by ViewVC 1.1.20