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/open-vm-tools: open-vm-tools-0.0.20091216.217847-r1.ebuild ChangeLog open-vm-tools-0.0.20091216.217847.ebuild
Date: Sat, 02 Jan 2010 15:03:14
Message-Id: E1NR5VO-00060w-Tk@stork.gentoo.org
1 vadimk 10/01/02 15:03:02
2
3 Modified: ChangeLog
4 Added: open-vm-tools-0.0.20091216.217847-r1.ebuild
5 Removed: open-vm-tools-0.0.20091216.217847.ebuild
6 Log:
7 Bugs 299232, 299233
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.30 app-emulation/open-vm-tools/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 20 Dec 2009 14:05:42 -0000 1.29
24 +++ ChangeLog 2 Jan 2010 15:03:02 -0000 1.30
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-emulation/open-vm-tools
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.29 2009/12/20 14:05:42 vadimk Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.30 2010/01/02 15:03:02 vadimk Exp $
31 +
32 +*open-vm-tools-0.0.20091216.217847-r1 (02 Jan 2010)
33 +
34 + 02 Jan 2010; Vadim Kuznetsov <vadimk@g.o>
35 + -open-vm-tools-0.0.20091216.217847.ebuild,
36 + +open-vm-tools-0.0.20091216.217847-r1.ebuild:
37 + Bugs 299232, 299233
38
39 *open-vm-tools-0.0.20091216.217847 (20 Dec 2009)
40
41
42
43
44 1.1 app-emulation/open-vm-tools/open-vm-tools-0.0.20091216.217847-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20091216.217847-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20091216.217847-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: open-vm-tools-0.0.20091216.217847-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20091216.217847-r1.ebuild,v 1.1 2010/01/02 15:03:02 vadimk Exp $
54
55 EAPI="2"
56
57 inherit eutils pam versionator
58
59 MY_DATE="$(get_version_component_range 3)"
60 MY_BUILD="$(get_version_component_range 4)"
61 MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}"
62 MY_P="${PN}-${MY_PV}"
63
64 DESCRIPTION="Opensourced tools for VMware guests"
65 HOMEPAGE="http://open-vm-tools.sourceforge.net/"
66 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
67
68 LICENSE="LGPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="X doc fuse icu +pic unity xinerama"
72
73 RDEPEND="app-emulation/open-vm-tools-kmod
74 >=dev-libs/glib-2
75 dev-libs/libdnet
76 sys-apps/ethtool
77 sys-process/procps
78 virtual/pam
79 X? (
80 dev-cpp/gtkmm
81 x11-base/xorg-server
82 x11-drivers/xf86-input-vmmouse
83 x11-drivers/xf86-video-vmware
84 x11-libs/gtk+
85 x11-libs/libnotify
86 x11-libs/libX11
87 x11-libs/libXtst
88 )
89 fuse? ( sys-fs/fuse )
90 icu? ( dev-libs/icu )
91 unity? (
92 dev-libs/uriparser
93 x11-libs/libXScrnSaver
94 )
95 xinerama? ( x11-libs/libXinerama )
96 "
97
98 DEPEND="${RDEPEND}
99 dev-util/pkgconfig
100 virtual/linux-sources
101 doc? ( app-doc/doxygen )
102 "
103
104 S="${WORKDIR}/${MY_P}"
105
106 pkg_setup() {
107 use unity && ! use xinerama && die 'The Unity USE flag requires USE="xinerama" as well'
108
109 enewgroup vmware
110 }
111
112 src_prepare() {
113 epatch "${FILESDIR}/default-scripts1.patch"
114 epatch "${FILESDIR}/checkvm-pie-safety.patch"
115 sed -i -e 's/proc-3.2.7/proc/g' configure || die "sed configure failed"
116 sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed"
117 sed -i -e 's:\(TEST_PLUGIN_INSTALLDIR=\).*:\1\$libdir/open-vm-tools/plugins/tests:g' configure || die "sed test_plugin_installdir failed"
118 }
119
120 src_configure() {
121 econf \
122 --with-procps \
123 --with-dnet \
124 --without-kernel-modules \
125 $(use_enable doc docs) \
126 --docdir=/usr/share/doc/${PF} \
127 $(use_with X x) \
128 $(use_with X gtk2) \
129 $(use_with X gtkmm) \
130 $(use_with icu) \
131 $(use_with pic) \
132 $(use_enable unity) \
133 $(use_enable xinerama multimon)
134 }
135
136 src_compile() {
137 emake || die "failed to compile"
138 }
139
140 src_install() {
141 emake DESTDIR="${D}" install || die "failed to install"
142
143 rm "${D}"/etc/pam.d/vmtoolsd
144 pamd_mimic_system vmtoolsd auth account
145
146 rm "${D}"/usr/$(get_libdir)/*.la
147 rm "${D}"/usr/$(get_libdir)/open-vm-tools/plugins/common/*.la
148
149 newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools || die "failed to newinitd"
150 newconfd "${FILESDIR}/open-vm.confd" vmware-tools || die "failed to newconfd"
151
152 if use X;
153 then
154 insinto /etc/xdg/autostart
155 doins "${FILESDIR}/open-vm-tools.desktop" || die "failed to install .desktop"
156
157 elog "To be able to use the drag'n'drop feature of VMware for file"
158 elog "exchange, you need to do this:"
159 elog " Add 'vmware-tools' to your default runlevel."
160 elog " Add the users which should have access to this function"
161 elog " to the group 'vmware'."
162 fi
163 }