blob: b77952134720ff30b7e4bd1557abb755d486692b (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-sendto/nautilus-sendto-2.28.5.ebuild,v 1.3 2010/09/24 21:38:12 pacho Exp $
EAPI="2"
inherit gnome2 multilib eutils autotools
DESCRIPTION="A nautilus extension for sending files to locations"
HOMEPAGE="http://www.gnome.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="bluetooth doc gajim cdr pidgin upnp +mail"
RDEPEND=">=x11-libs/gtk+-2.18
>=dev-libs/glib-2.6
>=gnome-base/nautilus-2.14
>=gnome-base/gconf-2.13.0
bluetooth? (
>=net-wireless/gnome-bluetooth-2.27
>=dev-libs/dbus-glib-0.60 )
cdr? ( >=app-cdr/brasero-2.26.0[nautilus] )
gajim? (
net-im/gajim
>=dev-libs/dbus-glib-0.60 )
mail? ( >=gnome-extra/evolution-data-server-1.5.3 )
pidgin? (
>=net-im/pidgin-2.0.0
>=dev-libs/dbus-glib-0.60 )
upnp? ( >=net-libs/gupnp-0.13.0 )"
DEPEND="${RDEPEND}
sys-devel/gettext
>=dev-util/pkgconfig-0.19
>=dev-util/intltool-0.35
doc? ( >=dev-util/gtk-doc-1.9 )
>=gnome-base/gnome-common-0.12
dev-util/gtk-doc-am"
# Needed for eautoreconf
# >=gnome-base/gnome-common-0.12
# dev-util/gtk-doc-am
DOCS="AUTHORS ChangeLog NEWS README"
_use_plugin() {
if use ${1}; then
G2CONF="${G2CONF}${2:-"${1}"},"
fi
}
pkg_setup() {
G2CONF="${G2CONF}
--with-plugins=removable-devices,"
_use_plugin bluetooth
_use_plugin cdr nautilus-burn
_use_plugin mail evolution
_use_plugin pidgin
_use_plugin gajim
_use_plugin upnp
}
src_prepare() {
gnome2_src_prepare
# Fix a few memory leaks
epatch "${FILESDIR}/${P}-fix-memleaks.patch"
# Fix command-line help glitch
epatch "${FILESDIR}/${P}-commandline-help.patch"
# Remove plugin to use sendto from Evolution
epatch "${FILESDIR}/${PN}-2.28.4-remove-old-evo.patch"
# Remove Empathy plugin since it now lives in Empathy itself.
epatch "${FILESDIR}/${PN}-2.28.4-remove-empathy.patch"
intltoolize --force --copy --automake || die "intltoolize failed"
eautoreconf
}
src_install() {
gnome2_src_install
# Nautilus does not use *.la files
find "${D}/usr/$(get_libdir)/nautilus" -name "*.la" -delete \
|| die "failed to delete *.la files"
}
|