[arch-commits] Commit in swig3/repos (3 files)

Anatol Pomozov anatolik at archlinux.org
Sat Dec 28 20:34:09 UTC 2019


    Date: Saturday, December 28, 2019 @ 20:34:09
  Author: anatolik
Revision: 543661

archrelease: copy trunk to community-staging-x86_64

Added:
  swig3/repos/community-staging-x86_64/
  swig3/repos/community-staging-x86_64/PKGBUILD
    (from rev 543660, swig3/trunk/PKGBUILD)
  swig3/repos/community-staging-x86_64/ruby27.patch
    (from rev 543660, swig3/trunk/ruby27.patch)

--------------+
 PKGBUILD     |   42 ++++++++++++++++++++++++++++++++++++++++++
 ruby27.patch |   13 +++++++++++++
 2 files changed, 55 insertions(+)

Copied: swig3/repos/community-staging-x86_64/PKGBUILD (from rev 543660, swig3/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-28 20:34:09 UTC (rev 543661)
@@ -0,0 +1,42 @@
+# Maintainer: Michael Hansen <zrax0111 gmail com>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
+pkgname=swig3
+_pkgname=swig
+pkgver=3.0.12
+pkgrel=3
+pkgdesc="Generate scripting interfaces to C/C++ code (Legacy 3.x version)"
+arch=('x86_64')
+url="http://www.swig.org/"
+license=('custom')
+depends=('pcre' 'gcc-libs')
+checkdepends=('ruby' 'python2' 'java-environment' 'tcl' 'php' 'lua' 'ocaml' 'r' 'go' 'python2-cffi' 'camlp4')
+source=(https://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz
+        ruby27.patch)
+sha1sums=('5cc1af41d041e4cc609580b99bb3dcf720effa25'
+          'b3f83ef6237ebeefaddb3366ea4d56ab1e5d37e6')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  patch -p1 < ../ruby27.patch # https://github.com/swig/swig/issues/1689
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  ./configure --prefix=/usr --program-suffix="-3"
+  make
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  make check || warning "Tests failed"
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+  install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES
+}

Copied: swig3/repos/community-staging-x86_64/ruby27.patch (from rev 543660, swig3/trunk/ruby27.patch)
===================================================================
--- community-staging-x86_64/ruby27.patch	                        (rev 0)
+++ community-staging-x86_64/ruby27.patch	2019-12-28 20:34:09 UTC (rev 543661)
@@ -0,0 +1,13 @@
+diff --git a/Lib/ruby/rubytracking.swg b/Lib/ruby/rubytracking.swg
+index b9fb249d8..8f45ef88b 100644
+--- a/Lib/ruby/rubytracking.swg
++++ b/Lib/ruby/rubytracking.swg
+@@ -69,7 +69,7 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
+     swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
+   }
+ 
+-  rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL);
++  rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", (rb_gvar_getter_t *)swig_ruby_trackings_count, (rb_gvar_setter_t *)NULL);
+ }
+ 
+ /* Add a Tracking from a C/C++ struct to a Ruby object */



More information about the arch-commits mailing list