summaryrefslogtreecommitdiff
blob: 982684d854bbd0cf789cece93341a1b12136356a (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

DESCRIPTION="Tool for adjusting EXIF tags of your photos with a recorded GPS trace"
HOMEPAGE="https://dfandrich.github.io/gpscorrelate/"
SRC_URI="https://github.com/dfandrich/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
IUSE="gtk"

BDEPEND="
	app-text/docbook-xml-dtd:4.2
	dev-libs/libxslt
	virtual/pkgconfig
"
DEPEND="
	dev-libs/libxml2:2
	media-gfx/exiv2:=
	gtk? ( x11-libs/gtk+:3 )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${P}-desktop-pass-validation.patch"
	"${FILESDIR}/${P}-respect-users-flags.patch"
)

src_compile() {
	emake gpscorrelate
	use gtk && emake gpscorrelate-gui

}

src_install() {
	dobin ${PN}
	if use gtk; then
		dobin ${PN}-gui
		doicon -s scalable ${PN}-gui.svg
		domenu ${PN}.desktop
	fi
	dodoc doc/*.html doc/*.png doc/*.xml
	einstalldocs
	doman doc/${PN}.1
}