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

Contents of /net-misc/x2goclient/x2goclient-4.0.1.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Oct 22 09:33:26 2014 UTC (5 years, 3 months ago) by voyageur
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, drop old 4.0.1 versions

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

1 # Copyright 1999-2014 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.1.3-r1.ebuild,v 1.1 2014/02/05 13:15:01 voyageur 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 ldap? ( net-nds/openldap )"
23 RDEPEND="${DEPEND}
24 net-misc/nx"
25
26 CLIENT_BUILD=${WORKDIR}/${P}.client_build
27 PLUGIN_BUILD=${WORKDIR}/${P}.plugin_build
28
29 src_prepare() {
30 if ! use ldap; then
31 sed -e "s/-lldap//" -i x2goclient.pro || die
32 sed -e "s/#define USELDAP//" -i x2goclientconfig.h || die
33 fi
34
35 mkdir -p "${CLIENT_BUILD}"
36 use nsplugin && mkdir -p "${PLUGIN_BUILD}"
37 }
38
39 src_configure() {
40 cd "${CLIENT_BUILD}"
41 eqmake4 "${S}"/x2goclient.pro
42
43 if use nsplugin;
44 then
45 cd "${PLUGIN_BUILD}"
46 X2GO_CLIENT_TARGET=plugin eqmake4 "${S}"/x2goclient.pro
47 fi
48 }
49
50 src_compile() {
51 cd "${CLIENT_BUILD}"
52 qt4-r2_src_compile
53
54 if use nsplugin;
55 then
56 cd "${PLUGIN_BUILD}"
57 qt4-r2_src_compile
58 fi
59 }
60
61 src_install() {
62 dobin "${CLIENT_BUILD}"/${PN}
63
64 insinto /usr/share/pixmaps/x2goclient
65 doins -r icons/*
66
67 domenu desktop/${PN}.desktop
68 doman man/man?/*
69
70 if use nsplugin;
71 then
72 # PLUGINS_DIR comes from nsplugins.eclass
73 exeinto /usr/$(get_libdir)/${PLUGINS_DIR}
74 doexe "${PLUGIN_BUILD}"/libx2goplugin.so
75 fi
76
77 emake DESTDIR="${D}" PREFIX=/usr install_pluginprovider
78 }

  ViewVC Help
Powered by ViewVC 1.1.20