From ab5d50811c0139c3f48b8cbc21e24fc1d61c2af9 Mon Sep 17 00:00:00 2001 From: Ben Kohler Date: Sun, 21 Apr 2024 14:25:42 -0500 Subject: media-gfx/fotocx: don't install to /usr/local Signed-off-by: Ben Kohler --- media-gfx/fotocx/fotocx-24.21-r1.ebuild | 79 +++++++++++++++++++++++++++++++++ media-gfx/fotocx/fotocx-24.21.ebuild | 79 --------------------------------- 2 files changed, 79 insertions(+), 79 deletions(-) create mode 100644 media-gfx/fotocx/fotocx-24.21-r1.ebuild delete mode 100644 media-gfx/fotocx/fotocx-24.21.ebuild diff --git a/media-gfx/fotocx/fotocx-24.21-r1.ebuild b/media-gfx/fotocx/fotocx-24.21-r1.ebuild new file mode 100644 index 000000000000..8eee122865a7 --- /dev/null +++ b/media-gfx/fotocx/fotocx-24.21-r1.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}" 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//.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 +} diff --git a/media-gfx/fotocx/fotocx-24.21.ebuild b/media-gfx/fotocx/fotocx-24.21.ebuild deleted file mode 100644 index 130da99dcd2c..000000000000 --- a/media-gfx/fotocx/fotocx-24.21.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# 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//.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 -} -- cgit v1.2.3-65-gdbad