[arch-commits] Commit in libsigrok/repos/community-x86_64 (4 files)
Filipe Laíns
ffy00 at archlinux.org
Sun Nov 1 21:08:51 UTC 2020
Date: Sunday, November 1, 2020 @ 21:08:51
Author: ffy00
Revision: 739007
archrelease: copy trunk to community-x86_64
Added:
libsigrok/repos/community-x86_64/PKGBUILD
(from rev 739006, libsigrok/trunk/PKGBUILD)
libsigrok/repos/community-x86_64/fix_swig4_java_bindings.patch
(from rev 739006, libsigrok/trunk/fix_swig4_java_bindings.patch)
Deleted:
libsigrok/repos/community-x86_64/PKGBUILD
libsigrok/repos/community-x86_64/fix_swig4_java_bindings.patch
-------------------------------+
PKGBUILD | 88 ++++++++++++++++++++--------------------
fix_swig4_java_bindings.patch | 76 +++++++++++++++++-----------------
2 files changed, 82 insertions(+), 82 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-01 21:08:45 UTC (rev 739006)
+++ PKGBUILD 2020-11-01 21:08:51 UTC (rev 739007)
@@ -1,44 +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=5
-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')
-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-x86_64/PKGBUILD (from rev 739006, libsigrok/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-01 21:08:51 UTC (rev 739007)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Thomas Krug <t.krug at elektronenpumpe.de>
+
+pkgname=libsigrok
+pkgver=0.5.2
+pkgrel=6
+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
+}
+
Deleted: fix_swig4_java_bindings.patch
===================================================================
--- fix_swig4_java_bindings.patch 2020-11-01 21:08:45 UTC (rev 739006)
+++ fix_swig4_java_bindings.patch 2020-11-01 21:08:51 UTC (rev 739007)
@@ -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-x86_64/fix_swig4_java_bindings.patch (from rev 739006, libsigrok/trunk/fix_swig4_java_bindings.patch)
===================================================================
--- fix_swig4_java_bindings.patch (rev 0)
+++ fix_swig4_java_bindings.patch 2020-11-01 21:08:51 UTC (rev 739007)
@@ -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