[arch-commits] Commit in libsigrok/repos/community-testing-x86_64 (4 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 10 14:56:32 UTC 2021


    Date: Friday, December 10, 2021 @ 14:56:32
  Author: foutrelis
Revision: 1068090

archrelease: copy trunk to community-testing-x86_64

Added:
  libsigrok/repos/community-testing-x86_64/PKGBUILD
    (from rev 1068089, libsigrok/trunk/PKGBUILD)
  libsigrok/repos/community-testing-x86_64/fix_swig4_java_bindings.patch
    (from rev 1068089, libsigrok/trunk/fix_swig4_java_bindings.patch)
Deleted:
  libsigrok/repos/community-testing-x86_64/PKGBUILD
  libsigrok/repos/community-testing-x86_64/fix_swig4_java_bindings.patch

-------------------------------+
 PKGBUILD                      |   89 ++++++++++++++++++++--------------------
 fix_swig4_java_bindings.patch |   76 +++++++++++++++++-----------------
 2 files changed, 84 insertions(+), 81 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-10 14:56:27 UTC (rev 1068089)
+++ PKGBUILD	2021-12-10 14:56:32 UTC (rev 1068090)
@@ -1,43 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Thomas Krug <t.krug at elektronenpumpe.de>
-
-pkgname=libsigrok
-pkgver=0.5.2
-pkgrel=9
-pkgdesc='Client software that supports various hardware logic analyzers, core library'
-arch=('x86_64')
-url='https://www.sigrok.org/wiki/Libsigrok'
-license=('GPL3')
-depends=('libftdi' 'libserialport' 'glibmm' 'libzip' 'libieee1284' 'bluez-libs' 'hidapi' 'libudev.so')
-makedepends=('cmake' 'doxygen' 'ruby' 'jdk8-openjdk' 'swig' 'python' 'pygobject-devel' 'python-numpy' 'python-setuptools')
-optdepends=('python' 'ruby' 'jdk8-openjdk'
-            'sigrok-firmware-fx2lafw: Cypress FX2-based device support')
-source=("https://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
-        "fix_swig4_java_bindings.patch"
-	"fix_ruby_bindings.patch::https://sigrok.org/bugzilla/attachment.cgi?id=640")
-sha512sums=('cf673dad6280302d69050c29490621f66c6d6a73932d019a53ec3501316d3f2e23e7667a04f866dbe6ed73f86a63de73d2173e2b6cea563631d705e06f887092'
-            '0e6bdddb2dcc03d76e5d16708bb127ec8a9207fba0e04b436ac92e370618cc0b1bc9d3e2c86a0878783626f2a8b59961c3a1a52a1e180e69005e3585e5766a89'
-            '0e5b9ed566605acac02de6f559f9029929be7ca34d9688ed35d24d66c1b014f89a16902a4de79d0a1ef6347be257f24f77ea37b880aab757b2c338497de23030')
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -p1 < ../fix_swig4_java_bindings.patch # https://sigrok.org/bugzilla/show_bug.cgi?id=1527
-  patch -p1 < ../fix_ruby_bindings.patch # https://sigrok.org/bugzilla/show_bug.cgi?id=1526
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  ./configure --prefix=/usr --enable-ruby
-
-  make
-}
-
-package() {
-  cd libsigrok-$pkgver
-
-  make DESTDIR="$pkgdir" PREFIX=/usr install
-
-  install -m644 -D contrib/60-libsigrok.rules "$pkgdir"/usr/lib/udev/rules.d/60-libsigrok.rules
-  install -m644 -D contrib/61-libsigrok-uaccess.rules "$pkgdir"/usr/lib/udev/rules.d/61-libsigrok-uaccess.rules
-}

Copied: libsigrok/repos/community-testing-x86_64/PKGBUILD (from rev 1068089, libsigrok/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-10 14:56:32 UTC (rev 1068090)
@@ -0,0 +1,46 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Thomas Krug <t.krug at elektronenpumpe.de>
+
+pkgname=libsigrok
+pkgver=0.5.2
+pkgrel=10
+pkgdesc='Client software that supports various hardware logic analyzers, core library'
+arch=('x86_64')
+url='https://www.sigrok.org/wiki/Libsigrok'
+license=('GPL3')
+depends=('libftdi' 'libserialport' 'glibmm' 'libzip' 'libieee1284' 'bluez-libs' 'hidapi' 'libudev.so')
+makedepends=('cmake' 'doxygen' 'ruby' 'jdk8-openjdk' 'swig' 'python' 'pygobject-devel' 'python-numpy' 'python-setuptools' 'autoconf-archive')
+optdepends=('python' 'ruby' 'jdk8-openjdk'
+            'sigrok-firmware-fx2lafw: Cypress FX2-based device support')
+source=("https://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
+        "fix_swig4_java_bindings.patch"
+	"fix_ruby_bindings.patch::https://sigrok.org/bugzilla/attachment.cgi?id=640")
+sha512sums=('cf673dad6280302d69050c29490621f66c6d6a73932d019a53ec3501316d3f2e23e7667a04f866dbe6ed73f86a63de73d2173e2b6cea563631d705e06f887092'
+            '0e6bdddb2dcc03d76e5d16708bb127ec8a9207fba0e04b436ac92e370618cc0b1bc9d3e2c86a0878783626f2a8b59961c3a1a52a1e180e69005e3585e5766a89'
+            '0e5b9ed566605acac02de6f559f9029929be7ca34d9688ed35d24d66c1b014f89a16902a4de79d0a1ef6347be257f24f77ea37b880aab757b2c338497de23030')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 < ../fix_swig4_java_bindings.patch # https://sigrok.org/bugzilla/show_bug.cgi?id=1527
+  patch -p1 < ../fix_ruby_bindings.patch # https://sigrok.org/bugzilla/show_bug.cgi?id=1526
+
+  # regenerate ./configure so it can detect Python 3.10
+  autoreconf -vi
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr --enable-ruby
+
+  make
+}
+
+package() {
+  cd libsigrok-$pkgver
+
+  make DESTDIR="$pkgdir" PREFIX=/usr install
+
+  install -m644 -D contrib/60-libsigrok.rules "$pkgdir"/usr/lib/udev/rules.d/60-libsigrok.rules
+  install -m644 -D contrib/61-libsigrok-uaccess.rules "$pkgdir"/usr/lib/udev/rules.d/61-libsigrok-uaccess.rules
+}

