1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- # Copyright 1999-2016 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=6
- MATE_LA_PUNT="yes"
- inherit mate virtualx
- if [[ ${PV} != 9999 ]]; then
- KEYWORDS="~amd64 ~arm ~x86"
- fi
- DESCRIPTION="Caja file manager for the MATE desktop"
- LICENSE="GPL-2 LGPL-2 FDL-1.1"
- SLOT="0"
- IUSE="gtk3 +introspection +mate packagekit xmp"
- COMMON_DEPEND="dev-libs/atk:0
- >=dev-libs/glib-2.36:2
- >=dev-libs/libxml2-2.4.7:2
- gnome-base/dconf:0
- >=gnome-base/gvfs-1.10.1:0[udisks]
- >=mate-base/mate-desktop-1.15.1:0[gtk3(-)=]
- >=media-libs/libexif-0.6.14:0
- x11-libs/cairo:0
- x11-libs/gdk-pixbuf:2
- x11-libs/libICE:0
- x11-libs/libSM:0
- x11-libs/libX11:0
- x11-libs/libXext:0
- x11-libs/libXft:0
- x11-libs/libXrender:0
- >=x11-libs/pango-1.1.2:0
- virtual/libintl:0
- !gtk3? (
- >=dev-libs/libunique-1:1
- >=x11-libs/gtk+-2.24:2[introspection?]
- )
- gtk3? (
- >=dev-libs/libunique-3:3
- >=x11-libs/gtk+-3.0:3[introspection?]
- )
- introspection? ( >=dev-libs/gobject-introspection-0.6.4:= )
- packagekit? ( app-admin/packagekit-base )
- xmp? ( >=media-libs/exempi-1.99.5:2 )
- !!mate-base/mate-file-manager"
- RDEPEND="${COMMON_DEPEND}"
- DEPEND="${COMMON_DEPEND}
- >=dev-lang/perl-5:0=
- dev-util/gdbus-codegen:0
- dev-util/gtk-doc
- dev-util/gtk-doc-am
- >=dev-util/intltool-0.40.1:*
- sys-devel/gettext:*
- virtual/pkgconfig:*"
- PDEPEND="mate? ( >=x11-themes/mate-icon-theme-${MATE_BRANCH} )"
- # TODO: Test fails because Caja is not merged yet:
- # GLib-GIO-ERROR **: Settings schema 'org.mate.caja.preferences' is not installed
- RESTRICT="test"
- src_prepare() {
- # Remove unnecessary CFLAGS.
- sed -i -e 's:-DG.*DISABLE_DEPRECATED::g' \
- configure.ac eel/Makefile.am || die
- mate_src_prepare
- }
- src_configure() {
- mate_src_configure \
- --disable-update-mimedb \
- --with-gtk=$(usex gtk3 3.0 2.0) \
- $(use_enable introspection) \
- $(use_enable packagekit) \
- $(use_enable xmp)
- }
- src_test() {
- unset SESSION_MANAGER
- unset DBUS_SESSION_BUS_ADDRESS
- Xemake check || die "Test phase failed"
- }
- pkg_postinst() {
- mate_pkg_postinst
- elog "Caja can use gstreamer to preview audio files. Just make sure"
- elog "to have the necessary plugins available to play the media type you"
- elog "want to preview."
- }
|