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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 20 12:09:54 2013 UTC (4 months ago) by vadimk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump

(Portage version: 2.1.11.44/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 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-2012.05.21.724730.ebuild,v 1.2 2012/06/02 15:03:01 vadimk Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib pam user versionator flag-o-matic toolchain-funcs
8
9 MY_PV="$(replace_version_separator 3 '-')"
10 MY_P="${PN}-${MY_PV}"
11
12 DESCRIPTION="Opensourced tools for VMware guests"
13 HOMEPAGE="http://open-vm-tools.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
15
16 LICENSE="LGPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="X doc fuse icu +pic xinerama"
20
21 RDEPEND="app-emulation/open-vm-tools-kmod
22 dev-libs/glib:2
23 dev-libs/libdnet
24 sys-apps/ethtool
25 sys-process/procps
26 virtual/pam
27 X? (
28 dev-cpp/gtkmm:2.4
29 x11-base/xorg-server
30 x11-drivers/xf86-input-vmmouse
31 x11-drivers/xf86-video-vmware
32 x11-libs/gtk+:2
33 x11-libs/libnotify
34 x11-libs/libX11
35 x11-libs/libXtst
36 )
37 fuse? ( sys-fs/fuse )
38 icu? ( dev-libs/icu )
39 xinerama? ( x11-libs/libXinerama )
40 "
41
42 DEPEND="${RDEPEND}
43 doc? ( app-doc/doxygen )
44 virtual/pkgconfig
45 virtual/linux-sources
46 sys-apps/findutils
47 "
48
49 S="${WORKDIR}/${MY_P}"
50
51 pkg_setup() {
52 enewgroup vmware
53 }
54
55 src_prepare() {
56 # Do not filter out Werror
57 # Upstream Bug http://sourceforge.net/tracker/?func=detail&aid=2959749&group_id=204462&atid=989708
58 # sed -i -e 's/CFLAGS=.*Werror/#&/g' configure || die "sed comment out Werror failed"
59 sed -i -e 's:\(TEST_PLUGIN_INSTALLDIR=\).*:\1\$libdir/open-vm-tools/plugins/tests:g' configure || die "sed test_plugin_installdir failed"
60 }
61
62 src_configure() {
63 # http://bugs.gentoo.org/402279
64 if has_version '>=sys-process/procps-3.3.2'; then
65 export CUSTOM_PROCPS_NAME=procps
66 export CUSTOM_PROCPS_LIBS="$($(tc-getPKG_CONFIG) --libs libprocps)"
67 fi
68
69 econf \
70 --with-procps \
71 --with-dnet \
72 --without-kernel-modules \
73 $(use_enable doc docs) \
74 --docdir=/usr/share/doc/${PF} \
75 $(use_with X x) \
76 $(use_with X gtk2) \
77 $(use_with X gtkmm) \
78 $(use_with icu) \
79 $(use_with pic) \
80 $(use_enable xinerama multimon)
81
82 # Bugs 260878, 326761
83 find ./ -name Makefile | xargs sed -i -e 's/-Werror//g' || die "sed out Werror failed"
84 }
85
86 src_install() {
87 default
88
89 rm "${D}"/etc/pam.d/vmtoolsd
90 pamd_mimic_system vmtoolsd auth account
91
92 rm "${D}"/usr/$(get_libdir)/*.la
93 rm "${D}"/usr/$(get_libdir)/open-vm-tools/plugins/common/*.la
94
95 newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools
96 newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools
97
98 exeinto /etc/vmware-tools/scripts/vmware/
99 doexe "${FILESDIR}"/network
100
101 if use X;
102 then
103 fperms 4755 "/usr/bin/vmware-user-suid-wrapper"
104
105 dobin "${S}"/scripts/common/vmware-xdg-detect-de
106
107 insinto /etc/xdg/autostart
108 doins "${FILESDIR}/open-vm-tools.desktop"
109
110 elog "To be able to use the drag'n'drop feature of VMware for file"
111 elog "exchange, please add the users to the 'vmware' group."
112 fi
113 elog "Add 'vmware-tools' service to the default runlevel."
114 }

  ViewVC Help
Powered by ViewVC 1.1.13