Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/fotoxx/
Date: Mon, 02 May 2022 12:45:41
Message-Id: 1651495527.6cf8ee03afba7efe25f5f3eb9f452b0dd5dba404.bkohler@gentoo
1 commit: 6cf8ee03afba7efe25f5f3eb9f452b0dd5dba404
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 12:42:58 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 12:45:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cf8ee03
7
8 media-gfx/fotoxx: update jpeg dep
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 media-gfx/fotoxx/fotoxx-22.15-r1.ebuild | 81 +++++++++++++++++++++++++++++++++
13 1 file changed, 81 insertions(+)
14
15 diff --git a/media-gfx/fotoxx/fotoxx-22.15-r1.ebuild b/media-gfx/fotoxx/fotoxx-22.15-r1.ebuild
16 new file mode 100644
17 index 000000000000..59a36e7f4878
18 --- /dev/null
19 +++ b/media-gfx/fotoxx/fotoxx-22.15-r1.ebuild
20 @@ -0,0 +1,81 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +inherit optfeature xdg-utils
27 +
28 +DESCRIPTION="Program for improving image files made with a digital camera"
29 +HOMEPAGE="https://kornelix.net/fotoxx/fotoxx.html"
30 +SRC_URI="https://kornelix.net/downloads/downloads/${P}.tar.gz"
31 +
32 +LICENSE="GPL-3+"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~arm64 ~x86"
35 +IUSE=""
36 +
37 +# For required dependencies read doc/README, for required tools read
38 +# data/userguide [INSTALLATION]. xdg-open (x11-misc/xdg-utils) is an
39 +# alternative to firefox and chromium-browser. `grep '"which ' * -R`
40 +# is helpful to report some required tools run via the shell.
41 +
42 +DEPEND="
43 + media-libs/clutter
44 + media-libs/clutter-gtk
45 + media-libs/lcms:2
46 + media-libs/libjpeg-turbo:=
47 + media-libs/libpng:0
48 + media-libs/tiff:0
49 + media-libs/libchamplain[gtk]
50 + x11-libs/gtk+:3"
51 +RDEPEND="
52 + ${DEPEND}
53 + media-gfx/dcraw
54 + media-libs/exiftool
55 + x11-misc/xdg-utils
56 +"
57 +
58 +S="${WORKDIR}/${PN}"
59 +
60 +PATCHES=( "${FILESDIR}/${PN}-21.40-documentation.patch" )
61 +
62 +DOCS=()
63 +HTML_DOCS=()
64 +
65 +src_prepare() {
66 + sed -i -e "/^DOCDIR/ s/${PN}$/${PF}/" Makefile || die
67 + default
68 +}
69 +
70 +src_install() {
71 + # For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
72 + # and README, changelog, copyright, license, etc. must not be compressed.
73 + emake DESTDIR="${D}" install
74 + rm -f "${D}"/usr/share/doc/${PF}/*.man || die
75 + docompress -x /usr/share/doc
76 +}
77 +
78 +pkg_postinst() {
79 + optfeature "HEIC file support" media-libs/libheif
80 + optfeature "additional RAW file support" media-gfx/rawtherapee
81 + optfeature "additional RAW file support" media-gfx/darktable
82 + optfeature "video thumbnails & playback" media-video/ffmpeg
83 + optfeature "copying images to optical media" app-cdr/dvd+rw-tools
84 + optfeature "additional panorama support" media-gfx/hugin
85 + optfeature "WEBP file support" media-libs/libwebp
86 +
87 + elog
88 + elog "Please read the Help > User Guide for details. The source location is"
89 + elog "/usr/share/fotoxx/data/userguide and after running fotoxx a copy will"
90 + elog "be placed at /home/<user>/.fotoxx/userguide."
91 + elog
92 + elog "To play videos, in Tools > Preferences set 'Video File Play Command'."
93 + elog
94 + xdg_desktop_database_update
95 + xdg_mimeinfo_database_update
96 +}
97 +
98 +pkg_postrm() {
99 + xdg_desktop_database_update
100 + xdg_mimeinfo_database_update
101 +}