gdal 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,58 @@
1
+ # This is monkeypatch for Ruby 2.2.0+
2
+ # Method pkg_config is broken on Ubuntu 12.04, so I replace it to method from Ruby 2.1.5
3
+
4
+ if RUBY_VERSION >= '2.2.0'
5
+
6
+ module MakeMakefile
7
+ def pkg_config(pkg, option=nil)
8
+ if pkgconfig = with_config("#{pkg}-config") and find_executable0(pkgconfig)
9
+ # iff package specific config command is given
10
+ elsif ($PKGCONFIG ||=
11
+ (pkgconfig = with_config("pkg-config", ("pkg-config" unless CROSS_COMPILING))) &&
12
+ find_executable0(pkgconfig) && pkgconfig) and
13
+ system("#{$PKGCONFIG} --exists #{pkg}")
14
+ # default to pkg-config command
15
+ pkgconfig = $PKGCONFIG
16
+ get = proc {|opt|
17
+ opt = IO.popen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read)
18
+ opt.strip if $?.success?
19
+ }
20
+ elsif find_executable0(pkgconfig = "#{pkg}-config")
21
+ # default to package specific config command, as a last resort.
22
+ else
23
+ pkgconfig = nil
24
+ end
25
+ if pkgconfig
26
+ get ||= proc {|opt|
27
+ opt = IO.popen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read)
28
+ opt.strip if $?.success?
29
+ }
30
+ end
31
+ orig_ldflags = $LDFLAGS
32
+ if get and option
33
+ get[option]
34
+ elsif get and try_ldflags(ldflags = get['libs'])
35
+ if incflags = get['cflags-only-I']
36
+ $INCFLAGS << " " << incflags
37
+ cflags = get['cflags-only-other']
38
+ else
39
+ cflags = get['cflags']
40
+ end
41
+ libs = get['libs-only-l'] || ''
42
+ ldflags = (Shellwords.shellwords(ldflags) - Shellwords.shellwords(libs)).quote.join(" ")
43
+ $CFLAGS += " " << cflags
44
+ $CXXFLAGS += " " << cflags
45
+ $LDFLAGS = [orig_ldflags, ldflags].join(' ')
46
+ $libs += " " << libs
47
+ Logging::message "package configuration for %s\n", pkg
48
+ Logging::message "cflags: %s\nldflags: %s\nlibs: %s\n\n",
49
+ cflags, ldflags, libs
50
+ [cflags, ldflags, libs]
51
+ else
52
+ Logging::message "package configuration for %s is not found\n", pkg
53
+ nil
54
+ end
55
+ end
56
+ end
57
+
58
+ end
@@ -1,5 +1,5 @@
1
1
  module Gdal
2
2
  module Ruby
3
- VERSION = "0.0.7"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -1 +1,5 @@
1
1
  require 'gdal-ruby/version'
2
+ require 'gdal-ruby/gdal'
3
+ require 'gdal-ruby/ogr'
4
+ require 'gdal-ruby/osr'
5
+ require 'gdal-ruby/gdalconst'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-04 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -65,6 +65,7 @@ extra_rdoc_files: []
65
65
  files:
66
66
  - ".gitignore"
67
67
  - ".travis.yml"
68
+ - CHANGELOG.md
68
69
  - Gemfile
69
70
  - LICENSE
70
71
  - Makefile
@@ -79,6 +80,7 @@ files:
79
80
  - ext/gdal-ruby/ogr/ogr.cpp
80
81
  - ext/gdal-ruby/osr/extconf.rb
81
82
  - ext/gdal-ruby/osr/osr.cpp
83
+ - ext/gdal-ruby/ruby-2.2-patch.rb
82
84
  - gdal.gemspec
83
85
  - lib/gdal-ruby/version.rb
84
86
  - lib/gdal.rb