diff options
author | Ben Kohler <bkohler@gentoo.org> | 2024-02-13 11:17:29 -0600 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2024-02-13 11:17:40 -0600 |
commit | 407e80adcddabb2c8c74c9ce9e05343d1c4f44e1 (patch) | |
tree | d7d5d5ce35b5bc67d809919f7ece8eb58d2dc2c8 /media-gfx | |
parent | dev-python/pyroute2: drop outdated runtime dependency on setuptools (diff) | |
download | gentoo-407e80adcddabb2c8c74c9ce9e05343d1c4f44e1.tar.gz gentoo-407e80adcddabb2c8c74c9ce9e05343d1c4f44e1.tar.bz2 gentoo-407e80adcddabb2c8c74c9ce9e05343d1c4f44e1.zip |
media-gfx/fotocx: add 24.11
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/fotocx/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/fotocx/files/fotocx-24.11-documentation.patch | 27 | ||||
-rw-r--r-- | media-gfx/fotocx/fotocx-24.11.ebuild | 81 |
3 files changed, 109 insertions, 0 deletions
diff --git a/media-gfx/fotocx/Manifest b/media-gfx/fotocx/Manifest index f071f96ddca9..b936813da245 100644 --- a/media-gfx/fotocx/Manifest +++ b/media-gfx/fotocx/Manifest @@ -1,2 +1,3 @@ +DIST fotocx-24.11-source.tar.gz 16322678 BLAKE2B 08ef6407c02d7f81717cf798f2cfec39521c60bd59a4f832c2df86fad509fadeb874348cf1cb7446f087fcb2f85c83648a1a5ace3ab4de4fea3409f1465e69d3 SHA512 fb350a17128d52974ebde9672df9919ac5b2d12eb45d61266c2af4bf0ce247b13d62fce576d477f4345186e0674ca46b0d72e97eaee71d08a0303d32d164d5ac 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.11-documentation.patch b/media-gfx/fotocx/files/fotocx-24.11-documentation.patch new file mode 100644 index 000000000000..d968410bc060 --- /dev/null +++ b/media-gfx/fotocx/files/fotocx-24.11-documentation.patch @@ -0,0 +1,27 @@ +diff --git a/Makefile b/Makefile +index 4098035..345a8a2 100644 +--- a/Makefile ++++ b/Makefile +@@ -128,8 +128,7 @@ install: fotocx uninstall + cp -f -R images/* $(DESTDIR)$(IMAGEDIR) + cp -f metainfo/* $(DESTDIR)$(METAINFODIR) + # man page +- gzip -fk -9 man/fotocx.man +- mv -f man/fotocx.man.gz $(DESTDIR)$(MANDIR)/fotocx.1.gz ++ cp man/fotoxx.man $(DESTDIR)$(MANDIR)/fotoxx.1 + # desktop file and icon + cp -f fotocx.desktop $(DESTDIR)$(MENUDIR) + cp -f fotocx.png $(DESTDIR)$(ICONDIR) +diff --git a/zfuncs.cc b/zfuncs.cc +index 3aa6766..1fbedb9 100644 +--- a/zfuncs.cc ++++ b/zfuncs.cc +@@ -6122,7 +6122,7 @@ int zinitapp(ch *appvers, int argc, ch *argv[]) + + 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 + + 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.11.ebuild b/media-gfx/fotocx/fotocx-24.11.ebuild new file mode 100644 index 000000000000..d199d605323b --- /dev/null +++ b/media-gfx/fotocx/fotocx-24.11.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit optfeature xdg-utils + +DESCRIPTION="Program for improving image files made with a digital camera" +HOMEPAGE="https://kornelix.net/fotoxx/fotoxx.html" +SRC_URI="https://kornelix.net/downloads/downloads/${P}-source.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +# 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 +" + +S="${WORKDIR}/${PN}" + +PATCHES=( "${FILESDIR}/${PN}-24.11-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/fotoxx/data/userguide and after running fotoxx a copy will" + elog "be placed at /home/<user>/.fotoxx/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 +} |