summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gnome-photos/Manifest1
-rw-r--r--media-gfx/gnome-photos/gnome-photos-43.0.ebuild99
2 files changed, 100 insertions, 0 deletions
diff --git a/media-gfx/gnome-photos/Manifest b/media-gfx/gnome-photos/Manifest
index d4e4925d7fac..403934c07303 100644
--- a/media-gfx/gnome-photos/Manifest
+++ b/media-gfx/gnome-photos/Manifest
@@ -1 +1,2 @@
DIST gnome-photos-42.0.tar.xz 2855624 BLAKE2B a980cc2f581f1f6834925426ba3e0e7e6c341d939b2fbe2aa40c737669fb09fcdd8bb64fd0dfbee640d8dd73061281b6b92f97cfb5737cbeca9788c9e01d7fbe SHA512 cddaa84596a180fb2a4d70db65c6e625e3d94bccbdc7bcc83ed577b9306210a2879e3d40f8823a9e097f78caa6fccc53404194e7dce0629db3ebda1aa428b714
+DIST gnome-photos-43.0.tar.xz 2857296 BLAKE2B f7e51fadcf213e9eb08e38629bc137e81afb67d227d2c9ddc6b2cc136eb18f2df7aae91112c61129d0a77439aac773925b2abd65f1267fb4a69ca66f86e72a4d SHA512 003f9bda3aa8a3d72aec960d7377d4df08784a95de66505b77ac2e2a75c44fb772fc560162f0e5195b4c3cb8a648263f2403ecc18648fafdc3e748eccf297e7c
diff --git a/media-gfx/gnome-photos/gnome-photos-43.0.ebuild b/media-gfx/gnome-photos/gnome-photos-43.0.ebuild
new file mode 100644
index 000000000000..8546609fd357
--- /dev/null
+++ b/media-gfx/gnome-photos/gnome-photos-43.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit gnome.org gnome2-utils meson python-any-r1 virtualx xdg
+
+DESCRIPTION="Access, organize and share your photos on GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Photos"
+
+LICENSE="GPL-3+ LGPL-2+ CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="test upnp-av"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ media-libs/babl
+ >=x11-libs/cairo-1.14.0
+ >=x11-libs/gdk-pixbuf-2.36.8:2
+ >=media-libs/gegl-0.4.0:0.4[cairo,raw]
+ sci-geosciences/geocode-glib:2
+ >=media-libs/gexiv2-0.14.0
+ >=dev-libs/glib-2.62.0:2
+ dev-libs/libportal:=[gtk]
+ >=net-libs/gnome-online-accounts-3.8.0:=
+ gnome-base/gsettings-desktop-schemas
+ >=x11-libs/gtk+-3.22.16:3
+ >=dev-libs/libdazzle-3.26.0
+ >=gui-libs/libhandy-1.1.90:1
+ media-libs/libjpeg-turbo:0=
+ >=media-libs/libpng-1.6:0=
+ app-misc/tracker:3
+ sys-apps/dbus
+"
+# >=dev-libs/libgdata-0.17.13:0=[gnome-online-accounts] # Upstream left this commented in meson.build. Probably comes back with the next version
+
+# gnome-online-miners is also used for google, facebook, DLNA - not only upnp-av
+# but out of all the grilo-plugins, only upnp-av gets used, which has a USE flag here,
+# so don't pull it always, but only if USE flag is enabled.
+# tracker-miners gschema used at runtime.
+RDEPEND="${DEPEND}
+ net-misc/gnome-online-miners
+ upnp-av? ( media-plugins/grilo-plugins:0.3[upnp-av] )
+ app-misc/tracker-miners:3
+"
+BDEPEND="
+ dev-libs/appstream-glib
+ dev-libs/libxslt
+ app-text/docbook-xsl-stylesheets
+ dev-util/desktop-file-utils
+ dev-util/gdbus-codegen
+ dev-util/glib-utils
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.8
+ virtual/pkgconfig
+ test? ( $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
+"
+
+DOCS=() # meson installs docs itself
+
+python_check_deps() {
+ use test && python_has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ xdg_environment_reset
+ sed -i -e "/photos_docdir.*=.*join_paths/s/meson.project_name()/'${PF}'/" meson.build
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use test dogtail)
+ -Dflatpak=false
+ -Dinstalled_tests=false
+ -Dmanuals=true
+ )
+ meson_src_configure
+}
+
+src_test() {
+ virtx meson_src_test
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+}