summaryrefslogtreecommitdiff
path: root/gnome-extra/gpaste/gpaste-3.0.2.ebuild
blob: 56540c05b273007188b8e19465e9b9942c412a07 (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
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"
inherit bash-completion-r1 gnome2

DESCRIPTION="Clipboard management system"
HOMEPAGE="http://github.com/Keruspe/GPaste"
SRC_URI="http://www.imagination-land.org/files/gpaste//${P}.tar.xz"
RESTRICT="nomirror"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="applet bash-completion +gnome-shell +vala zsh-completion"

DEPEND=">=dev-libs/glib-2.30:2
	>=sys-devel/gettext-0.17
	>=dev-util/intltool-0.40
	>=x11-libs/gtk+-3.0.0:3
	dev-libs/libxml2
	x11-libs/libxcb
	sys-apps/dbus
	>=dev-libs/gobject-introspection-1.30.0
	>=dev-lang/vala-0.20.0:0.20[vapigen]"
RDEPEND="${DEPEND}
	bash-completion? ( app-shells/bash )
	gnome-shell? ( >gnome-base/gnome-shell-3.3.2 )
	zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"

G2CONF="
	VALAC=$(type -p valac-0.20)
	VAPIGEN=$(type -p vapigen-0.20)
	--disable-schemas-compile
	$(use_enable applet)
	$(use_enable gnome-shell gnome-shell-extension)
	$(use_enable vala)"


REQUIRED_USE="|| ( gnome-shell applet )"

src_install() {
	use bash-completion && dobashcomp data/completions/gpaste
	if use zsh-completion ; then
		insinto /usr/share/zsh/site-functions
		doins data/completions/_gpaste
	fi
	gnome2_src_install
	find ${D} -name '*.la' -exec rm -f {} +
}