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 +4 -4
- data/Rakefile +16 -1
- data/extconf.rb +55 -54
- data/lib/Qt4.rb +7 -4
- data/lib/qtbindings_version.rb +2 -2
- data/qtbindings-qt.gemspec +17 -0
- data/qtbindingsnative.gemspec +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb1a13dfa6a4788219c66e0ed52bd76f4893044
|
4
|
+
data.tar.gz: 78b868e86ad325665e8f6846e2564a1ddad363ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
44
|
-
file.puts "\t-mkdir
|
45
|
-
file.puts "\t-mkdir
|
46
|
-
file.puts "\t-mkdir
|
47
|
-
file.puts "\t-mkdir
|
48
|
-
file.puts "\t-mkdir
|
49
|
-
file.puts "\t-mkdir
|
50
|
-
file.puts "\t-mkdir
|
51
|
-
file.puts "\t-mkdir
|
52
|
-
file.puts "\t-mkdir
|
53
|
-
file.puts "\t-mkdir
|
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
|
69
|
-
file.puts "\t-cd
|
70
|
-
file.puts "\t-cd
|
71
|
-
file.puts "\t-cd
|
72
|
-
file.puts "\t-cd
|
73
|
-
file.puts "\t-cd
|
74
|
-
file.puts "\t-cd
|
75
|
-
file.puts "\t-cd
|
76
|
-
file.puts "\t-cd
|
77
|
-
file.puts "\t-cd
|
78
|
-
file.puts "\t-cd
|
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
|
149
|
-
file.puts "\tdel /F /Q
|
150
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\accessible\\*.dll
|
151
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\bearer\\*.dll
|
152
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\codecs\\*.dll
|
153
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\designer\\*.dll
|
154
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\graphicssystems\\*.dll
|
155
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\iconengines\\*.dll
|
156
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\imageformats\\*.dll
|
157
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\phonon_backend\\*.dll
|
158
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\qmltooling\\*.dll
|
159
|
-
file.puts "\tcopy #{qt_sdk_path}\\plugins\\sqldrivers\\*.dll
|
160
|
-
file.puts "\tdel /F /Q
|
161
|
-
file.puts "\tdel /F /Q
|
162
|
-
file.puts "\tdel /F /Q
|
163
|
-
file.puts "\tdel /F /Q
|
164
|
-
file.puts "\tdel /F /Q
|
165
|
-
file.puts "\tdel /F /Q
|
166
|
-
file.puts "\tdel /F /Q
|
167
|
-
file.puts "\tdel /F /Q
|
168
|
-
file.puts "\tdel /F /Q
|
169
|
-
file.puts "\tdel /F /Q
|
170
|
-
file.puts "\tdel /F /Q
|
171
|
-
file.puts "\tdel /F /Q
|
172
|
-
file.puts "\tdel /F /Q
|
173
|
-
file.puts "\tdel /F /Q
|
174
|
-
file.puts "\tdel /F /Q
|
175
|
-
file.puts "\tdel /F /Q
|
176
|
-
file.puts "\tdel /F /Q
|
177
|
-
file.puts "\tdel /F /Q
|
178
|
-
file.puts "\tdel /F /Q
|
179
|
-
file.puts "\tdel /F /Q
|
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
|
-
|
6
|
-
|
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/
|
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/
|
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'
|
data/lib/qtbindings_version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
QTBINDINGS_VERSION = '4.8.5.
|
2
|
-
QTBINDINGS_RELEASE_DATE = '
|
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
|
data/qtbindingsnative.gemspec
CHANGED
@@ -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.
|
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/**/*', '
|
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.
|
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:
|
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
|