summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-06-26 13:53:55 +0200
committerHans de Graaff <graaff@gentoo.org>2024-06-26 13:55:04 +0200
commit94b3774fa74e57354acc7a747de56984103b3af6 (patch)
tree7653795d33904124b24e025ab94145a51a918f58 /sci-geosciences
parentnet-analyzer/monitoring-plugins: remove obsolete patches (diff)
downloadgentoo-94b3774fa74e57354acc7a747de56984103b3af6.tar.gz
gentoo-94b3774fa74e57354acc7a747de56984103b3af6.tar.bz2
gentoo-94b3774fa74e57354acc7a747de56984103b3af6.zip
sci-geosciences/viking: backport compilation fix
Closes: https://bugs.gentoo.org/930262 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/viking/files/viking-1.10-terraserver.patch31
-rw-r--r--sci-geosciences/viking/viking-1.10.ebuild5
2 files changed, 34 insertions, 2 deletions
diff --git a/sci-geosciences/viking/files/viking-1.10-terraserver.patch b/sci-geosciences/viking/files/viking-1.10-terraserver.patch
new file mode 100644
index 000000000000..143f80af838e
--- /dev/null
+++ b/sci-geosciences/viking/files/viking-1.10-terraserver.patch
@@ -0,0 +1,31 @@
+From 71e5d6bb1b2f9481788ce7d54d5124f468515852 Mon Sep 17 00:00:00 2001
+From: Rob Norris <rw_norris@hotmail.com>
+Date: Thu, 24 Mar 2022 19:26:37 +0000
+Subject: [PATCH] Maintain terraserver code building
+
+---
+ src/terraservermapsource.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/terraservermapsource.c b/src/terraservermapsource.c
+index 8d9edfac..0e8cf09a 100644
+--- a/src/terraservermapsource.c
++++ b/src/terraservermapsource.c
+@@ -32,7 +32,7 @@ static gboolean _is_mbtiles ( VikMapSource *self );
+
+ static gchar *_get_uri( VikMapSourceDefault *self, MapCoord *src );
+ static gchar *_get_hostname( VikMapSourceDefault *self );
+-static DownloadFileOptions *_get_download_options( VikMapSourceDefault *self );
++static DownloadFileOptions *_get_download_options( VikMapSourceDefault *self, MapCoord *src );
+
+ /* FIXME Huge gruik */
+ static DownloadFileOptions terraserver_options = { FALSE, FALSE, NULL, 0, NULL, NULL, 0, a_check_map_file, NULL, FALSE, FALSE, NULL };
+@@ -247,7 +247,7 @@ _get_hostname( VikMapSourceDefault *self )
+ }
+
+ static DownloadFileOptions *
+-_get_download_options( VikMapSourceDefault *self )
++_get_download_options( VikMapSourceDefault *self, MapCoord *src )
+ {
+ g_return_val_if_fail (TERRASERVER_IS_MAP_SOURCE(self), NULL);
+
diff --git a/sci-geosciences/viking/viking-1.10.ebuild b/sci-geosciences/viking/viking-1.10.ebuild
index 35fb8f0196c1..f3cde20cb986 100644
--- a/sci-geosciences/viking/viking-1.10.ebuild
+++ b/sci-geosciences/viking/viking-1.10.ebuild
@@ -7,14 +7,15 @@ 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"
SRC_URI="
https://github.com/viking-gps/${PN}/archive/${P}.tar.gz
doc? ( https://github.com/viking-gps/${PN}/releases/download/${P}/${PN}.pdf )"
+S="${WORKDIR}/${PN}-${P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE="doc +exif libexif geoclue gps +magic nls oauth"
COMMONDEPEND="
app-arch/bzip2
@@ -47,7 +48,7 @@ DEPEND="${COMMONDEPEND}
sys-devel/gettext
"
-S="${WORKDIR}/${PN}-${P}"
+PATCHES=( "${FILESDIR}/${P}-terraserver.patch" )
src_prepare() {
default