media-gfx/fotocx: add 26.7

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler
2026-08-04 09:37:02 -05:00
parent 7b2625c522
commit 8ddfbc173b
2 changed files with 81 additions and 0 deletions

View File

@@ -3,3 +3,4 @@ DIST fotocx-26.3-source.tar.gz 12834442 BLAKE2B 5c58e5a8d9d82fe7a90eafb98ced694d
DIST fotocx-26.4-source.tar.gz 12875807 BLAKE2B f3f210c6e96ef89e72d30efbb0d2a79135b616e0a4c8f10a759069aa0f5b9774ed3211743fa2454ec3e1d5493c831b301d877095b8b4f2f50608ad9423e84872 SHA512 6d36de7eb653607f9c206369502409f2db3b16c03a148052b9cc980d06519cb89c4d2290aa5055eb58c17e203c8a05fba5ce2b75419811381607ea0163baab9c
DIST fotocx-26.5-source.tar.gz 11428874 BLAKE2B b9f96e4940cd8e3f4ed623e02ae526d85726eb0f7f8b2ad8c89dec527e322d30af2d5367cc8a67920adfb26593ec8d45febebed5ed6be4e9d4dcca4a220e0632 SHA512 922e7404ae3cf963d4d84a7466df08a1ac11dbd96f16f01d23fe598ac4bbc9d47260d789d250ee2963ee4a0b5c43e481e5016a567a020312445c25c615e231e5
DIST fotocx-26.6-source.tar.gz 12991387 BLAKE2B 30d4d88a583e058f18da13102e63d4e2cc5b0b9136580a18fbf7acc7c9c91c77591c7852603deb6065f7668127e979f89b3ea021a3b05b797a4b61753cef98e4 SHA512 fafefaecbb76a7c61ad991a1ad18c7f9c90af7ebd207e859452ff3028299507a82bcf833cf7a301c30edd97bed67818f105cbf6d68472dbc931c5395af54670c
DIST fotocx-26.7-source.tar.gz 12268336 BLAKE2B 458d6cb4794afdf06c71a04f33f804104effb2fc561a7ba1c0d5487299285d47140a9180af5abcb16cc5e0426c3b6dfee53fd2300d0c74274b34ecb810bb161d SHA512 82daa85e7c65fcf6f765044329e1aaa37feac7ea388fabd918f2bf3e93b3981640ba82abfb11cd3acc5bc0dfd9cb451df4249889757e581ba72c7ea3e9d56479

View File

@@ -0,0 +1,80 @@
# Copyright 1999-2026 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/libjxl:=
media-libs/libpng:=
media-libs/tiff:=
net-libs/webkit-gtk:4.1
x11-libs/gtk+:3"
RDEPEND="
${DEPEND}
media-gfx/dcraw
media-libs/exiftool
x11-misc/xdg-utils
"
PATCHES=( "${FILESDIR}/${PN}-26.1-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
}