blob: dd440e48f7050bcace4e04e7d3f29263bc81f70a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop toolchain-funcs xdg-utils
DESCRIPTION="Program for improving image files made with a digital camera"
HOMEPAGE="https://www.kornelix.net/fotoxx/fotoxx.html"
SRC_URI="http://www.kornelix.com/uploads/1/3/0/3/13035936/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="
media-libs/libpng
media-libs/tiff
media-libs/lcms:2
x11-libs/gtk+:3"
RDEPEND="${DEPEND}
media-gfx/ufraw[gtk]
media-gfx/dcraw
media-libs/exiftool
x11-misc/xdg-utils"
PATCHES=( "${FILESDIR}"/${P}.patch )
src_compile() {
tc-export CXX
emake
}
src_install() {
# For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
# and README, changelog, translations, edit-menus, KB-shortcuts must not be compressed
emake DESTDIR="${D}" install
newmenu desktop ${PN}.desktop
rm -f "${D}"/usr/share/doc/${PF}/*.man || die
docompress -x /usr/share/doc
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
|