qtbindings 4.8.5.1 → 4.8.5.2

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: ac72c5128f255b6d5a8b7502cdc552c2d77c147b
4
- data.tar.gz: db7c9c8caedfd1f80ec5178e63b66f1ca7bddb69
3
+ metadata.gz: 7bb1a13dfa6a4788219c66e0ed52bd76f4893044
4
+ data.tar.gz: 78b868e86ad325665e8f6846e2564a1ddad363ed
5
5
  SHA512:
6
- metadata.gz: cc5f7d42dff2ab33c70449dc06af4c60117f2349b4b1789367bd68d311bb68ef6e435a833c0d3a2c7aba94aa95af78548ed3b03401e52f7e6a649a0f366a8c4c
7
- data.tar.gz: 92e96622e206ce651f314399e7b17aab99b1e39bd1be559c6758e11b6452846e5ca099bc4ddb63715c09411e5246303a0ba8c73ce3be9b4d141fed5221e88aa3
6
+ metadata.gz: 4d4e339fadc3c63d885d9d6be07a6c74e3358064dfa11f8f58740fa852c95137d4732d1624c1773ecb3053455ca5d3b1892bc39af468a8b474db420eee6b5fab
7
+ data.tar.gz: 0a0b4ae4916789e898a4cc8c85daacc92710f461c7274f303ff4a3705554abd87514ab5e0d2cd158bf68222770e668ed52f8580fc1fdd693f96ad3f25065f80e
data/Rakefile CHANGED
@@ -20,6 +20,10 @@ def set_version
20
20
  file.write("QTBINDINGS_VERSION = '#{ENV['VERSION']}'\n")
21
21
  file.write("QTBINDINGS_RELEASE_DATE = '#{Time.now}'\n")
22
22
  end
23
+ File.open('qtlib/qtbindings_qt_version.rb', 'w') do |file|
24
+ file.write("QTBINDINGS_QT_VERSION = '#{ENV['VERSION'].split('.')[0..-2].join('.')}'\n")
25
+ file.write("QTBINDINGS_QT_RELEASE_DATE = '#{Time.now}'\n")
26
+ end
23
27
  end
24
28
  end
25
29
 
@@ -29,6 +33,10 @@ def clear_version
29
33
  file.write("QTBINDINGS_VERSION = '0.0.0.0'\n")
30
34
  file.write("QTBINDINGS_RELEASE_DATE = ''\n")
31
35
  end
36
+ File.open('lib/qtbindings_qt_version.rb', 'w') do |file|
37
+ file.write("QTBINDINGS_QT_VERSION = '0.0.0'\n")
38
+ file.write("QTBINDINGS_QT_RELEASE_DATE = ''\n")
39
+ end
32
40
  end
33
41
  end
34
42
 
@@ -84,11 +92,18 @@ end
84
92
  task :gemnative do
85
93
  warn_version()
86
94
  set_version()
87
- system("#{MAKE} installqt")
88
95
  system("gem build qtbindingsnative.gemspec")
89
96
  clear_version()
90
97
  end
91
98
 
99
+ task :gemqt do
100
+ warn_version()
101
+ set_version()
102
+ system("#{MAKE} installqt")
103
+ system("gem build qtbindings-qt.gemspec")
104
+ clear_version()
105
+ end
106
+
92
107
  task :build do
93
108
  Rake::Task[:extconf].execute
94
109
  Rake::Task[:all].execute
data/extconf.rb CHANGED
@@ -40,17 +40,17 @@ File.open('Makefile', 'w') do |file|
40
40
  file.puts "\t-mkdir ext\\build"
41
41
  file.puts "\t-mkdir bin\\1.9"
42
42
  file.puts "\t-mkdir bin\\2.0"
