You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.0 KiB
56 lines
1.0 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
5 years ago
|
inherit desktop toolchain-funcs
|
||
13 years ago
|
|
||
|
DESCRIPTION="Tool for adjusting EXIF tags of your photos with a recorded GPS trace"
|
||
8 years ago
|
HOMEPAGE="https://github.com/freefoote/gpscorrelate"
|
||
13 years ago
|
SRC_URI="http://freefoote.dview.net/linux/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~hppa ~x86"
|
||
|
IUSE="doc gtk"
|
||
|
|
||
5 years ago
|
BDEPEND="
|
||
13 years ago
|
app-text/docbook-xml-dtd:4.2
|
||
13 years ago
|
dev-libs/libxslt
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
5 years ago
|
DEPEND="
|
||
|
dev-libs/libxml2:2
|
||
|
media-gfx/exiv2:=
|
||
|
gtk? ( x11-libs/gtk+:2 )
|
||
|
"
|
||
|
DEPEND="${DEPEND}"
|
||
13 years ago
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-makefile.patch"
|
||
|
"${FILESDIR}/${P}-exiv2-0.27.1.patch"
|
||
|
)
|
||
13 years ago
|
|
||
|
src_compile() {
|
||
|
tc-export CC CXX
|
||
|
local opts="gpscorrelate gpscorrelate.1"
|
||
|
use gtk && opts+=" gpscorrelate-gui BUILD_GUI=1"
|
||
|
emake ${opts}
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin ${PN}
|
||
|
if use gtk; then
|
||
|
dobin ${PN}-gui
|
||
|
doicon ${PN}-gui.svg
|
||
|
domenu ${PN}.desktop
|
||
|
fi
|
||
|
if use doc; then
|
||
5 years ago
|
rm doc/gpscorrelate-manpage.xml* || die
|
||
|
local DOCS=()
|
||
|
local HTML_DOCS=( doc/. )
|
||
|
einstalldocs
|
||
13 years ago
|
fi
|
||
|
doman ${PN}.1
|
||
|
}
|