valabind: update to 1.7.2.

This commit is contained in:
Nathan Owens 2020-12-01 14:34:23 -06:00 committed by Érico Nogueira Rolim
parent bd6c814ba2
commit e2eda624e3
4 changed files with 28 additions and 72 deletions

View file

@ -0,0 +1,25 @@
From 70e8b9f2bc718eeb5642a6680fd0525baaadc6c1 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Tue, 1 Dec 2020 14:40:31 -0600
Subject: vala-0.50 fix
---
valabindwriter.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git valabindwriter.vala valabindwriter.vala
index 5b71abd..d9e36fd 100644
--- valabindwriter.vala
+++ valabindwriter.vala
@@ -36,7 +36,7 @@ public class ValabindWriter : CodeVisitor {
#if VALA_0_50
// required to avoid ugly runtime errors
#else
- context.profile = Profile.GOBJECT;
+ context.set_target_profile(Profile.GOBJECT);
#endif
}
--
2.29.2

View file

@ -1,44 +0,0 @@
From 9d4fb181e24346a8c5d570290fa9892ce10c8c3b Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Thu, 6 Feb 2020 09:45:17 +0100
Subject: [PATCH] Fix build with Vala 0.48
---
gowriter.vala | 4 ++++
nodeffiwriter.vala | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/gowriter.vala b/gowriter.vala
index 56d9fbe..0fb09a6 100644
--- gowriter.vala
+++ gowriter.vala
@@ -214,7 +214,11 @@ public class GoNamer {
}
private string mangle_datatype(DataType d) {
+#if VALA_0_48
+ string ret = d.type_symbol.name; // i think should unify with get_type_declaration?
+#else
string ret = d.data_type.name; // i think should unify with get_type_declaration?
+#endif
if (d.get_type_arguments().size > 0) {
foreach(var dd in d.get_type_arguments()) {
ret += "_";
diff --git a/nodeffiwriter.vala b/nodeffiwriter.vala
index 84fede0..eba6329 100644
--- nodeffiwriter.vala
+++ nodeffiwriter.vala
@@ -85,8 +85,13 @@ public class NodeFFIWriter : ValabindWriter {
string _type = type.to_string ();
string local_ns_pfx = ns_pfx;
+#if VALA_0_48
+ if (type.type_symbol != null && type.type_symbol.parent_symbol is Namespace) {
+ Namespace local_ns = (Namespace)type.type_symbol.parent_symbol;
+#else
if (type.data_type != null && type.data_type.parent_symbol is Namespace) {
Namespace local_ns = (Namespace)type.data_type.parent_symbol;
+#endif
if (use_namespace(local_ns))
local_ns_pfx = local_ns.get_full_name()+".";
}

View file

@ -1,25 +0,0 @@
From f942315402e3fc38def14a974dd5b210e5d2c38d Mon Sep 17 00:00:00 2001
From: Daniel Kolesa <daniel@octaforge.org>
Date: Wed, 16 Sep 2020 20:39:29 +0200
Subject: [PATCH] fix with vala-0.50
---
valabindwriter.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git valabindwriter.vala valabindwriter.vala
index 165cdf5..c793c9f 100644
--- valabindwriter.vala
+++ valabindwriter.vala
@@ -33,7 +33,7 @@ public class ValabindWriter : CodeVisitor {
if (glibmode)
context.add_define ("GOBJECT");
// required to avoid ugly runtime errors
- context.profile = Profile.GOBJECT;
+ context.set_target_profile(Profile.GOBJECT);
}
public void parse () {
--
2.28.0

View file

@ -1,7 +1,7 @@
# Template file for 'valabind'
pkgname=valabind
version=1.7.1
revision=6
version=1.7.2
revision=1
build_style=meson
hostmakedepends="pkg-config vala-devel git"
makedepends="vala-devel glib-devel"
@ -11,4 +11,4 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://radare.org/r/"
distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
checksum=b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e
checksum=643c1ddc85e31de975df361a20e3f39d385f5ced0e50483c6e96b33bb3d32261