43
- file.puts "\t-mkdir bin\\plugins"
44
- file.puts "\t-mkdir bin\\plugins\\accessible"
45
- file.puts "\t-mkdir bin\\plugins\\bearer"
46
- file.puts "\t-mkdir bin\\plugins\\codecs"
47
- file.puts "\t-mkdir bin\\plugins\\designer"
48
- file.puts "\t-mkdir bin\\plugins\\graphicssystems"
49
- file.puts "\t-mkdir bin\\plugins\\iconengines"
50
- file.puts "\t-mkdir bin\\plugins\\imageformats"
51
- file.puts "\t-mkdir bin\\plugins\\phonon_backend"
52
- file.puts "\t-mkdir bin\\plugins\\qmltooling"
53
- file.puts "\t-mkdir bin\\plugins\\sqldrivers"
43
+ file.puts "\t-mkdir qtbin\\plugins"
44
+ file.puts "\t-mkdir qtbin\\plugins\\accessible"
45
+ file.puts "\t-mkdir qtbin\\plugins\\bearer"
46
+ file.puts "\t-mkdir qtbin\\plugins\\codecs"
47
+ file.puts "\t-mkdir qtbin\\plugins\\designer"
48
+ file.puts "\t-mkdir qtbin\\plugins\\graphicssystems"
49
+ file.puts "\t-mkdir qtbin\\plugins\\iconengines"
50
+ file.puts "\t-mkdir qtbin\\plugins\\imageformats"
51
+ file.puts "\t-mkdir qtbin\\plugins\\phonon_backend"
52
+ file.puts "\t-mkdir qtbin\\plugins\\qmltooling"
53
+ file.puts "\t-mkdir qtbin\\plugins\\sqldrivers"
54
54
  file.puts "\t-mkdir lib\\1.9"
55
55
  file.puts "\t-mkdir lib\\2.0"
56
56
  file.puts ""
@@ -65,17 +65,18 @@ File.open('Makefile', 'w') do |file|
65
65
  file.puts "\t-cd bin && del /F /Q *.dll"
66
66
  file.puts "\t-cd bin && del /F /Q *.so"
67
67
  file.puts "\t-cd bin && del /F /Q *.exe"
68
- file.puts "\t-cd bin\\plugins && del /F /Q *"
69
- file.puts "\t-cd bin\\plugins\\accessible && del /F /Q *"
70
- file.puts "\t-cd bin\\plugins\\bearer && del /F /Q *"
71
- file.puts "\t-cd bin\\plugins\\codecs && del /F /Q *"
72
- file.puts "\t-cd bin\\plugins\\designer && del /F /Q *"
73
- file.puts "\t-cd bin\\plugins\\graphicssystems && del /F /Q *"
74
- file.puts "\t-cd bin\\plugins\\iconengines && del /F /Q *"
75
- file.puts "\t-cd bin\\plugins\\imageformats && del /F /Q *"
76
- file.puts "\t-cd bin\\plugins\\phonon_backend && del /F /Q *"
77
- file.puts "\t-cd bin\\plugins\\qmltooling && del /F /Q *"
78
- file.puts "\t-cd bin\\plugins\\sqldrivers && del /F /Q *"
68
+ file.puts "\t-cd qtbin && del /F /Q *.dll"
69
+ file.puts "\t-cd qtbin\\plugins && del /F /Q *"
70
+ file.puts "\t-cd qtbin\\plugins\\accessible && del /F /Q *"
71
+ file.puts "\t-cd qtbin\\plugins\\bearer && del /F /Q *"
72
+ file.puts "\t-cd qtbin\\plugins\\codecs && del /F /Q *"
73
+ file.puts "\t-cd qtbin\\plugins\\designer && del /F /Q *"
74
+ file.puts "\t-cd qtbin\\plugins\\graphicssystems && del /F /Q *"
75
+ file.puts "\t-cd qtbin\\plugins\\iconengines && del /F /Q *"
76
+ file.puts "\t-cd qtbin\\plugins\\imageformats && del /F /Q *"
77
+ file.puts "\t-cd qtbin\\plugins\\phonon_backend && del /F /Q *"
78
+ file.puts "\t-cd qtbin\\plugins\\qmltooling && del /F /Q *"
79
+ file.puts "\t-cd qtbin\\plugins\\sqldrivers && del /F /Q *"
79
80
  file.puts "\t-cd bin\\1.9 && del /F /Q *"
