# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit gnome2-utils DESCRIPTION="Set of plugins for Remmina GTK+ RDP, VNC, XDMCP and SSH client" HOMEPAGE="http://remmina.sourceforge.net/" if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://remmina.git.sourceforge.net/gitroot/remmina/remmina" SRC_URI="" inherit git autotools else SRC_URI="mirror://sourceforge/remmina/${P}.tar.gz" fi LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="nls nx rdesktop ssh telepathy vnc xdmcp" RDEPEND=">=net-misc/remmina-0.8.0 nls? ( virtual/libintl ) nx? ( net-misc/nx ) rdesktop? ( =net-misc/freerdp-9999 ) xdmcp? ( x11-base/xorg-server[kdrive] ) ssh? ( net-libs/libssh[sftp] ) vnc? ( net-libs/libvncserver )" DEPEND="${RDEPEND} dev-util/intltool dev-util/pkgconfig nls? ( sys-devel/gettext ) telepathy? ( >=net-libs/telepathy-glib-0.9.0 ) " src_prepare() { cd "${S}/remmina-plugins" intltoolize --force --copy --automake eautoreconf } src_configure() { cd "${S}/remmina-plugins" local myconf="--disable-dependency-tracking" if use nx; then if ! use ssh; then myconf="${myconf} --disable-nx" ewarn "nx support requires ssh." ewarn "nx support will not be included." else myconf="${myconf} --enable-nx" fi else myconf="${myconf} --disable-nx" fi econf \ ${myconf} \ $(use_enable nls) \ $(use_enable rdesktop rdp) \ $(use_enable ssh) \ $(use_enable telepathy) \ $(use_enable vnc ) \ $(use_enable xdmcp) } src_install() { cd "${S}/remmina-plugins" emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog README } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { gnome2_icon_cache_update } pkg_postrm() { gnome2_icon_cache_update }