Deleted: fix_swig4_java_bindings.patch
===================================================================
--- fix_swig4_java_bindings.patch	2021-12-10 14:56:27 UTC (rev 1068089)
+++ fix_swig4_java_bindings.patch	2021-12-10 14:56:32 UTC (rev 1068090)
@@ -1,38 +0,0 @@
-From e803574173bdac8a7f33085a648c29eaf248a394 Mon Sep 17 00:00:00 2001
-From: Uwe Hermann <uwe at hermann-uwe.de>
-Date: Sat, 4 Apr 2020 21:54:13 +0200
-Subject: [PATCH 1/1] bindings/java: Fix build issue with SWIG 4.x.
-
-Tested with SWIG 3.x and SWIG 4.x.
-
-This fixes bug #1527.
----
- bindings/java/org/sigrok/core/classes/classes.i | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/bindings/java/org/sigrok/core/classes/classes.i b/bindings/java/org/sigrok/core/classes/classes.i
-index 75793b25..e953fe5d 100644
---- a/bindings/java/org/sigrok/core/classes/classes.i
-+++ b/bindings/java/org/sigrok/core/classes/classes.i
-@@ -94,10 +94,18 @@ VECTOR(std::shared_ptr<sigrok::HardwareDevice>, HardwareDevice)
-   "java.util.Map<JKey, JValue>"
- 
- %typemap(javain,
-+/* SWIG 4.0.0 changed the std::map wrappers in an incompatible way. */
-+#if SWIG_VERSION >= 0x040000
-+    pre="  $javaclassname temp$javainput = new $javaclassname();
-+    for (java.util.Map.Entry<JKey, JValue> entry : $javainput.entrySet())
-+      temp$javainput.put(entry.getKey(), entry.getValue());",
-+    pgcppname="temp$javainput")
-+#else
-     pre="  $javaclassname temp$javainput = new $javaclassname();
-     for (java.util.Map.Entry<JKey, JValue> entry : $javainput.entrySet())
-       temp$javainput.set(entry.getKey(), entry.getValue());",
-     pgcppname="temp$javainput")
-+#endif
-   std::map< CKey, CValue > "$javaclassname.getCPtr(temp$javainput)"
- 
- %typemap(javaout) std::map< CKey, CValue > {
--- 
-2.24.0.rc2
-

Copied: libsigrok/repos/community-testing-x86_64/fix_swig4_java_bindings.patch (from rev 1068089, libsigrok/trunk/fix_swig4_java_bindings.patch)
===================================================================
--- fix_swig4_java_bindings.patch	                        (rev 0)
+++ fix_swig4_java_bindings.patch	2021-12-10 14:56:32 UTC (rev 1068090)
@@ -0,0 +1,38 @@
+From e803574173bdac8a7f33085a648c29eaf248a394 Mon Sep 17 00:00:00 2001
+From: Uwe Hermann <uwe at hermann-uwe.de>
+Date: Sat, 4 Apr 2020 21:54:13 +0200
+Subject: [PATCH 1/1] bindings/java: Fix build issue with SWIG 4.x.
+
+Tested with SWIG 3.x and SWIG 4.x.
+
+This fixes bug #1527.
+---
+ bindings/java/org/sigrok/core/classes/classes.i | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/bindings/java/org/sigrok/core/classes/classes.i b/bindings/java/org/sigrok/core/classes/classes.i
+index 75793b25..e953fe5d 100644
+--- a/bindings/java/org/sigrok/core/classes/classes.i
++++ b/bindings/java/org/sigrok/core/classes/classes.i
+@@ -94,10 +94,18 @@ VECTOR(std::shared_ptr<sigrok::HardwareDevice>, HardwareDevice)
+   "java.util.Map<JKey, JValue>"
+ 
+ %typemap(javain,
++/* SWIG 4.0.0 changed the std::map wrappers in an incompatible way. */
++#if SWIG_VERSION >= 0x040000
++    pre="  $javaclassname temp$javainput = new $javaclassname();
++    for (java.util.Map.Entry<JKey, JValue> entry : $javainput.entrySet())
++      temp$javainput.put(entry.getKey(), entry.getValue());",
++    pgcppname="temp$javainput")
++#else
+     pre="  $javaclassname temp$javainput = new $javaclassname();
+     for (java.util.Map.Entry<JKey, JValue> entry : $javainput.entrySet())
+       temp$javainput.set(entry.getKey(), entry.getValue());",
+     pgcppname="temp$javainput")
++#endif
+   std::map< CKey, CValue > "$javaclassname.getCPtr(temp$javainput)"
+ 
+ %typemap(javaout) std::map< CKey, CValue > {
+-- 
+2.24.0.rc2
+



More information about the arch-commits mailing list