80
81
  file.puts "\t-cd bin\\2.0 && del /F /Q *"
81
82
  file.puts "\t-cd lib\\1.9 && del /F /Q *"
@@ -145,38 +146,38 @@ File.open('Makefile', 'w') do |file|
145
146
  file.puts "\t-copy ext\\build\\ruby\\qtruby\\tools\\rbuic\\rbuic4.exe bin\\#{ruby_version}"
146
147
  file.puts ""
147
148
  file.puts "installqt: makedirs"
148
- file.puts "\tcopy #{qt_sdk_path}\\bin\\*.dll bin"
149
- file.puts "\tdel /F /Q bin\\*d4.dll"
150
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\accessible\\*.dll bin\\plugins\\accessible"
151
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\bearer\\*.dll bin\\plugins\\bearer"
152
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\codecs\\*.dll bin\\plugins\\codecs"
153
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\designer\\*.dll bin\\plugins\\designer"
154
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\graphicssystems\\*.dll bin\\plugins\\graphicssystems"
155
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\iconengines\\*.dll bin\\plugins\\iconengines"
156
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\imageformats\\*.dll bin\\plugins\\imageformats"
157
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\phonon_backend\\*.dll bin\\plugins\\phonon_backend"
158
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\qmltooling\\*.dll bin\\plugins\\qmltooling"
159
- file.puts "\tcopy #{qt_sdk_path}\\plugins\\sqldrivers\\*.dll bin\\plugins\\sqldrivers"
160
- file.puts "\tdel /F /Q bin\\plugins\\accessible\\*d.dll"
161
- file.puts "\tdel /F /Q bin\\plugins\\accessible\\*d4.dll"
162
- file.puts "\tdel /F /Q bin\\plugins\\bearer\\*d.dll"
163
- file.puts "\tdel /F /Q bin\\plugins\\bearer\\*d4.dll"
164
- file.puts "\tdel /F /Q bin\\plugins\\codecs\\*d.dll"
165
- file.puts "\tdel /F /Q bin\\plugins\\codecs\\*d4.dll"
166
- file.puts "\tdel /F /Q bin\\plugins\\designer\\*d.dll"
167
- file.puts "\tdel /F /Q bin\\plugins\\designer\\*d4.dll"
168
- file.puts "\tdel /F /Q bin\\plugins\\graphicssystems\\*d.dll"
169
- file.puts "\tdel /F /Q bin\\plugins\\graphicssystems\\*d4.dll"
170
- file.puts "\tdel /F /Q bin\\plugins\\iconengines\\*d.dll"
171
- file.puts "\tdel /F /Q bin\\plugins\\iconengines\\*d4.dll"
172
- file.puts "\tdel /F /Q bin\\plugins\\imageformats\\*d.dll"
173
- file.puts "\tdel /F /Q bin\\plugins\\imageformats\\*d4.dll"
174
- file.puts "\tdel /F /Q bin\\plugins\\phonon_backend\\*d.dll"
175
- file.puts "\tdel /F /Q bin\\plugins\\phonon_backend\\*d4.dll"
176
- file.puts "\tdel /F /Q bin\\plugins\\qmltooling\\*d.dll"
177
- file.puts "\tdel /F /Q bin\\plugins\\qmltooling\\*d4.dll"
178
- file.puts "\tdel /F /Q bin\\plugins\\sqldrivers\\*d.dll"
179
- file.puts "\tdel /F /Q bin\\plugins\\sqldrivers\\*d4.dll"
149
+ file.puts "\tcopy #{qt_sdk_path}\\bin\\*.dll qtbin"
150
+ file.puts "\tdel /F /Q qtbin\\*d4.dll"
151
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\accessible\\*.dll qtbin\\plugins\\accessible"
152
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\bearer\\*.dll qtbin\\plugins\\bearer"
153
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\codecs\\*.dll qtbin\\plugins\\codecs"
154
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\designer\\*.dll qtbin\\plugins\\designer"
155
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\graphicssystems\\*.dll qtbin\\plugins\\graphicssystems"
156
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\iconengines\\*.dll qtbin\\plugins\\iconengines"
157
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\imageformats\\*.dll qtbin\\plugins\\imageformats"
158
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\phonon_backend\\*.dll qtbin\\plugins\\phonon_backend"
159
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\qmltooling\\*.dll qtbin\\plugins\\qmltooling"
160
+ file.puts "\tcopy #{qt_sdk_path}\\plugins\\sqldrivers\\*.dll qtbin\\plugins\\sqldrivers"
161
+ file.puts "\tdel /F /Q qtbin\\plugins\\accessible\\*d.dll"
162
+ file.puts "\tdel /F /Q qtbin\\plugins\\accessible\\*d4.dll"
163
+ file.puts "\tdel /F /Q qtbin\\plugins\\bearer\\*d.dll"
164
+ file.puts "\tdel /F /Q qtbin\\plugins\\bearer\\*d4.dll"
165
+ file.puts "\tdel /F /Q qtbin\\plugins\\codecs\\*d.dll"
166
+ file.puts "\tdel /F /Q qtbin\\plugins\\codecs\\*d4.dll"
167
+ file.puts "\tdel /F /Q qtbin\\plugins\\designer\\*d.dll"
168
+ file.puts "\tdel /F /Q qtbin\\plugins\\designer\\*d4.dll"
169
+ file.puts "\tdel /F /Q qtbin\\plugins\\graphicssystems\\*d.dll"
170
+ file.puts "\tdel /F /Q qtbin\\plugins\\graphicssystems\\*d4.dll"
171
+ file.puts "\tdel /F /Q qtbin\\plugins\\iconengines\\*d.dll"
172
+ file.puts "\tdel /F /Q qtbin\\plugins\\iconengines\\*d4.dll"
173
+ file.puts "\tdel /F /Q qtbin\\plugins\\imageformats\\*d.dll"
174
+ file.puts "\tdel /F /Q qtbin\\plugins\\imageformats\\*d4.dll"
175
+ file.puts "\tdel /F /Q qtbin\\plugins\\phonon_backend\\*d.dll"
176
+ file.puts "\tdel /F /Q qtbin\\plugins\\phonon_backend\\*d4.dll"
177
+ file.puts "\tdel /F /Q qtbin\\plugins\\qmltooling\\*d.dll"
178
+ file.puts "\tdel /F /Q qtbin\\plugins\\qmltooling\\*d4.dll"
179
+ file.puts "\tdel /F /Q qtbin\\plugins\\sqldrivers\\*d.dll"
180
+ file.puts "\tdel /F /Q qtbin\\plugins\\sqldrivers\\*d4.dll"
180
181
  else
