commit:     56c1d7b0fbd1c807c4678735400d25a2f54e38ad
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  7 08:03:44 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 08:03:44 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56c1d7b0

sci-geosciences/viking: fix QA issues, bug 643332

Call gnome2_icon_cache_update and xdg_desktop_database_update
to updated caches.

Closes: https://bugs.gentoo.org/643332
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 sci-geosciences/viking/viking-1.6.2-r1.ebuild | 84 +++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/sci-geosciences/viking/viking-1.6.2-r1.ebuild 
b/sci-geosciences/viking/viking-1.6.2-r1.ebuild
new file mode 100644
index 00000000000..3fec473d5bf
--- /dev/null
+++ b/sci-geosciences/viking/viking-1.6.2-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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 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 ~ppc ~x86"
+
+COMMONDEPEND="
+       app-arch/bzip2
+       dev-libs/expat
+       dev-libs/glib:2
+       net-misc/curl
+       sys-libs/zlib
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:2
+       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 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
+}

Reply via email to