media-gfx/fotocx: add 25.5

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler 2025-11-28 12:44:30 -06:00
parent ce2de42b3e
commit e88927e31e
No known key found for this signature in database
GPG Key ID: 7A85BDA4D57605C7
2 changed files with 80 additions and 0 deletions

View File

@ -3,3 +3,4 @@ DIST fotocx-25.1-source.tar.gz 14627082 BLAKE2B 03bae91fbf4b6df4bd76598ba2b744bf
DIST fotocx-25.2-source.tar.gz 14619329 BLAKE2B 048e6894fa7ec4f835b247cf59d981e5e3f60bd5d146d8eee8560222980a8a745dbda84be8f1a347383e339614db600ea36a6d69bd1686129be42e081b525a81 SHA512 cf4b198db6ace69af4ab4d6991347feb96ea65e16d11837e3b304b97a947f1878d9c5341593cd5af4d7587b3423232a9ff7719d415a647e258759b70b21b07ba
DIST fotocx-25.3-source.tar.gz 14619475 BLAKE2B 82a55c164c5a5d4fdf5b9b566a67d153df047ea6736cb0e6d67476fa3dbd8da25166a23c18a826604f5f690abfaea42930abed56cce3185a1bec1b1823c5f571 SHA512 d08e88a47d52cfa2286e4030a9d486446d9008c9dd9c76c359e464f2645f88446190fc92390ce08fba22bcc64e649c039930667557011660d16c16379a9b57dc
DIST fotocx-25.4-source.tar.gz 14620597 BLAKE2B 9324722b96ed793a0a967b7246b9757b678ac9f67bf355cad069d4f220c053ff9174a7737b8832908a21999573b2ae28f81d09bebd980688bffe4c9ce8c625d5 SHA512 906ffc71abd2ec888e1e3b258892a11a3900abe6698dc1297c51d813a46bfca74cae034c9981a5bbc3106fc3148a910b3096e6aca0d0684b65b0ab2bd428b7e3
DIST fotocx-25.5-source.tar.gz 14619485 BLAKE2B 0cca7ee9cf7ed735647236586f445d7f8be19a84c708389bb04e5f806396a18f3cf6d5534cc91542d347957b5b4eb6960117b98771832f9db7e3c0b83d99ffba SHA512 d801a99cc498cca55b0d4c45e749d2bc8d0dca9f4b7f15e0c03ea026908153e5bf27e447b73ddbfba3cb04e2c0ccafc0b2dd3b87fbd86c6797c6b8d39e027a18

View File

@ -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
}