181
182
  file.puts "all: clean build"
182
183
  file.puts ""
data/lib/Qt4.rb CHANGED
@@ -2,18 +2,21 @@ windows = false
2
2
  platform = RUBY_PLATFORM.split("-")[1]
3
3
  windows = true if platform =~ /mswin32/ or platform =~ /mingw32/
4
4
 
5
- module Qt
6
- PLUGIN_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', 'bin', 'plugins'))
5
+ begin
6
+ require 'qtbindings-qt'
7
+ rescue LoadError
8
+ # Oh well - Hopefully not using the Windows binary gem
7
9
  end
10
+
8
11
  if RUBY_VERSION.split('.')[0].to_i == 1
9
12
  if windows
10
- ENV['PATH'] = File.join(File.dirname(__FILE__), '../bin') + ';' + File.join(File.dirname(__FILE__), '../lib/1.9') + ';' + File.join(File.dirname(__FILE__), '../bin/plugins') + ';' + File.join(File.dirname(__FILE__), '../bin/1.9') + ';' + ENV['PATH']
13
+ ENV['PATH'] = File.join(File.dirname(__FILE__), '../bin') + ';' + File.join(File.dirname(__FILE__), '../lib/1.9') + ';' + File.join(File.dirname(__FILE__), '../bin/1.9') + ';' + ENV['PATH']
11
14
  end
12
15
  $: << File.join(File.dirname(__FILE__), '../lib/1.9')
