/[gentoo-x86]/net-misc/x2goclient/x2goclient-4.0.2.0.ebuild
Gentoo

Contents of /net-misc/x2goclient/x2goclient-4.0.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Feb 20 12:57:37 2015 UTC (4 years, 9 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -2 lines
Add missing x11-libs/libXpm dep, thanks Stefan Junker <code@stefanjunker.de> in bug #538114

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key C74525F2)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/x2goclient/x2goclient-4.0.2.0.ebuild,v 1.3 2014/06/14 22:15:17 zlogene Exp $
4
5 EAPI=5
6 inherit eutils nsplugins qt4-r2
7
8 DESCRIPTION="The X2Go Qt client"
9 HOMEPAGE="http://www.x2go.org"
10 SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="ldap nsplugin"
16
17 DEPEND=">=net-libs/libssh-0.6.0_rc1
18 net-print/cups
19 dev-qt/qtcore:4[ssl]
20 dev-qt/qtgui:4
21 dev-qt/qtsvg:4
22 x11-libs/libXpm
23 ldap? ( net-nds/openldap )"
24 RDEPEND="${DEPEND}
25 net-misc/nx"
26
27 CLIENT_BUILD=${WORKDIR}/${P}.client_build
28 PLUGIN_BUILD=${WORKDIR}/${P}.plugin_build
29
30 src_prepare() {
31 if ! use ldap; then
32 sed -e "s/-lldap//" -i x2goclient.pro || die
33 sed -e "s/#define USELDAP//" -i x2goclientconfig.h || die
34 fi
35
36 mkdir -p "${CLIENT_BUILD}"
37 use nsplugin && mkdir -p "${PLUGIN_BUILD}"
38 }
39
40 src_configure() {
41 cd "${CLIENT_BUILD}"
42 eqmake4 "${S}"/x2goclient.pro
43
44 if use nsplugin;
45 then
46 cd "${PLUGIN_BUILD}"
47 X2GO_CLIENT_TARGET=plugin eqmake4 "${S}"/x2goclient.pro
48 fi
49 }
50
51 src_compile() {
52 cd "${CLIENT_BUILD}"
53 qt4-r2_src_compile
54
55 if use nsplugin;
56 then
57 cd "${PLUGIN_BUILD}"
58 qt4-r2_src_compile
59 fi
60 }
61
62 src_install() {
63 dobin "${CLIENT_BUILD}"/${PN}
64
65 insinto /usr/share/pixmaps/x2goclient
66 doins -r icons/*
67
68 domenu desktop/${PN}.desktop
69 doman man/man?/*
70
71 if use nsplugin;
72 then
73 # PLUGINS_DIR comes from nsplugins.eclass
74 exeinto /usr/$(get_libdir)/${PLUGINS_DIR}
75 doexe "${PLUGIN_BUILD}"/libx2goplugin.so
76 fi
77
78 emake DESTDIR="${D}" PREFIX=/usr install_pluginprovider
79 }

  ViewVC Help
Powered by ViewVC 1.1.20