sci-geosciences/viking: make oauth support optional
authorHans de Graaff <graaff@gentoo.org>
Sun, 3 Feb 2019 07:03:07 +0000 (08:03 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sun, 3 Feb 2019 10:03:48 +0000 (11:03 +0100)
Add USE flag for oauth support based on patch by Ed Santiago.

Fixes: https://bugs.gentoo.org/676106
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sci-geosciences/viking/metadata.xml
sci-geosciences/viking/viking-1.7.ebuild

index f615f39e5231f6c96132812714c77c97f53cc757..b43ae0fa4280923702f9a9253ccd634469aeee90 100644 (file)
@@ -21,6 +21,9 @@
     <flag name="mapnik">
       Enable a layer based on <pkg>sci-geosciences/mapnik</pkg>
     </flag>
+    <flag name="oauth">
+      Enable OAuth authentication for OSM
+    </flag>
     <flag name="sqlite">
       Enable MBTiles support based on <pkg>dev-db/sqlite</pkg>
     </flag>
index 793d81149985d25787bdbbe29f81431dfc933a51..2669e50c3bae4119a40756cd3694e658fcf3c0bb 100644 (file)
@@ -7,7 +7,7 @@ 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"
+IUSE="doc +exif libexif geoclue gps +magic mapnik nls oauth sqlite"
 SRC_URI="
        mirror://sourceforge/${PN}/${P}.tar.bz2
        doc? ( mirror://sourceforge/${PN}/${PN}.pdf )"
@@ -22,7 +22,6 @@ COMMONDEPEND="
        dev-libs/expat
        dev-libs/glib:2
        dev-libs/nettle
-       net-libs/liboauth
        net-misc/curl
        sys-libs/zlib
        x11-libs/gdk-pixbuf:2
@@ -32,6 +31,7 @@ COMMONDEPEND="
        exif? ( libexif? ( media-libs/libexif ) !libexif? ( media-libs/gexiv2 ) )
        magic? ( sys-apps/file )
        mapnik? ( sci-geosciences/mapnik )
+       oauth? ( net-libs/liboauth )
        sqlite? ( dev-db/sqlite:3 )
 "
 RDEPEND="${COMMONDEPEND}
@@ -68,6 +68,7 @@ src_configure() {
                $(use_enable magic) \
                $(use_enable mapnik) \
                $(use_enable nls) \
+               $(use_enable oauth) \
                $(use_enable sqlite mbtiles )
 }