summaryrefslogtreecommitdiff
blob: e24f548d1846369b780cce4209ac1b36c965e1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-view-open-client/vmware-view-open-client-4.5.0.297975-r1.ebuild,v 1.2 2011/07/25 10:35:12 angelos Exp $

EAPI="4"

inherit eutils autotools versionator

MY_PV=$(replace_version_separator 3 '-' )
MY_P="${PN/vm/VM}-source-${MY_PV}"

DESCRIPTION="Open Source VMware View Client"
HOMEPAGE="http://code.google.com/p/vmware-view-open-client/"
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

COMMON_DEPEND="
	>=dev-libs/boost-1.34.1
	>=dev-libs/icu-3.8.0
	>=dev-libs/libxml2-2.6.0
	>=dev-libs/openssl-0.9.8
	>=net-misc/curl-7.16.0[ssl]
	x11-libs/gtk+:2
"

DEPEND="${COMMON_DEPEND}
	>=dev-util/intltool-0.21
	>=dev-util/pkgconfig-0.9.0
"

RDEPEND="${COMMON_DEPEND}
	>=net-misc/rdesktop-1.4.1
"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	epatch "${FILESDIR}/${P}-linking.patch" \
		"${FILESDIR}"/${P}-curl-headers.patch
	sed -e "s:e.x.p:$(get_version_component_range 1-3):" \
		-e "s:00000:$(get_version_component_range 4):" \
		-i configure.ac
	AT_M4DIR="${AT_M4DIR} -I ${ROOT}/usr/share/aclocal" eautoreconf
}

src_configure() {
	econf \
		--disable-static-icu \
		--enable-nls \
		--with-boost
}