You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.4 KiB
110 lines
2.4 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{7..9} )
|
||
5 years ago
|
VALA_MIN_API_VERSION="0.40"
|
||
|
|
||
|
inherit bash-completion-r1 gnome.org gnome2-utils linux-info meson python-any-r1 systemd vala xdg
|
||
|
|
||
|
DESCRIPTION="A tagging metadata database, search tool and indexer"
|
||
|
HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
|
||
|
|
||
|
LICENSE="GPL-2+ LGPL-2.1+"
|
||
4 years ago
|
SLOT="3/0" # libtracker-sparql-3.0 soname version
|
||
|
IUSE="gtk-doc +miners stemmer test"
|
||
5 years ago
|
|
||
4 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||
5 years ago
|
|
||
|
PV_SERIES=$(ver_cut 1-2)
|
||
|
|
||
|
RDEPEND="
|
||
4 years ago
|
>=dev-libs/glib-2.52:2
|
||
5 years ago
|
>=sys-apps/dbus-1.3.2
|
||
|
>=dev-libs/gobject-introspection-1.54:=
|
||
|
>=dev-libs/icu-4.8.1.2:=
|
||
|
>=dev-libs/json-glib-1.0
|
||
|
>=net-libs/libsoup-2.40.1:2.4
|
||
|
>=dev-libs/libxml2-2.7
|
||
4 years ago
|
>=dev-db/sqlite-3.29.0
|
||
5 years ago
|
stemmer? ( dev-libs/snowball-stemmer )
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
|
dev-util/glib-utils
|
||
4 years ago
|
app-text/asciidoc
|
||
|
dev-libs/libxslt
|
||
5 years ago
|
$(vala_depend)
|
||
4 years ago
|
gtk-doc? (
|
||
|
>=dev-util/gtk-doc-1.8
|
||
5 years ago
|
app-text/docbook-xml-dtd:4.1.2
|
||
4 years ago
|
app-text/docbook-xml-dtd:4.5
|
||
|
)
|
||
5 years ago
|
>=sys-devel/gettext-0.19.8
|
||
|
virtual/pkgconfig
|
||
4 years ago
|
test? (
|
||
|
$(python_gen_any_dep 'dev-python/tappy[${PYTHON_USEDEP}]')
|
||
|
)
|
||
5 years ago
|
${PYTHON_DEPS}
|
||
|
"
|
||
|
PDEPEND="miners? ( >=app-misc/tracker-miners-${PV_SERIES} )"
|
||
|
|
||
4 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-Fix-asciidoc-manpage.xsl-location.patch
|
||
|
)
|
||
|
|
||
5 years ago
|
function inotify_enabled() {
|
||
|
if linux_config_exists; then
|
||
|
if ! linux_chkconfig_present INOTIFY_USER; then
|
||
|
ewarn "You should enable the INOTIFY support in your kernel."
|
||
|
ewarn "Check the 'Inotify support for userland' under the 'File systems'"
|
||
|
ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
|
||
|
die 'missing CONFIG_INOTIFY'
|
||
|
fi
|
||
|
else
|
||
|
einfo "Could not check for INOTIFY support in your kernel."
|
||
|
fi
|
||
|
}
|
||
|
|
||
4 years ago
|
python_check_deps() {
|
||
|
has_version -b "dev-python/tappy[${PYTHON_USEDEP}]"
|
||
|
}
|
||
|
|
||
5 years ago
|
pkg_setup() {
|
||
|
linux-info_pkg_setup
|
||
|
inotify_enabled
|
||
|
|
||
|
python-any-r1_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
xdg_src_prepare
|
||
|
vala_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local emesonargs=(
|
||
|
$(meson_use gtk-doc docs)
|
||
|
-Dman=true
|
||
|
$(meson_feature stemmer)
|
||
|
-Dunicode_support=icu
|
||
4 years ago
|
-Dbash_completion_dir="$(get_bashcompdir)"
|
||
|
-Dsystemd_user_services_dir="$(systemd_get_userunitdir)"
|
||
5 years ago
|
)
|
||
|
meson_src_configure
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
xdg_pkg_postinst
|
||
|
gnome2_schemas_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
xdg_pkg_postrm
|
||
|
gnome2_schemas_update
|
||
|
}
|