[arch-commits] Commit in valabind/trunk (PKGBUILD vala-0.50.diff)

Jan Steffens heftig at archlinux.org
Fri Oct 2 20:31:43 UTC 2020


    Date: Friday, October 2, 2020 @ 20:31:42
  Author: heftig
Revision: 715640

1.7.1-4

Added:
  valabind/trunk/vala-0.50.diff
Modified:
  valabind/trunk/PKGBUILD

----------------+
 PKGBUILD       |   16 ++++++++++------
 vala-0.50.diff |   22 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-02 20:25:05 UTC (rev 715639)
+++ PKGBUILD	2020-10-02 20:31:42 UTC (rev 715640)
@@ -2,18 +2,20 @@
 
 pkgname=valabind
 pkgver=1.7.1
-pkgrel=3
+pkgrel=4
 pkgdesc='Tool to parse vala or vapi files to transform them into swig interface files, C++, NodeJS-ffi or GIR'
-url='https://radare.org/r/'
+url='https://github.com/radare/valabind'
 arch=('x86_64')
 license=('GPL3')
-depends=('sh' 'glibc' 'glib2' 'vala' 'swig' 'libvala-0.48.so')
+depends=('sh' 'glibc' 'glib2' 'vala' 'swig' 'libvala-0.50.so')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/radare/${pkgname}/archive/${pkgver}.tar.gz
-        vala-0.48.diff)
+        vala-0.48.diff vala-0.50.diff)
 sha256sums=('b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e'
-            '0528ba09bb4a5f20944a129d5b91eabeefa2d35a2fcd40378847f976f2ad418e')
+            '0528ba09bb4a5f20944a129d5b91eabeefa2d35a2fcd40378847f976f2ad418e'
+            '39ffb66da22043ccbcce09e84a3ba30cf178d23324f1ae352546cd3bc23b8342')
 sha512sums=('b82c733777e0caf449cd27f0ed3597a108462072c5663945ec03f4c1da90d389313c0f3ca0f6db2d52c7f80d09b1751992f733454358cd428c2571b7e53850a4'
-            'f9de1b1050f7933a3850fab88ba1a15fc83da6e21dfe1d75edc781a151eee1246a2d7602c201c71bd8adb4029517992737e660a4a35e4a6f9e80bf7bbe23bb30')
+            'f9de1b1050f7933a3850fab88ba1a15fc83da6e21dfe1d75edc781a151eee1246a2d7602c201c71bd8adb4029517992737e660a4a35e4a6f9e80bf7bbe23bb30'
+            '4dbae75787b63531c5f15d88131fc624cb4d274c1bf7e94416ad0773aed9b3007f53918389dcb13c82bfd3b5bdefc6bf9001a78071a62112957044fbd6736c70')
 
 prepare() {
   cd ${pkgname}-${pkgver}
@@ -20,6 +22,8 @@
 
   # git diff 1.7.1..9d4fb181e243
   patch -Np1 -i ../vala-0.48.diff
+
+  patch -Np1 -i ../vala-0.50.diff
 }
 
 build() {

Added: vala-0.50.diff
===================================================================
--- vala-0.50.diff	                        (rev 0)
+++ vala-0.50.diff	2020-10-02 20:31:42 UTC (rev 715640)
@@ -0,0 +1,22 @@
+diff --git i/valabindwriter.vala w/valabindwriter.vala
+index 165cdf5..d3911b3 100644
+--- i/valabindwriter.vala
++++ w/valabindwriter.vala
+@@ -27,13 +27,17 @@ public class ValabindWriter : CodeVisitor {
+ 		this.vapidir = vapidir;
+ 		this.glibmode = glibmode;
+ 		context.vapi_directories = { vapidir };
++#if VALA_0_50
++		context.set_target_profile (Profile.GOBJECT);
++#else
+ 		add_package (context, "glib-2.0");
+ 		add_package (context, "gobject-2.0");
+ 		/* vala 0.17 only support gobject profile */
+ 		if (glibmode)
+ 			context.add_define ("GOBJECT");
+ 		// required to avoid ugly runtime errors
+ 		context.profile = Profile.GOBJECT;
++#endif
+ 	}
+ 
+ 	public void parse () {


More information about the arch-commits mailing list