aboutsummaryrefslogtreecommitdiffstats
path: root/community/geos/20-ruby27.patch
blob: dbb231a518ac3785c72fcf01b52bf333aa2037c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: Patch for modified 'rb_define_virtual_variable' signature in Ruby 2.7
         This patch can hopefully be removed when Swig supports Ruby 2.7
Url: https://github.com/swig/swig/issues/1689
----

--- a/swig/ruby/Makefile.in
+++ b/swig/ruby/Makefile.in
@@ -873,6 +873,7 @@ uninstall-am: uninstall-rubyextensiondir
 
 @ENABLE_RUBY_TRUE@@ENABLE_SWIG_TRUE@geos_wrap.cxx: ../geos.i ruby.i
 @ENABLE_RUBY_TRUE@@ENABLE_SWIG_TRUE@	$(SWIG) -c++ -ruby -autorename -o $@ $<
+@ENABLE_RUBY_TRUE@@ENABLE_SWIG_TRUE@	sed -i 's/swig_ruby_trackings_count, NULL/(rb_gvar_getter_t *)swig_ruby_trackings_count, (rb_gvar_setter_t *)NULL/g' $@
 
 @ENABLE_RUBY_TRUE@@ENABLE_SWIG_FALSE@geos_wrap.cxx: ../geos.i ruby.i
 @ENABLE_RUBY_TRUE@@ENABLE_SWIG_FALSE@	@echo "SWIG is disabled, can't build geos_wrap.cxx"