forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caja-extensions-1.10.1-r2.ebuild
80 lines (67 loc) · 1.98 KB
/
caja-extensions-1.10.1-r2.ebuild
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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit eutils gnome2
MATE_BRANCH="$(get_version_component_range 1-2)"
SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Several Caja extensions"
HOMEPAGE="http://www.mate-desktop.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
SENDTO="cdr gajim +mail pidgin upnp"
IUSE="gksu image-converter +open-terminal share +wallpaper ${SENDTO}"
RDEPEND=">=x11-libs/gtk+-2.24:2
>=dev-libs/glib-2.36:2
>=mate-base/caja-1.10:0
virtual/libintl:0
x11-libs/gdk-pixbuf:2
open-terminal? ( >=mate-base/mate-desktop-1.10:0 )
cdr? ( >=app-cdr/brasero-2.32.1:0= )
gajim? (
net-im/gajim:0
>=dev-libs/dbus-glib-0.60:0
>=sys-apps/dbus-1:0
)
gksu? ( x11-libs/gksu )
image-converter? (
|| (
media-gfx/imagemagick
media-gfx/graphicsmagick[imagemagick]
)
)
pidgin? ( >=dev-libs/dbus-glib-0.60:0 )
upnp? ( >=net-libs/gupnp-0.13:0= )"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.18:*
>=mate-base/mate-common-1.10:0
sys-devel/gettext:*
virtual/pkgconfig:*
!!mate-extra/mate-file-manager-open-terminal
!!mate-extra/mate-file-manager-sendto
!!mate-extra/mate-file-manager-image-converter
!!mate-extra/mate-file-manager-share"
src_configure() {
MY_CONF=""
if use cdr || use mail || use pidgin || use gajim || use upnp ; then
MY_CONF="${MY_CONF} --enable-sendto"
MY_CONF="${MY_CONF} --with-sendto-plugins=removable-devices"
use cdr && MY_CONF="${MY_CONF},caja-burn"
use mail && MY_CONF="${MY_CONF},emailclient"
use pidgin && MY_CONF="${MY_CONF},pidgin"
use gajim && MY_CONF="${MY_CONF},gajim"
use upnp && MY_CONF="${MY_CONF},upnp"
else
MYCONF="${MY_CONF} --disable-sendto"
fi
gnome2_src_configure ${MY_CONF} \
$(use_enable gksu) \
$(use_enable image-converter) \
$(use_enable open-terminal) \
$(use_enable share) \
$(use_enable wallpaper)
}
DOCS="AUTHORS ChangeLog NEWS README"