This commit is contained in:
Gerben Jan Dijkman 2022-01-09 15:52:35 +01:00
parent b2302dd296
commit e697a1ad02
7 changed files with 2 additions and 309 deletions

View File

@ -1 +0,0 @@
DIST tracker-miners-3.2.0.tar.xz 4075376 BLAKE2B 77d45eba8238431b0c5c05f58b1369349b30a4e230b39299371709aba3662319d98e4322582644fc858e367b2e59f91fc453ed28a37d1f0261dad717d2856dc5 SHA512 4099d257656a7921f528aa8295d04457f392b6a2e7b9c7ddb29ef8989f71c7ef616be1b415dc1beef9eadd1bb27ce3b4b955714fe1c2a8653d663fc4c1bc9132

View File

@ -1,166 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit gnome.org gnome2-utils meson python-any-r1 systemd xdg
DESCRIPTION="Collection of data extractors for Tracker/Nepomuk"
HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="3"
IUSE="cue exif ffmpeg gif gsf +gstreamer iptc +iso +jpeg networkmanager +pdf +playlist raw +rss seccomp test +tiff upower +xml xmp xps"
REQUIRED_USE="cue? ( gstreamer )" # cue is currently only supported via gstreamer, not ffmpeg
RESTRICT="!test? ( test )"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# 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.62:2
>=app-misc/tracker-3.0:3=
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:= )
networkmanager? ( net-misc/networkmanager:= )
rss? ( >=net-libs/libgrss-0.7:0 )
app-arch/gzip
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/asciidoc
dev-libs/libxslt
dev-util/glib-utils
dev-util/gdbus-codegen
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
test? (
${PYTHON_DEPS}
$(python_gen_any_dep 'dev-python/tappy[${PYTHON_USEDEP}]')
gstreamer? (
media-libs/gstreamer:1.0[introspection]
|| (
media-plugins/gst-plugins-libav:1.0
media-plugins/gst-plugins-openh264:1.0
)
)
)
"
python_check_deps() {
has_version -b "dev-python/tappy[${PYTHON_USEDEP}]"
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_prepare() {
# https://gitlab.gnome.org/GNOME/tracker-miners/-/merge_requests/323
sed -i -e 's:environtment:env:' tests/libtracker-extract/meson.build || die
# 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
fi
xdg_src_prepare
gnome2_environment_reset # sets gstreamer safety variables
}
src_configure() {
local media_extractor="none"
if use gstreamer ; then
media_extractor="gstreamer"
elif use ffmpeg ; then
media_extractor="libav"
fi
local emesonargs=(
-Dtracker_core=system
-Dman=true
-Dextract=true
$(meson_use test functional_tests)
$(meson_use test tests_tap_protocol)
-Dminer_fs=true
$(meson_use rss miner_rss)
-Dwriteback=true
-Dabiword=true
-Dicon=true
-Dmp3=true
-Dps=true
-Dtext=true
-Dunzip_ps_gz_files=true # spawns gunzip
$(meson_feature networkmanager network_manager)
$(meson_feature cue)
$(meson_feature exif)
$(meson_feature gif)
$(meson_feature gsf)
$(meson_feature iptc)
$(meson_feature iso)
$(meson_feature jpeg)
$(meson_feature pdf)
$(meson_feature playlist)
-Dpng=enabled
$(meson_feature raw)
$(meson_feature tiff)
$(meson_feature xml)
$(meson_feature xmp)
$(meson_feature xps)
-Dbattery_detection=$(usex upower upower none)
-Dcharset_detection=icu # enca is a possibility, but right now we have tracker core always dep on icu and icu is preferred over enca
-Dgeneric_media_extractor=${media_extractor}
# gupnp gstreamer_backend is in bad state, upstream suggests to use discoverer, which is the default
-Dsystemd_user_services_dir="$(systemd_get_userunitdir)"
)
meson_src_configure
}
src_test() {
export GSETTINGS_BACKEND="dconf" # Tests require dconf and explicitly check for it (env_reset set it to "memory")
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
}

View File

@ -1 +0,0 @@
DIST tracker-3.2.0.tar.xz 1946936 BLAKE2B 9006b0e3e16e9ad43e9fa7496b2ffaa5d6c99f63217622f802f0d62e0ba267d841520060226a729e0b0ae93284ea69604a5724b9e42e816775a2c9b99b385baa SHA512 45589f997d31c2c81ec70b89ae8319353611516bbcdca0339eef0511461cce4bdf3af13907b245c81d2d9b62e45647b4b1f57ed1dad37fb623fdfcc85639ab50

View File

@ -1,25 +0,0 @@
From c14fa25f2b616b170b453861de87ef21c05dc6c4 Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gmail.com>
Date: Sat, 13 Mar 2021 14:29:58 -0500
Subject: [PATCH] Fix asciidoc manpage.xsl location
---
docs/manpages/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build
index f90c757cf..101cbca16 100644
--- a/docs/manpages/meson.build
+++ b/docs/manpages/meson.build
@@ -32,7 +32,7 @@ foreach m : manpages
command: [xsltproc,
'--output', '@OUTPUT@',
'--stringparam', 'man.authors.section.enabled', '0',
- '/etc/asciidoc/docbook-xsl/manpage.xsl', '@INPUT@'],
+ '/usr/share/asciidoc/docbook-xsl/manpage.xsl', '@INPUT@'],
input: xml,
output: manpage,
install: true,
--
2.26.3

