summaryrefslogtreecommitdiff
blob: 06e2ce3c90427b04cfde932bfb0c9dd4e7f3080c (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mate-extra/mate-file-manager-sendto/mate-file-manager-sendto-1.6.0.ebuild,v 1.1 2014/03/17 22:39:11 tomwij Exp $

EAPI="5"

GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"

inherit autotools gnome2 versionator

MATE_BRANCH="$(get_version_component_range 1-2)"

SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Caja extension for sending files to locations"
HOMEPAGE="http://www.mate-desktop.org"

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

IUSE="cdr gajim +mail pidgin upnp"

RDEPEND=">=dev-libs/dbus-glib-0.60:0
	>=dev-libs/glib-2.25.9:2
	>=mate-base/mate-file-manager-1.6:0
	>=sys-apps/dbus-1:0
	x11-libs/gdk-pixbuf:2
	>=x11-libs/gtk+-2.18:2
	virtual/libintl:0
	cdr? ( >=app-cdr/brasero-2.32.1:0= )
	gajim? (
		net-im/gajim:0
		>=dev-libs/dbus-glib-0.60:0 )
	pidgin? ( >=dev-libs/dbus-glib-0.60:0 )
	upnp? ( >=net-libs/gupnp-0.13:0= )"

DEPEND="${RDEPEND}
	>=dev-util/intltool-0.35:*
	>=mate-base/mate-common-1.6:0
	sys-devel/gettext:*
	virtual/pkgconfig:*"

src_prepare() {
	# Tarball has no proper build system, should be fixed on next release.
	eautoreconf

	gnome2_src_prepare
}

src_configure() {
	local myconf
	myconf="--with-plugins=removable-devices,"
	use cdr && myconf="${myconf}caja-burn,"
	use mail && myconf="${myconf}emailclient,"
	use pidgin && myconf="${myconf}pidgin,"
	use gajim && myconf="${myconf}gajim,"
	use upnp && myconf="${myconf}upnp,"

	gnome2_src_configure ${myconf} \
		$(use_with gajim)
}

DOCS="AUTHORS ChangeLog NEWS README"