13
16
  require '1.9/qtruby4'
14
17
  else
15
18
  if windows
16
- ENV['PATH'] = File.join(File.dirname(__FILE__), '../bin') + ';' + File.join(File.dirname(__FILE__), '../lib/2.0') + ';' + File.join(File.dirname(__FILE__), '../bin/plugins') + ';' + File.join(File.dirname(__FILE__), '../bin/2.0') + ';' + ENV['PATH']
19
+ ENV['PATH'] = File.join(File.dirname(__FILE__), '../bin') + ';' + File.join(File.dirname(__FILE__), '../lib/2.0') + ';' + File.join(File.dirname(__FILE__), '../bin/2.0') + ';' + ENV['PATH']
17
20
  end
18
21
  $: << File.join(File.dirname(__FILE__), '../lib/2.0')
19
22
  require '2.0/qtruby4'
@@ -1,2 +1,2 @@
1
- QTBINDINGS_VERSION = '4.8.5.1'
2
- QTBINDINGS_RELEASE_DATE = '2013-12-04 08:42:16 -0700'
1
+ QTBINDINGS_VERSION = '4.8.5.2'
2
+ QTBINDINGS_RELEASE_DATE = '2014-01-07 11:22:07 -0700'
@@ -0,0 +1,17 @@
1
+ require './qtlib/qtbindings_qt_version'
2
+
3
+ spec = Gem::Specification.new do |s|
4
+ s.authors = ['Ryan Melton', 'Jason Thomas']
5
+ s.email = 'kde-bindings@kde.org'
6
+ s.rubyforge_project = 'qtbindings-qt'
7
+ s.platform = Gem::Platform::CURRENT
8
+ s.summary = "Qt bindings for ruby - Qt Dlls"
9
+ s.homepage = "http://github.com/ryanmelt/qtbindings"
10
+ s.name = 'qtbindings-qt'
11
+ s.version = QTBINDINGS_QT_VERSION
12
+ s.requirements << 'none'
13
+ s.require_path = 'qtlib'
14
+ s.files = Dir['qtlib/**/*', 'qtbin/**/*'].to_a
15
+ s.description = 'qtbindings-qt contains the compiled qt dlls'
16
+ s.licenses = ['LGPLv2.1']
17
+ end
@@ -9,9 +9,10 @@ spec = Gem::Specification.new do |s|
9
9
  s.homepage = "http://github.com/ryanmelt/qtbindings"
10
10
  s.name = 'qtbindings'
11
11
  s.version = QTBINDINGS_VERSION
12
- s.requirements << 'none'
12
+ s.required_ruby_version = '>= 1.9.3'
13
+ s.add_dependency 'qtbindings-qt', QTBINDINGS_VERSION.split('.')[0..-2].join('.')
13
14
  s.require_path = 'lib'
14
- s.files = Dir['lib/**/*', 'bin/**/*', 'examples/**/*', 'ext/**/*', '*.txt', 'extconf.rb', '*.gemspec', 'Rakefile'].to_a
15
+ s.files = Dir['lib/**/*', 'bin/**/*', 'examples/**/*', '*.txt', 'extconf.rb', '*.gemspec', 'Rakefile'].to_a
15
16
  s.executables = ['smokeapi', 'smokedeptool', 'rbrcc', 'rbuic4', 'rbqtapi']
16
17
  s.description = 'qtbindings provides ruby bindings to QT4.x. It is derived from the kdebindings project.'
17
18
  s.licenses = ['LGPLv2.1']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qtbindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.5.1
4
+ version: 4.8.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-12-04 00:00:00.000000000 Z
14
+ date: 2014-01-07 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: qtbindings provides ruby bindings to QT4.x. It is derived from the kdebindings
17
17
  project.
@@ -793,6 +793,7 @@ files:
793
793
  - README.txt
794
794
  - TODO.txt
795
795
  - extconf.rb
796
+ - qtbindings-qt.gemspec
796
797
  - qtbindings.gemspec
797
798
  - qtbindingsnative.gemspec
798
799
  - Rakefile