View File

@ -1,110 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
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+"
SLOT="3/0" # libtracker-sparql-3.0 soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="gtk-doc +miners stemmer test"
RESTRICT="!test? ( test )"
PV_SERIES=$(ver_cut 1-2)
RDEPEND="
>=dev-libs/glib-2.52:2
>=sys-apps/dbus-1.3.2
>=dev-libs/gobject-introspection-1.54:=
>=dev-libs/icu-4.8.1.2:=
>=dev-libs/json-glib-1.4
>=net-libs/libsoup-2.40.1:2.4
>=dev-libs/libxml2-2.7
>=dev-db/sqlite-3.29.0
stemmer? ( dev-libs/snowball-stemmer:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
app-text/asciidoc
dev-libs/libxslt
$(vala_depend)
gtk-doc? (
>=dev-util/gtk-doc-1.8
app-text/docbook-xml-dtd:4.1.2
app-text/docbook-xml-dtd:4.5
)
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
test? (
$(python_gen_any_dep 'dev-python/tappy[${PYTHON_USEDEP}]')
)
${PYTHON_DEPS}
"
PDEPEND="miners? ( >=app-misc/tracker-miners-${PV_SERIES} )"
PATCHES=(
"${FILESDIR}"/${PN}-3.1.1-Fix-asciidoc-manpage.xsl-location.patch
)
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
}
python_check_deps() {
use test || return 0
has_version -b "dev-python/tappy[${PYTHON_USEDEP}]"
}
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
-Dbash_completion_dir="$(get_bashcompdir)"
-Dsystemd_user_services_dir="$(systemd_get_userunitdir)"
)
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
}

View File

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
@ -6,7 +6,7 @@ EAPI=7
inherit gnome2-utils meson xdg inherit gnome2-utils meson xdg
DESCRIPTION="A GTK3 camera application that knows how to deal with the media request api" DESCRIPTION="A GTK3 camera application that knows how to deal with the media request api"
HOMEPAGE="https://git.sr.ht/~martijnbraam/megapixels" HOMEPAGE="https://gitlab.com/postmarketOS/megapixels"
SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.gz" SRC_URI="https://gitlab.com/postmarketOS/megapixels/-/archive/${PV}/${P}.tar.gz"
LICENSE="GPL-3" LICENSE="GPL-3"

View File

@ -5,11 +5,7 @@
<email>gjdijkman@gjdwebserver.nl</email> <email>gjdijkman@gjdwebserver.nl</email>
<name>Gerben Jan Dijkman</name> <name>Gerben Jan Dijkman</name>
</maintainer> </maintainer>
<longdescription lang="en">
The final Librem5 keyboard.
</longdescription>
<upstream> <upstream>
<doc>https://source.puri.sm/Librem5/squeekboard</doc>
<bugs-to>https://source.puri.sm/Librem5/squeekboard/-/issues</bugs-to> <bugs-to>https://source.puri.sm/Librem5/squeekboard/-/issues</bugs-to>
</upstream> </upstream>
</pkgmetadata> </pkgmetadata>