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