fxruby 1.6.37-x64-mingw32 → 1.6.38-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4f28d26bf09c7b0f3b6e22cbd1813ca4c375e4a
4
- data.tar.gz: 441cd7ad3e0f207ddaf735ef5a91bf90b5c64e3c
3
+ metadata.gz: 1c5095530ffbb6836a38690388ebf34537bccf9b
4
+ data.tar.gz: a9ef571fd6221067ad53d0a9a67ff5d7baab3f40
5
5
  SHA512:
6
- metadata.gz: 244b7b465eb514028601b501932d7a3b7eb0cb6d96344a817f3f5b54299af574c730d9e3ceed8d6a9b2b5ebbc882379d4ebab289d81bb6792490bd669a3c97bc
7
- data.tar.gz: fe3df19557ca61fbe5495432f13c51c8b04d02a9e28a9d63da4a5839d40a01e5796083aa5e6e21496564e7e29b58819c136351da2adbad66c462f212cf515bdc
6
+ metadata.gz: fef38eeee20a769bbf7584ac05459d29e4bb83e111a3832b0c7a3f78e77aee8757d167bef1264f6d7d7a72ebe6c48baa75c9900eb5e26eb0a27645e5fa4f1894
7
+ data.tar.gz: 8efc60df043c60bf3ab20240defaeb11622a67aa914d781fa9543e2bead4cc23bd418c2231fb5d4f6bea3f77bbab2c572de0c6bca657034737dd8b5e34f366be
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.6.38 / 2017-07-27
2
+
3
+ * Update dependent libraries for Windows binary gem.
4
+ * Replace libjpeg-9b by libjpeg-turbo-1.5.2 on Windows binary gem.
5
+ * Fix build with clang on FreeBSD (and possibly other OS). Fixes #41
6
+
1
7
  === 1.6.37 / 2017-06-24
2
8
 
3
9
  * Add a 3rd type of FXRbObjects which is used for callbacks. Fixes #39
data/README.rdoc CHANGED
@@ -3,7 +3,10 @@
3
3
  * http://github.com/larskanis/fxruby
4
4
  * Full API-description: http://rubydoc.info/gems/fxruby/frames
