valabind: rebuild with vala-0.36

This commit is contained in:
Enno Boland 2017-04-14 09:08:34 +02:00
parent 5ded78aa66
commit ecaecc488d
2 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,36 @@
From f23ff9421c1875d18b1e558596557009b45faa19 Mon Sep 17 00:00:00 2001
From: pancake <pancake@nopcode.org>
Date: Thu, 9 Feb 2017 10:21:16 +0100
Subject: [PATCH] Fix build for Vala-git (future 0.36)
---
cxxwriter.vala | 2 +-
dlangwriter.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git cxxwriter.vala cxxwriter.vala
index cca65fe..890e085 100644
--- cxxwriter.vala
+++ cxxwriter.vala
@@ -157,7 +157,7 @@ public class CxxWriter : ValabindWriter {
}
public void walk_field (Field f) {
- if (f.get_ctype () == null) {
+ if (f.get_attribute_string ("CCode", "type") == null) {
//warning (
// "Cannot resolve type for field '%s'".printf (f.get_cname ()));
} else {
diff --git dlangwriter.vala dlangwriter.vala
index 8d42676..898d3ca 100644
--- dlangwriter.vala
+++ dlangwriter.vala
@@ -167,7 +167,7 @@ public class DlangWriter : ValabindWriter {
}
public void walk_field (Field f) {
- if (f.get_ctype () == null) {
+ if (f.get_attribute_string ("CCode", "type") == null) {
//warning (
// "Cannot resolve type for field '%s'".printf (f.get_cname ()));
} else {

View file

@ -1,7 +1,7 @@
# Template file for 'valabind' # Template file for 'valabind'
pkgname=valabind pkgname=valabind
version=0.10.0 version=0.10.0
revision=1 revision=2
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="pkg-config vala-devel" hostmakedepends="pkg-config vala-devel"
makedepends="vala-devel glib-devel" makedepends="vala-devel glib-devel"