summaryrefslogtreecommitdiff
blob: 2b88b08c2a509cab4eb90957452e32098899b592 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/gtkvncviewer/gtkvncviewer-0.4.ebuild,v 1.1 2012/07/04 06:08:05 angelos Exp $

EAPI=4
PYTHON_DEPEND="2"

inherit eutils fdo-mime python

DESCRIPTION="A small GTK tool to connect to VNC servers"
HOMEPAGE="https://launchpad.net/gtkvncviewer"
SRC_URI="https://launchpad.net/${PN}/trunk/0.4/+download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-python/gconf-python:2
	dev-python/gnome-keyring-python
	dev-python/pygtk:2
	net-libs/gtk-vnc[python]"
DEPEND="${RDEPEND}"

src_install() {
	dodir /usr/share/gtkvncviewer
	insinto /usr/share/applications
	doins data/gtkvncviewer.desktop
	rm -f data/gtkvncviewer.desktop
	insinto /usr/share/gtkvncviewer
	doins -r locale data gtkvncviewer.py
	doman gtkvncviewer.1
	dodoc AUTHORS CHANGELOG TODO
	make_wrapper gtkvncviewer "/usr/bin/python2 ${PN}.py" "/usr/share/${PN}"
	validate_desktop_entries
}

pkg_postinst() { fdo-mime_desktop_database_update; }
pkg_postrm() { fdo-mime_desktop_database_update; }