5
5
  * Latest fxruby {<img src="https://badge.fury.io/rb/fxruby.svg" alt="Gem Version" />}[http://badge.fury.io/rb/fxruby]
6
- * Status (on Linux): {<img src="https://travis-ci.org/larskanis/fxruby.svg?branch=1.6" alt="Build Status" />}[https://travis-ci.org/larskanis/fxruby]
6
+ * Status on Linux: {<img src="https://travis-ci.org/larskanis/fxruby.svg?branch=1.6" alt="Build Status on Linux" />}[https://travis-ci.org/larskanis/fxruby]
7
+ on Windows: {<img src="https://ci.appveyor.com/api/projects/status/too7sj4gq643ts8w/branch/1.6?svg=true" alt="Build Status on Windows" />}[https://ci.appveyor.com/project/larskanis/fxruby/branch/1.6]
8
+
9
+
7
10
 
8
11
  == DESCRIPTION:
9
12
 
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'erb'
3
+ require 'date'
3
4
  require 'rake/extensiontask'
4
5
  require 'bundler'
5
6
  require 'bundler/gem_helper'
@@ -137,7 +138,7 @@ Rake::ExtensionTask.new("fox16_c", gem_spec) do |ext|
137
138
  dlls += [
138
139
  "libfxscintilla-20.dll",
139
140
  "libFOX-1.6-0.dll",
140
- "libjpeg-9.dll",
141
+ "libjpeg-62.dll",
141
142
  "libpng16-16.dll",
142
143
  "libtiff-5.dll",
143
144
  "zlib1.dll",
@@ -178,7 +179,12 @@ task 'gem:windows' => 'gem' do
178
179
 
179
180
  sh "bundle package"
180
181
  debug = "FXRUBY_MINGW_DEBUG=#{ENV['FXRUBY_MINGW_DEBUG'].inspect}" if ENV['FXRUBY_MINGW_DEBUG']
181
- RakeCompilerDock.sh "bundle --local --without=test && rake cross native gem MAKE=\"nice make V=1 -j `nproc`\" #{debug}"
182
+ RakeCompilerDock.sh <<-EOT
183
+ sudo apt update &&
184
+ sudo apt install yasm &&
185
+ bundle --local --without=test &&
186
+ rake cross native gem MAKE=\"nice make V=1 -j `nproc`\" #{debug}
187
+ EOT
182
188
  end
183
189
 
184
190
  # Set environment variable SWIG_LIB to
data/appveyor.yml ADDED
@@ -0,0 +1,24 @@
1
+ init:
2
+ - SET PATH=c:/Ruby%ruby_version%/bin;c:/msys64/%MSYSTEM%/bin;%PATH%
3
+ - SET RAKEOPT=-rdevkit
4
+ install:
5
+ - ruby --version
6
+ - gem --version
7
+ - ridk version
8
+ - c:/msys64/usr/bin/bash -lc "pacman -Syu --noconfirm"
9
+ - c:/msys64/usr/bin/bash -lc "pacman -Su --noconfirm"
10
+ - c:/msys64/usr/bin/bash -lc "pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-fox ${MINGW_PACKAGE_PREFIX}-swig"
11
+ - swig -version
12
+ - bundle install
13
+ build_script:
14
+ - bundle exec rake compile
15
+ test_script:
16
+ - bundle exec rake test
17
+ environment:
18
+ matrix:
19
+ - ruby_version: "24"
20
+ MINGW_PACKAGE_PREFIX: "mingw-w64-i686"
21
+ MSYSTEM: "MINGW32"
22
+ - ruby_version: "24-x64"
23
+ MINGW_PACKAGE_PREFIX: "mingw-w64-x86_64"
24
+ MSYSTEM: "MINGW64"
@@ -20,8 +20,8 @@
20
20
  * at "lars@greiz-reinsdorf.de".
21
21
  ***********************************************************************/
22
22
 
23
- #include "FXRbObjRegistry.h"
24
23
  #include "FXRbCommon.h"
24
+ #include "FXRbObjRegistry.h"
25
25
  #include "swigruby.h"
26
26
 
27
27
  FXRbObjRegistry::FXRbObjRegistry(){
@@ -24,16 +24,19 @@ end
24
24
  LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.7.3'
25
25
  LIBZ_SOURCE_URI = "http://zlib.net/fossils/zlib-#{LIBZ_VERSION}.tar.gz"
26
26
 
27
- LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.26'
27
+ LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.29'
28
28
  LIBPNG_SOURCE_URI = "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz"
29
29
 
30
- LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '9b'
31
- LIBJPEG_SOURCE_URI = "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz"
30
+ # LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '9b'
31
+ # LIBJPEG_SOURCE_URI = "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz"
32
32
 
33
- LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.0.7'
33
+ LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '1.5.2'
34
+ LIBJPEG_SOURCE_URI = "https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-#{LIBJPEG_VERSION}.tar.gz"
35
+
36
+ LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.0.8'
34
37
  LIBTIFF_SOURCE_URI = "http://download.osgeo.org/libtiff/tiff-#{LIBTIFF_VERSION}.tar.gz"
35
38
 
36
- LIBFOX_VERSION = ENV['LIBFOX_VERSION'] || '1.6.53'
39
+ LIBFOX_VERSION = ENV['LIBFOX_VERSION'] || '1.6.55'
37
40
  LIBFOX_SOURCE_URI = "http://ftp.fox-toolkit.org/pub/fox-#{LIBFOX_VERSION}.tar.gz"
38
41
 
39
42
  LIBFXSCINTILLA_VERSION = ENV['LIBFXSCINTILLA_VERSION'] || '2.28.0'
@@ -23,9 +23,6 @@
23
23
  #ifndef FXRBOBJREGISTRY_H
24
24
  #define FXRBOBJREGISTRY_H
25
25
 
26
- #include <ruby.h>
27
- #include "fx.h"
28
-
29
26
  extern "C" {
30
27
  // Opaque type declaration for SWIG runtime support
31
28
  struct swig_type_info;
data/lib/fox16/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Fox
2
2
  def Fox.fxrubyversion
3
- "1.6.37"
3
+ "1.6.38"
4
4
  end
5
5
  end
data/test/TC_FXApp.rb CHANGED
@@ -46,6 +46,7 @@ class TC_FXApp2 < Fox::TestCase
46
46
  end
47
47
 
48
48
  def test_addInput_on_pipe
49
+ pend "addInput on IO.pipe object isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
49
50
  check_events(*IO.pipe)
50
51
  end
51
52
 
@@ -75,6 +76,7 @@ class TC_FXApp2 < Fox::TestCase
75
76
  end
76
77
 
77
78
  def test_addInput_on_popen
79
+ pend "addInput on IO.popen object isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
78
80
  pipe_rdwr = IO.popen("cat", "r+")
79
81
  check_events pipe_rdwr, pipe_rdwr
80
82
  end
@@ -62,6 +62,8 @@ class TC_FXFileStream < Test::Unit::TestCase
62
62
  FXFileStream.open("non_existing_file", FXStreamLoad) { |s| }
63
63
  }
64
64
 
65
+ pend "chmod isn't supported on Windows" if RUBY_PLATFORM=~/mingw|mswin/i
66
+
65
67
  # Write-only file (i.e. no read permissions)
66
68
  tf = Tempfile.new("write_only_file")
67
69
  tf.puts("junk")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.37
4
+ version: 1.6.38
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Lyle Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-06-24 00:00:00.000000000 Z
12
+ date: 2017-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_portile2
@@ -42,6 +42,7 @@ files:
42
42
  - README.rdoc
43
43
  - Rakefile
44
44
  - TODO
45
+ - appveyor.yml
45
46
  - doap.rdf
46
47
  - doap.rdf.erb
47
48
  - examples/RAA.rb
@@ -463,11 +464,10 @@ files:
463
464
  - lib/fox16/tkcompat.rb
464
465
  - lib/fox16/undolist.rb
465
466
  - lib/fox16/version.rb
466
- - patches/libfox/1.6.53/0001-mingw-vsnprintf.diff
467
467
  - ports/x86_64-w64-mingw32/bin/libFOX-1.6-0.dll
468
468
  - ports/x86_64-w64-mingw32/bin/libfxscintilla-20.dll
469
469
  - ports/x86_64-w64-mingw32/bin/libgcc_s_seh-1.dll
470
- - ports/x86_64-w64-mingw32/bin/libjpeg-9.dll
470
+ - ports/x86_64-w64-mingw32/bin/libjpeg-62.dll
471
471
  - ports/x86_64-w64-mingw32/bin/libpng16-16.dll
472
472
  - ports/x86_64-w64-mingw32/bin/libstdc++-6.dll
473
473
  - ports/x86_64-w64-mingw32/bin/libtiff-5.dll
@@ -1,13 +0,0 @@
1
- diff --git a/src/FXString.cpp b/src/FXString.cpp
2
- index fe1120a..b1112dc 100644
3
- --- a/src/FXString.cpp
4
- +++ b/src/FXString.cpp
5
- @@ -2365,7 +2365,7 @@ FXString& FXString::vformat(const FXchar* fmt,va_list args){
6
- #else
7
- va_list ag;
8
- x: va_copy(ag,args);
9
- - result=vsnprintf(str,length()+1,fmt,ag);
10
- + result=vsnprintf(str,empty() ? 0 : length()+1,fmt,ag);
11
- va_end(ag);
12
- if(result<0){ length(FXMAX(64,length()*2)); goto x; }
13
- if(length()<result){ length(result); goto x; }