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