sci-geosciences/viking: add 1.7
authorHans de Graaff <graaff@gentoo.org>
Tue, 22 Jan 2019 16:27:18 +0000 (17:27 +0100)
committerHans de Graaff <graaff@gentoo.org>
Tue, 22 Jan 2019 16:27:42 +0000 (17:27 +0100)
Fixes: https://bugs.gentoo.org/658886
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sci-geosciences/viking/Manifest
sci-geosciences/viking/metadata.xml
sci-geosciences/viking/viking-1.7.ebuild [new file with mode: 0644]

index 9b3086ab67055a88ce15075b656791b297d564c6..3660ff02b1e025703acf176eb10c56d5736b14d1 100644 (file)
@@ -1,2 +1,3 @@
 DIST viking-1.6.2.tar.bz2 3324897 BLAKE2B ef3ab1d60d6cdca514776aaf59d01dedd063c8850ad842d7cbd23c321304b51ccceaa9e5c4f702afc56819e557b28a7ca2b3242ae2fa207e172f7cfdfbba0c45 SHA512 91f82aa1c0a7ab80990d501767ff0bf74c1d6153162e6213fc712e6a27fb465f89adf002e389a39fc51033f36f1b2ec5f05d20af328e5342dfc1158b8a9964f8
+DIST viking-1.7.tar.bz2 3438343 BLAKE2B 2fbf154c94a0bc745e353dd07e67424b5dd27fab1e0158cac4afe2bf8e7d0d9e1d452b3275219fdd8599ebf2044c17267899f2b0508fc36f274557c1db253320 SHA512 ff26cd808b407af5cb7c3cebed4c550e0c28ac1871497c2cedd09f7e1e72bd24ef0048e6e5d587aa9b03cb1860c3d3afcbe62308ade2179dea4b5f9668d05600
 DIST viking.pdf 383200 BLAKE2B 388129023e62008de2d2c402a72aa1e4a1834f99e6666bb9deedb5f5c32e8b94edeadf5a40e7b1f941aacc0057d4dcfbaf13c3098eb4efa02e3a1a8e00288201 SHA512 481c88afd43783475366d41cd46a7fa5fdbcd20fec27b3ce286fb8abe1e9efbb4164def0d19fca2380fa95b5b97e9472f25ff5e10f8d95261e85b7c4a52d29ee
index 39d38e113b0a665e805857040b9e2b8aeda8b91f..f615f39e5231f6c96132812714c77c97f53cc757 100644 (file)
@@ -9,6 +9,9 @@
     <name>Gentoo Geosciences Project</name>
   </maintainer>
   <use>
+    <flag name="geoclue">
+      Use <pkg>app-misc/geoclue</pkg> to determine current location
+    </flag>
     <flag name="libexif">
       Use <pkg>media-libs/libexif</pkg> for EXIF support
     </flag>
diff --git a/sci-geosciences/viking/viking-1.7.ebuild b/sci-geosciences/viking/viking-1.7.ebuild
new file mode 100644 (file)
index 0000000..1def6e3
--- /dev/null
@@ -0,0 +1,87 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils
+
+DESCRIPTION="GPS data editor and analyzer"
+HOMEPAGE="https://sourceforge.net/projects/viking/"
+IUSE="doc +exif libexif geoclue gps +magic mapnik nls sqlite"
+SRC_URI="
+       mirror://sourceforge/${PN}/${P}.tar.bz2
+       doc? ( mirror://sourceforge/${PN}/${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
+       net-misc/curl
+       sys-libs/zlib
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:2
+       geoclue? ( app-misc/geoclue:2.0 )
+       gps? ( >=sci-geosciences/gpsd-2.96 )
+       exif? ( libexif? ( media-libs/libexif ) !libexif? ( media-libs/gexiv2 ) )
+       magic? ( sys-apps/file )
+       mapnik? ( sci-geosciences/mapnik )
+       sqlite? ( dev-db/sqlite:3 )
+"
+RDEPEND="${COMMONDEPEND}
+       sci-geosciences/gpsbabel
+"
+DEPEND="${COMMONDEPEND}
+       app-text/gnome-doc-utils
+       dev-util/intltool
+       dev-util/gtk-doc-am
+       app-text/rarian
+       dev-libs/libxslt
+       virtual/pkgconfig
+       sys-devel/gettext
+"
+
+src_configure() {
+       econf \
+               --disable-deprecations \
+               --with-libcurl \
+               --with-expat \
+               --enable-google \
+               --enable-terraserver \
+               --enable-expedia \
+               --enable-openstreetmap \
+               --enable-bluemarble \
+               --enable-geonames \
+               --enable-geocaches \
+               --disable-dem24k \
+               $(use_enable exif geotag) \
+               $(use_with libexif ) \
+               $(use_enable geoclue) \
+               $(use_enable gps realtime-gps-tracking) \
+               $(use_enable magic) \
+               $(use_enable mapnik) \
+               $(use_enable nls) \
+               $(use_enable sqlite mbtiles )
+}
+
+src_install() {
+       default
+       if use doc; then
+               insinto /usr/share/doc/${PF}
+               doins "${DISTDIR}"/${PN}.pdf
+       fi
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       gnome2_icon_cache_update
+}