blob: 144c066bb68e80180e163152449bdb7b28707d99 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools xdg-utils
DESCRIPTION="GPS data editor and analyzer"
HOMEPAGE="https://github.com/viking-gps/viking/"
IUSE="doc +exif libexif geoclue gps +magic nls oauth sqlite"
SRC_URI="
https://github.com/viking-gps/${PN}/archive/${P}.tar.gz
doc? ( https://github.com/viking-gps/${PN}/releases/download/${P}/${PN}.pdf )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
COMMONDEPEND="
app-arch/bzip2
>=dev-tcltk/expect-5.45.4
dev-libs/expat
dev-libs/glib:2
dev-libs/nettle
net-misc/curl
sys-libs/zlib
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
geoclue? ( >=app-misc/geoclue-2.4.4:2.0 )
gps? ( >=sci-geosciences/gpsd-3.20 )
exif? ( libexif? ( media-libs/libexif ) !libexif? ( media-libs/gexiv2 ) )
magic? ( sys-apps/file )
oauth? ( net-libs/liboauth )
sqlite? ( dev-db/sqlite:3 )
"
RDEPEND="${COMMONDEPEND}
sci-geosciences/gpsbabel
"
DEPEND="${COMMONDEPEND}
app-text/gnome-doc-utils
dev-util/intltool
dev-util/gtk-doc
dev-util/gtk-doc-am
app-text/rarian
dev-libs/libxslt
virtual/pkgconfig
sys-devel/gettext
"
PATCHES=( "${FILESDIR}/${PN}-1.7-no-common.patch" )
S="${WORKDIR}/${PN}-${P}"
src_prepare()
{
default
eautoreconf
}
src_configure() {
econf \
--disable-deprecations \
--with-libcurl \
--with-expat \
--enable-google \
--enable-nettle \
--enable-terraserver \
--enable-expedia \
--enable-openstreetmap \
--enable-bluemarble \
--enable-geonames \
--enable-geocaches \
--disable-dem24k \
--disable-mapnik \
$(use_enable exif geotag) \
$(use_with libexif ) \
$(use_enable geoclue) \
$(use_enable gps realtime-gps-tracking) \
$(use_enable magic) \
$(use_enable nls) \
$(use_enable oauth) \
$(use_enable sqlite mbtiles )
}
src_install() {
default
if use doc; then
dodoc "${DISTDIR}"/${PN}.pdf
fi
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}
|