From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95B96139694 for ; Tue, 30 May 2017 08:18:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 878F4E0D97; Tue, 30 May 2017 08:18:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4FC36E0D97 for ; Tue, 30 May 2017 08:18:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2675341768 for ; Tue, 30 May 2017 08:18:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35A297459 for ; Tue, 30 May 2017 08:17:59 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1496132273.4361b2e301c458f67d348fcbd928dc69f21c592e.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/x2goclient/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild X-VCS-Directories: net-misc/x2goclient/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 4361b2e301c458f67d348fcbd928dc69f21c592e X-VCS-Branch: master Date: Tue, 30 May 2017 08:17:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 09070b83-6e52-4041-8872-87e952f0f607 X-Archives-Hash: f347cca4568892520be97d5553dccbdc commit: 4361b2e301c458f67d348fcbd928dc69f21c592e Author: Lars Wendler gentoo org> AuthorDate: Tue May 30 08:17:53 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue May 30 08:17:53 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4361b2e3 net-misc/x2goclient: Revbump to add more icons. Permission kindly granted by voyageur. Package-Manager: Portage-2.3.6, Repoman-2.3.2 net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild | 104 +++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild b/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild new file mode 100644 index 00000000000..4774046e76f --- /dev/null +++ b/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit nsplugins qmake-utils + +DESCRIPTION="The X2Go Qt client" +HOMEPAGE="http://www.x2go.org" +SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ldap nsplugin qt5" + +REQUIRED_USE="nsplugin? ( !qt5 )" + +DEPEND=">=net-libs/libssh-0.6.0_rc1 + net-print/cups + x11-libs/libXpm + ldap? ( net-nds/openldap ) + !qt5? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtgui:4 + dev-qt/qtsvg:4 + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + ) +" +RDEPEND="${DEPEND} + net-misc/nx" + +CLIENT_BUILD="${WORKDIR}"/${P}.client_build +PLUGIN_BUILD="${WORKDIR}"/${P}.plugin_build + +src_prepare() { + default + + if ! use ldap; then + sed -e "s/-lldap//" -i x2goclient.pro || die + sed -e "s/#define USELDAP//" -i src/x2goclientconfig.h || die + fi + + mkdir -p "${CLIENT_BUILD}" || die + if use nsplugin; then + mkdir -p "${PLUGIN_BUILD}" || die + fi +} + +src_configure() { + cd "${CLIENT_BUILD}" || die + + if use qt5; then + eqmake5 "${S}"/x2goclient.pro + else + eqmake4 "${S}"/x2goclient.pro + fi + + if use nsplugin; then + cd "${PLUGIN_BUILD}" || die + X2GO_CLIENT_TARGET=plugin eqmake4 "${S}"/x2goclient.pro + fi +} + +src_compile() { + cd "${CLIENT_BUILD}" || die + emake + + if use nsplugin; then + cd "${PLUGIN_BUILD}" || die + emake + fi +} + +src_install() { + dobin "${CLIENT_BUILD}"/${PN} + + local size + for size in 16 32 48 64 128 ; do + doicon -s ${size} res/img/icons/${size}x${size}/${PN}.png + done + newicon -s scalable res/img/icons/hildon/${PN}_hildon.svg ${PN}.svg + + insinto /usr/share/pixmaps + doins res/img/icons/${PN}.xpm + + domenu desktop/${PN}.desktop + doman man/man?/* + + if use nsplugin; then + # PLUGINS_DIR comes from nsplugins.eclass + exeinto /usr/$(get_libdir)/${PLUGINS_DIR} + doexe "${PLUGIN_BUILD}"/libx2goplugin.so + fi + + emake DESTDIR="${D}" PREFIX=/usr install_pluginprovider +}