summaryrefslogtreecommitdiff
path: root/media-gfx/fotema
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/fotema')
-rw-r--r--media-gfx/fotema/Manifest3
-rw-r--r--media-gfx/fotema/fotema-1.10.0.ebuild85
-rw-r--r--media-gfx/fotema/metadata.xml11
3 files changed, 99 insertions, 0 deletions
diff --git a/media-gfx/fotema/Manifest b/media-gfx/fotema/Manifest
new file mode 100644
index 000000000000..5291f87bbe5e
--- /dev/null
+++ b/media-gfx/fotema/Manifest
@@ -0,0 +1,3 @@
+DIST fotema-1.10.0.tar.xz 78681568 BLAKE2B 8956415b4e605b6c4cac12e8cd3d3179bace74ea0b5bc17bbede1d3ccc87c321cca09e6d42794c2568e2840c80333df54174d37f70368732e75657ee28d54e37 SHA512 28e1780a34f6bb655a7add708088ec4b6e42207f55055dd1011c6da9b5ea52407040cb5d02c4dff5d2ec2531ec94d02191d02ed1d29cebe64ff8a8e85f9cd0d7
+EBUILD fotema-1.10.0.ebuild 1597 BLAKE2B fc03375e847c2e1ad0f52afd0924af1b38342c1d56662f6e676147a5c747e566a331eba397682ed676633ab16c853c787fb16dfbefead29ba59a286a6379879a SHA512 ad45bfa7ea9742bb828bbc332820d51f7c4ee8a3e9c44cc50ba147359ca31ae22797c586a7f4f8236d124e7c7f38ebfa560e03e7974a5fbcef91731e4819a430
+MISC metadata.xml 326 BLAKE2B 4ae1a2fadba80e1886d73fb01d493fbbaabae2b97dbffaa10d46e0dbec690e3cb6f8e604675aeb9d0167e50d53cb3f1ffcc2d2ec6c6aed14c36acfe8d6bc31bb SHA512 1f8f3199af710dd344962c425a5af0936be2f52cb41123bee1aba249c356c5c0cb74f3ac6ff7f0fdf71a7e6f8552269abb20cda7d6685e3f21fd5e95436bf552
diff --git a/media-gfx/fotema/fotema-1.10.0.ebuild b/media-gfx/fotema/fotema-1.10.0.ebuild
new file mode 100644
index 000000000000..2587ce67c83e
--- /dev/null
+++ b/media-gfx/fotema/fotema-1.10.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cargo gnome2-utils meson xdg-utils
+
+DESCRIPTION="Photo gallery for Linux"
+HOMEPAGE="https://github.com/blissd/fotema"
+SRC_URI="
+ https://github.com/blissd/fotema/releases/download/v${PV}/${P}.tar.xz
+"
+
+# see LICENSES/
+LICENSE="
+ CC-BY-2.0 CC-BY-4.0 CC-BY-NC-SA-4.0 CC-BY-SA-4.0 CC0-1.0
+ FDL-1.3+ GPL-3+ MIT
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >=dev-libs/glib-2.66:2
+ >=gui-libs/gtk-4.0.0:4
+"
+# indirect deps via crates
+DEPEND+="
+ dev-libs/openssl:=
+ gui-libs/libadwaita
+ media-libs/fontconfig
+ media-libs/graphene
+ media-libs/lcms:2
+ media-libs/libshumate:=
+ media-libs/opencv:=[contribdnn]
+ media-video/ffmpeg:=
+ sci-libs/onnx
+ sys-libs/libseccomp
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/pango
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ dev-libs/glib:2
+"
+
+ECARGO_VENDOR=${S}/vendor
+
+QA_FLAGS_IGNORED="/usr/bin/fotema"
+
+src_prepare() {
+ default
+ sed -i -e "/i18ndir =/s:'i18n':'share' / 'fotema' / &:" meson.build || die
+}
+
+src_configure() {
+ cat >> "${ECARGO_HOME}/config.toml" <<-EOF || die
+
+ [source."git+https://github.com/blissd/rust-faces.git?branch=patch"]
+ git = "https://github.com/blissd/rust-faces.git"
+ branch = "patch"
+ replace-with = "gentoo"
+ EOF
+
+ local emesonargs=(
+ -Dprofile=$(usex debug development default)
+ )
+
+ meson_src_configure
+ ln -s "${CARGO_HOME}" "${BUILD_DIR}/cargo-home" || die
+
+ export ORT_STRATEGY=system
+}
+
+pkg_postinst() {
+ gnome2_schemas_update
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+ xdg_icon_cache_update
+}
diff --git a/media-gfx/fotema/metadata.xml b/media-gfx/fotema/metadata.xml
new file mode 100644
index 000000000000..d5e5775afa5a
--- /dev/null
+++ b/media-gfx/fotema/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">blissd/fotema</remote-id>
+ </upstream>
+</pkgmetadata>