summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2024-04-03 12:12:26 -0500
committerBen Kohler <bkohler@gentoo.org>2024-04-03 12:12:39 -0500
commit561c3f1c400e5cc424a505258d3aa8e00a668947 (patch)
treed2b2a901cf039822a5547b784f76521dfe56a750 /media-gfx/fotocx
parentsys-apps/the_silver_searcher: add myself as a maintainer (diff)
downloadgentoo-561c3f1c400e5cc424a505258d3aa8e00a668947.tar.gz
gentoo-561c3f1c400e5cc424a505258d3aa8e00a668947.tar.bz2
gentoo-561c3f1c400e5cc424a505258d3aa8e00a668947.zip
media-gfx/fotocx: add 24.20
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'media-gfx/fotocx')
-rw-r--r--media-gfx/fotocx/Manifest1
-rw-r--r--media-gfx/fotocx/files/fotocx-24.20-documentation.patch25
-rw-r--r--media-gfx/fotocx/fotocx-24.20.ebuild79
3 files changed, 105 insertions, 0 deletions
diff --git a/media-gfx/fotocx/Manifest b/media-gfx/fotocx/Manifest
index b936813da245..73ea2b197ca9 100644
--- a/media-gfx/fotocx/Manifest
+++ b/media-gfx/fotocx/Manifest
@@ -1,3 +1,4 @@
DIST fotocx-24.11-source.tar.gz 16322678 BLAKE2B 08ef6407c02d7f81717cf798f2cfec39521c60bd59a4f832c2df86fad509fadeb874348cf1cb7446f087fcb2f85c83648a1a5ace3ab4de4fea3409f1465e69d3 SHA512 fb350a17128d52974ebde9672df9919ac5b2d12eb45d61266c2af4bf0ce247b13d62fce576d477f4345186e0674ca46b0d72e97eaee71d08a0303d32d164d5ac
+DIST fotocx-24.20-source.tar.gz 16619855 BLAKE2B d4bcf0fc6aa1be31bb0bff52cf8c0eae6446b929f2c081498504fee6b55fc219adf0ce6856f3b1a57d0e553362311e25bb3c9278e9444c19e8000f0aafd7a66f SHA512 8f95912f8d4c9adcdc1f0eec0540531e1e26cff2a21f8c56737cc2e472b7307bfc925477491ec4c30cf102e8a396287a8c0ff7e0ad3f946672e6fd495a4fb369
DIST fotoxx-23.70-source.tar.gz 16130595 BLAKE2B d5cd0453c7cc568ddc5a8d66d5f79f4a907a52aa0d635cb32701a4293a210d703e05056a1140287d20434c636f5acffc869af135cf8a3f3762ca55e10e102a05 SHA512 3616f3e90e973c872b25607951ebd41f851df45b715cb3c2df982c1f74387d9cbf0ee5fc14f3de4ecb4e3251ba25affe6cd3b5e118bce31ff01c14637d588c5d
DIST fotoxx-23.82-source.tar.gz 16257916 BLAKE2B b985d999003ebf53dea5f4f21bca7ecd451d89a14c98aa5269f892f183e28f01a81a33bf2a92e6cef98a466069b20622e829eee897d5d818a6f27c493de48734 SHA512 1c6ded03207eaf2e890fa642ff6d9e0bfaae551e9ec1169b30f3ef8a4763cda01dddc7e0c62e7da29a397ad22c4702c0613d383804563b065ce334918381bd2d
diff --git a/media-gfx/fotocx/files/fotocx-24.20-documentation.patch b/media-gfx/fotocx/files/fotocx-24.20-documentation.patch
new file mode 100644
index 000000000000..977977dc1428
--- /dev/null
+++ b/media-gfx/fotocx/files/fotocx-24.20-documentation.patch
@@ -0,0 +1,25 @@
+diff -ur fotocx/Makefile fotocx.new/Makefile
+--- fotocx/Makefile 2024-04-01 04:14:12.000000000 -0500
++++ fotocx.new/Makefile 2024-04-03 12:07:21.271052526 -0500
+@@ -123,8 +123,7 @@
+ cp -f fotocx $(DESTDIR)$(BINDIR)
+ cp -f fotocx.desktop $(DESTDIR)$(MENUDIR)
+ cp -f -R doc/* $(DESTDIR)$(DOCDIR)
+- gzip -fk -9 man/fotocx.man
+- mv -f man/fotocx.man.gz $(DESTDIR)$(MANDIR)/fotocx.1.gz
++ cp man/fotocx.man $(DESTDIR)$(MANDIR)/fotocx.1
+ cp -f -R data $(DESTDIR)$(DATADIR)
+ cp -f -R images $(DESTDIR)$(DATADIR)
+ cp -f fotocx.png $(DESTDIR)$(ICONDIR)
+diff -ur fotocx/zfuncs.cc fotocx.new/zfuncs.cc
+--- fotocx/zfuncs.cc 2024-04-01 04:14:12.000000000 -0500
++++ fotocx.new/zfuncs.cc 2024-04-03 12:07:59.543247027 -0500
+@@ -6125,7 +6125,7 @@
+
+ strncatv(zdatadir,199,zprefix,"/share/",zappname,"/data",null); // /prefix/share/appname/data
+ strncatv(zimagedir,199,zprefix,"/share/",zappname,"/images",null); // /prefix/share/appname/images
+- strncatv(zdocdir,199,zprefix,"/share/doc/",zappname,null); // /prefix/share/doc/appname
++ strncatv(zdocdir,199,zprefix,"/share/doc/",zappvers,null); // /prefix/share/doc/appname-version
+
+ ch_time = zstrdup(build_date_time,"zinitapp");
+ if (ch_time[4] == ' ') ch_time[4] = '0'; // replace month day ' d' with '0d'
diff --git a/media-gfx/fotocx/fotocx-24.20.ebuild b/media-gfx/fotocx/fotocx-24.20.ebuild
new file mode 100644
index 000000000000..130da99dcd2c
--- /dev/null
+++ b/media-gfx/fotocx/fotocx-24.20.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 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}" 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
+}