commit:     87d46189d7f11b225e51451581592ce8e53af540
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  4 18:56:17 2025 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Mon Aug  4 18:56:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d46189

media-gfx/fotocx: add 25.3

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 media-gfx/fotocx/Manifest           |  1 +
 media-gfx/fotocx/fotocx-25.3.ebuild | 79 +++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/media-gfx/fotocx/Manifest b/media-gfx/fotocx/Manifest
index 19e0fbe399f7..21f32f7a3daa 100644
--- a/media-gfx/fotocx/Manifest
+++ b/media-gfx/fotocx/Manifest
@@ -1,3 +1,4 @@
 DIST fotocx-25.0-source.tar.gz 15651266 BLAKE2B 
e6330541a3a0d341055a326b0ab4e3cc7b79bd80ea1cebab7303302e3ec519fb732f1604fe4fce87de4a9690f0da1399a700a5400c7596bf4810c03a469cd768
 SHA512 
3f4dfdfdd5190599d7294ff10364f382effab5ccc8dde712b467e925c5823cd03bf67a5e85cad2177a194e49431d21b846eed2648a45a8855e922006f69cd4d8
 DIST fotocx-25.1-source.tar.gz 14627082 BLAKE2B 
03bae91fbf4b6df4bd76598ba2b744bfde36d2a1899947b6f8851a9087eed90ef6f1b4a197f7f21c96fe95666bc39d75f748e5686f6282ea36aea508af2bdafa
 SHA512 
d13cf34429c93b38fd90e8c2541865f9ab44f0003750c1a9d3486afca85f1927ccce47ff917a62942b50e404829eeba18243e80e4f1241352bb2ed0807579350
 DIST fotocx-25.2-source.tar.gz 14619329 BLAKE2B 
048e6894fa7ec4f835b247cf59d981e5e3f60bd5d146d8eee8560222980a8a745dbda84be8f1a347383e339614db600ea36a6d69bd1686129be42e081b525a81
 SHA512 
cf4b198db6ace69af4ab4d6991347feb96ea65e16d11837e3b304b97a947f1878d9c5341593cd5af4d7587b3423232a9ff7719d415a647e258759b70b21b07ba
+DIST fotocx-25.3-source.tar.gz 14619475 BLAKE2B 
82a55c164c5a5d4fdf5b9b566a67d153df047ea6736cb0e6d67476fa3dbd8da25166a23c18a826604f5f690abfaea42930abed56cce3185a1bec1b1823c5f571
 SHA512 
d08e88a47d52cfa2286e4030a9d486446d9008c9dd9c76c359e464f2645f88446190fc92390ce08fba22bcc64e649c039930667557011660d16c16379a9b57dc

diff --git a/media-gfx/fotocx/fotocx-25.3.ebuild 
b/media-gfx/fotocx/fotocx-25.3.ebuild
new file mode 100644
index 000000000000..8c904f825206
--- /dev/null
+++ b/media-gfx/fotocx/fotocx-25.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature xdg-utils
+
+DESCRIPTION="Program for improving image files made with a digital camera"
+HOMEPAGE="https://kornelix.net/fotocx/fotocx.html";
+SRC_URI="https://kornelix.net/downloads/downloads/${P}-source.tar.gz";
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+# For required dependencies read doc/README, for required tools read
+# data/userguide [INSTALLATION]. xdg-open (x11-misc/xdg-utils) is an
+# alternative to firefox and chromium-browser. `grep '"which ' * -R`
+# is helpful to report some required tools run via the shell.
+
+DEPEND="
+       media-libs/clutter
+       media-libs/clutter-gtk
+       media-libs/lcms:2
+       media-libs/libjpeg-turbo:=
+       media-libs/libpng:=
+       media-libs/tiff:=
+       media-libs/libchamplain[gtk]
+       x11-libs/gtk+:3"
+RDEPEND="
+       ${DEPEND}
+       media-gfx/dcraw
+       media-libs/exiftool
+       x11-misc/xdg-utils
+"
+
+PATCHES=( "${FILESDIR}/${PN}-24.20-documentation.patch" )
+
+DOCS=()
+HTML_DOCS=()
+
+src_prepare() {
+       sed -i -e "/^DOCDIR/ s/${PN}$/${PF}/" Makefile || die
+       sed -i -e "/^Icon/ s/\.png$//" ${PN}.desktop || die
+       default
+}
+
+src_install() {
+       # For the Help menu items to work, *.html must be in 
/usr/share/doc/${PF},
+       # and README, changelog, copyright, license, etc. must not be 
compressed.
+       emake DESTDIR="${D}" PREFIX="/usr" install
+       rm -f "${D}"/usr/share/doc/${PF}/*.man || die
+       docompress -x /usr/share/doc
+}
+
+pkg_postinst() {
+       optfeature "HEIC & AVIF file support" media-libs/libheif
+       optfeature "additional RAW file support" media-gfx/rawtherapee
+       optfeature "additional RAW file support" media-gfx/darktable
+       optfeature "video thumbnails & playback" media-video/ffmpeg
+       optfeature "copying images to optical media" app-cdr/dvd+rw-tools
+       optfeature "WEBP file support" media-libs/libwebp
+
+       elog
+       elog "Please read the Help > User Guide for details. The source 
location is"
+       elog "/usr/share/fotocx/data/userguide and after running fotocx a copy 
will"
+       elog "be placed at /home/<user>/.fotocx/userguide."
+       elog
+       elog "To play videos, in Tools > Preferences set 'Video File Play 
Command'."
+       elog
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}

Reply via email to