From 3e850f665cace832af0656b8b65e692bea012005 Mon Sep 17 00:00:00 2001 From: Cecil Date: Thu, 10 Aug 2017 21:44:40 -0600 Subject: [PATCH] new branch 'curl' for #307 * libcurl rename in setup phase because ethon gem doesn't see the cross compiled libcurl-4.dll name. --- make/linux/xwin7/env.rb | 4 ++++ make/linux/xwin7/setup.rb | 7 +++++++ make/win32/win7/env.rb | 8 ++++++-- make/win32/win7/setup.rb | 7 +++++++ samples/simple/{dowloader.rb => downloader.rb} | 0 5 files changed, 24 insertions(+), 2 deletions(-) rename samples/simple/{dowloader.rb => downloader.rb} (100%) diff --git a/make/linux/xwin7/env.rb b/make/linux/xwin7/env.rb index 3ee27e55..b159b07a 100644 --- a/make/linux/xwin7/env.rb +++ b/make/linux/xwin7/env.rb @@ -158,8 +158,12 @@ def xfixrvmp(path) 'rsvg' => "#{bindll}/librsvg-2-2.dll", 'thread' => "#{bindll}/libgthread-2.0-0.dll", 'zlib1' => "#{bindll}/zlib1.dll", + 'curl' => "#{bindll}/libcurl-4.dll", 'siji' => "/usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll", 'pthread' => "/usr/i686-w64-mingw32/lib/libwinpthread-1.dll" } ) +ReNames = { + "libcurl-4.dll" => "libcurl.dll" +} diff --git a/make/linux/xwin7/setup.rb b/make/linux/xwin7/setup.rb index b362f1f1..5ac873fa 100644 --- a/make/linux/xwin7/setup.rb +++ b/make/linux/xwin7/setup.rb @@ -33,6 +33,13 @@ def static_setup (so_list) so_list.each_value do |path| cp "#{path}", "#{TGT_DIR}" end + # the things we do for love... + ReNames.each_pair do |k, v| + if File.exist? "#{TGT_DIR}/#{k}" + mv "#{TGT_DIR}/#{k}", "#{TGT_DIR}/#{v}" + $stderr.puts "renamed #{k} to #{v}" + end + end # copy/setup etc/share mkdir_p "#{TGT_DIR}/share/glib-2.0/schemas" cp "#{ShoesDeps}/share/glib-2.0/schemas/gschemas.compiled" , diff --git a/make/win32/win7/env.rb b/make/win32/win7/env.rb index 5e2a16b0..d4d3e7f0 100644 --- a/make/win32/win7/env.rb +++ b/make/win32/win7/env.rb @@ -1,4 +1,4 @@ -#require "devkit" unless ENV['MINGW_PREFIX'] +require "devkit" cf =(ENV['ENV_CUSTOM'] || "win7-custom.yaml") gtk_version = '3' if File.exists? cf @@ -144,7 +144,11 @@ 'thread' => "#{bindll}/libgthread-2.0-0.dll", 'zlib1' => "#{bindll}/zlib1.dll", 'pthread' => "#{devdll}/libwinpthread-1.dll", - 'sjlj' => "#{devdll}/libgcc_s_sjlj-1.dll" + 'sjlj' => "#{devdll}/libgcc_s_sjlj-1.dll", + 'curl' => "#{bindll}/libcurl-4.dll" } ) +ReNames = { + "libcurl-4.dll" => "libcurl.dll" +} diff --git a/make/win32/win7/setup.rb b/make/win32/win7/setup.rb index 75e0bd33..577d3709 100644 --- a/make/win32/win7/setup.rb +++ b/make/win32/win7/setup.rb @@ -33,6 +33,13 @@ def static_setup (so_list) so_list.each_value do |path| cp "#{path}", "#{TGT_DIR}" end + # the things we do for love... + ReNames.each_pair do |k, v| + if File.exist? "#{TGT_DIR}/#{k}" + mv "#{TGT_DIR}/#{k}", "#{TGT_DIR}/#{v}" + $stderr.puts "renamed #{k} to #{v}" + end + end # copy/setup etc/share mkdir_p "#{TGT_DIR}/share/glib-2.0/schemas" cp "#{ShoesDeps}/share/glib-2.0/schemas/gschemas.compiled" , diff --git a/samples/simple/dowloader.rb b/samples/simple/downloader.rb similarity index 100% rename from samples/simple/dowloader.rb rename to samples/simple/downloader.rb