# tracker-2.1.7 currently always depends on ICU (theoretically could be libunistring instead); so choose ICU over enca always here for the time being (ICU is preferred)
RDEPEND="
>=dev-libs/glib-2.46:2
>=app-misc/tracker-2.2.0:0=
gstreamer? (
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
media-plugins/gst-plugins-meta:1.0 )
!gstreamer? (
ffmpeg? ( media-video/ffmpeg:0=))
>=sys-apps/dbus-1.3.1
xmp? ( >=media-libs/exempi-2.1.0:=)
raw? ( media-libs/gexiv2 )
>=dev-libs/icu-4.8.1.2:=
cue? ( media-libs/libcue:=)
exif? ( >=media-libs/libexif-0.6 )
gsf? ( >=gnome-extra/libgsf-1.14.24:=)
xps? ( app-text/libgxps )
iptc? ( media-libs/libiptcdata )
jpeg? ( virtual/jpeg:0 )
iso? ( >=sys-libs/libosinfo-0.2.10 )
>=media-libs/libpng-1.2:0=
seccomp? ( >=sys-libs/libseccomp-2.0 )
tiff? ( media-libs/tiff:0 )
xml? ( >=dev-libs/libxml2-2.6 )
pdf? ( >=app-text/poppler-0.16.0[cairo])
playlist? ( >=dev-libs/totem-pl-parser-3:=)
upower? ( >=sys-power/upower-0.9.0 )
sys-libs/zlib:0
gif? ( media-libs/giflib:=)
rss? ( >=net-libs/libgrss-0.7:0 )
app-arch/gzip
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
dev-util/gdbus-codegen
>=dev-util/intltool-0.40.0
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
test? (${PYTHON_DEPS}
gstreamer? (
media-libs/gstreamer:1.0[introspection]
||( media-plugins/gst-plugins-libav:1.0
media-plugins/gst-plugins-openh264:1.0 )
))
"
# intltool-merge manually called in meson.build in 2.3.5; might be properly gone by 3.0
RDEPEND="${RDEPEND}
!>=app-misc/tracker-miners-2.99
" # Incompatible revision for (upcoming) parallel-installable tracker-miners-3 due to autostart; a revision that disables autostart and drops the blocker to be added together with v3
PATCHES=(
"${FILESDIR}"/${PV}-fix-autostart-build.patch
)
pkg_setup(){
use test&& python-any-r1_pkg_setup
}
src_prepare(){
# Avoid gst-inspect calls that may trigger sandbox; instead assume the detection will succeed and add the needed test deps for that
if use gstreamer;then
sed -i -e 's:detect-h264-codec.sh:/bin/true:' tests/functional-tests/meson.build || die
else
sed -i -e 's:detect-h264-codec.sh:/bin/false:' tests/functional-tests/meson.build || die