Lines 1-47
Link Here
|
1 |
# Copyright 1999-2019 Gentoo Authors |
1 |
# Copyright 1999-2020 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=6 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit desktop toolchain-funcs xdg-utils |
6 |
inherit xdg-utils |
7 |
|
7 |
|
8 |
DESCRIPTION="Program for improving image files made with a digital camera" |
8 |
DESCRIPTION="Program for improving image files made with a digital camera" |
9 |
HOMEPAGE="https://www.kornelix.net/fotoxx/fotoxx.html" |
9 |
HOMEPAGE="https://www.kornelix.net/fotoxx/fotoxx.html" |
10 |
SRC_URI="http://www.kornelix.com/uploads/1/3/0/3/13035936/${P}.tar.gz" |
10 |
SRC_URI="https://kornelix.net/downloads/downloads/${P}.tar.gz" |
11 |
|
11 |
|
12 |
LICENSE="GPL-3" |
12 |
LICENSE="GPL-3+" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="amd64 x86" |
14 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="" |
15 |
IUSE="dvd ffmpeg heif jpeg2k map panorama raw" |
|
|
16 |
|
17 |
# For required dependencies read doc/README, for required tools read |
18 |
# data/userguide [INSTALLATION]. xdg-open (x11-misc/xdg-utils) is an |
19 |
# alternative to firefox and chromium-browser. `grep '"which ' * -R` |
20 |
# is helpful to report some required tools run via the shell. |
16 |
|
21 |
|
17 |
DEPEND=" |
22 |
DEPEND=" |
18 |
media-libs/libpng |
23 |
media-libs/libpng |
19 |
media-libs/tiff |
24 |
media-libs/tiff |
20 |
media-libs/lcms:2 |
25 |
media-libs/lcms:2 |
|
|
26 |
media-libs/libchamplain[gtk] |
27 |
virtual/jpeg |
21 |
x11-libs/gtk+:3" |
28 |
x11-libs/gtk+:3" |
22 |
RDEPEND="${DEPEND} |
29 |
RDEPEND="${DEPEND} |
23 |
media-gfx/ufraw[gtk] |
|
|
24 |
media-gfx/dcraw |
30 |
media-gfx/dcraw |
25 |
media-libs/exiftool |
31 |
media-libs/exiftool |
26 |
x11-misc/xdg-utils" |
32 |
x11-misc/xdg-utils |
|
|
33 |
x11-apps/xgamma |
34 |
x11-apps/xhost |
35 |
x11-terms/xterm |
36 |
dvd? ( app-cdr/dvd+rw-tools ) |
37 |
ffmpeg? ( media-video/ffmpeg ) |
38 |
heif? ( media-libs/libheif ) |
39 |
jpeg2k? ( media-libs/openjpeg:2 ) |
40 |
map? ( media-gfx/fotoxx-maps ) |
41 |
panorama? ( media-gfx/hugin ) |
42 |
raw? ( media-gfx/rawtherapee )" |
27 |
|
43 |
|
28 |
PATCHES=( "${FILESDIR}"/${P}.patch ) |
44 |
S="${WORKDIR}/${PN}" |
|
|
45 |
PATCHES=( "${FILESDIR}"/${P}-documentation.patch ) |
29 |
|
46 |
|
30 |
src_compile() { |
47 |
DOCS=() |
31 |
tc-export CXX |
48 |
HTML_DOCS=() |
32 |
emake |
|
|
33 |
} |
34 |
|
49 |
|
35 |
src_install() { |
50 |
src_install() { |
36 |
# For the Help menu items to work, *.html must be in /usr/share/doc/${PF}, |
51 |
# For the Help menu items to work, *.html must be in /usr/share/doc/${PF}, |
37 |
# and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed |
52 |
# and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed |
38 |
emake DESTDIR="${D}" install |
53 |
emake DESTDIR="${D}" install |
39 |
newmenu desktop ${PN}.desktop |
|
|
40 |
rm -f "${D}"/usr/share/doc/${PF}/*.man || die |
54 |
rm -f "${D}"/usr/share/doc/${PF}/*.man || die |
41 |
docompress -x /usr/share/doc |
55 |
docompress -x /usr/share/doc |
42 |
} |
56 |
} |
43 |
|
57 |
|
44 |
pkg_postinst() { |
58 |
pkg_postinst() { |
|
|
59 |
elog |
60 |
elog "Please read the Help > User Guide for details. The source location is" |
61 |
elog "/usr/share/fotoxx/data/userguide and after running fotoxx a copy will" |
62 |
elog "be placed at /home/<user>/.fotoxx/userguide." |
63 |
elog |
64 |
elog "To play videos, in Tools > Preferences set 'Video File Play Command'." |
65 |
elog |
45 |
xdg_desktop_database_update |
66 |
xdg_desktop_database_update |
46 |
xdg_mimeinfo_database_update |
67 |
xdg_mimeinfo_database_update |
47 |
} |
68 |
} |