hornetseye-xorg 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +5 -99
- data/config.rb +22 -0
- data/ext/x11window.cc +1 -1
- data/ext/xvideoimagepainter.cc +1 -1
- metadata +36 -58
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 560e997aa39f5ed35b92d4437c7bf995af0c393c
|
4
|
+
data.tar.gz: 81315dc943d3b96b53cc50c7218917d8361d277b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 13ec962a14bcaba471cd013c21a9c7dce6e6c20a14614ee2d55d767b0519ced17ea5f2f10337452294da7087a469fa8e464d523e502ed42d368c28a19ac8da80
|
7
|
+
data.tar.gz: 2f069c8a9841e050d1e8a500d963abc153b236c9d946ad212f7a8b1f4665a59824be0cdf6ddde23b57458894f3eab89d7ee78b7f4f1e085e59da02a6ea03004b
|
data/Rakefile
CHANGED
@@ -5,34 +5,15 @@ require 'rake/testtask'
|
|
5
5
|
require 'rake/packagetask'
|
6
6
|
require 'rake/loaders/makefile'
|
7
7
|
require 'rbconfig'
|
8
|
-
|
9
|
-
PKG_NAME = 'hornetseye-xorg'
|
10
|
-
PKG_VERSION = '1.0.7'
|
11
|
-
CFG = RbConfig::CONFIG
|
12
|
-
CXX = ENV[ 'CXX' ] || 'g++'
|
13
|
-
RB_FILES = FileList[ 'lib/**/*.rb' ]
|
14
|
-
CC_FILES = FileList[ 'ext/*.cc' ]
|
15
|
-
HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
|
16
|
-
TC_FILES = FileList[ 'test/tc_*.rb' ]
|
17
|
-
TS_FILES = FileList[ 'test/ts_*.rb' ]
|
18
|
-
SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
|
19
|
-
PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
|
20
|
-
RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
|
21
|
-
BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
|
22
|
-
RB_FILES + TS_FILES + TC_FILES
|
23
|
-
SUMMARY = %q{Graphical output under X.Org}
|
24
|
-
DESCRIPTION = %q{This Ruby extension provides graphical output under X.Org.}
|
25
|
-
LICENSE = 'GPL-3+'
|
26
|
-
AUTHOR = %q{Jan Wedekind}
|
27
|
-
EMAIL = %q{jan@wedesoft.de}
|
28
|
-
HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-xorg/}
|
8
|
+
require_relative 'config'
|
29
9
|
|
30
10
|
OBJ = CC_FILES.ext 'o'
|
31
11
|
$CXXFLAGS = "-DNDEBUG -DHAVE_CONFIG_H -D__STDC_CONSTANT_MACROS #{CFG[ 'CPPFLAGS' ]} #{CFG[ 'CFLAGS' ]}"
|
32
12
|
$CXXFLAGS = "#{$CXXFLAGS} -I/usr/X11/include"
|
33
|
-
if CFG[
|
34
|
-
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[
|
35
|
-
|
13
|
+
if CFG['rubyarchhdrdir']
|
14
|
+
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
|
15
|
+
elsif CFG['rubyhdrdir']
|
16
|
+
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir' ]} -I#{CFG['rubyhdrdir']}/#{CFG['arch']}"
|
36
17
|
else
|
37
18
|
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'archdir' ]}"
|
38
19
|
end
|
@@ -134,81 +115,6 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
|
|
134
115
|
p.package_files = PKG_FILES
|
135
116
|
end
|
136
117
|
|
137
|
-
begin
|
138
|
-
require 'rubygems'
|
139
|
-
require 'rubygems/builder'
|
140
|
-
$SPEC = Gem::Specification.new do |s|
|
141
|
-
s.name = PKG_NAME
|
142
|
-
s.version = PKG_VERSION
|
143
|
-
s.platform = Gem::Platform::RUBY
|
144
|
-
s.date = Date.today.to_s
|
145
|
-
s.summary = SUMMARY
|
146
|
-
s.description = DESCRIPTION
|
147
|
-
s.license = LICENSE
|
148
|
-
s.author = AUTHOR
|
149
|
-
s.email = EMAIL
|
150
|
-
s.homepage = HOMEPAGE
|
151
|
-
s.files = PKG_FILES
|
152
|
-
s.test_files = TC_FILES
|
153
|
-
s.require_paths = [ 'lib', 'ext' ]
|
154
|
-
s.rubyforge_project = %q{hornetseye}
|
155
|
-
s.extensions = %w{Rakefile}
|
156
|
-
s.has_rdoc = 'yard'
|
157
|
-
s.extra_rdoc_files = []
|
158
|
-
s.rdoc_options = %w{--no-private}
|
159
|
-
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
160
|
-
s.add_dependency %<multiarray>, [ '~> 1.0' ]
|
161
|
-
s.add_dependency %<hornetseye-frame>, [ '~> 1.0' ]
|
162
|
-
s.add_development_dependency %q{rake}
|
163
|
-
end
|
164
|
-
GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
|
165
|
-
$BINSPEC = Gem::Specification.new do |s|
|
166
|
-
s.name = PKG_NAME
|
167
|
-
s.version = PKG_VERSION
|
168
|
-
s.platform = Gem::Platform::CURRENT
|
169
|
-
s.date = Date.today.to_s
|
170
|
-
s.summary = SUMMARY
|
171
|
-
s.description = DESCRIPTION
|
172
|
-
s.license = LICENSE
|
173
|
-
s.author = AUTHOR
|
174
|
-
s.email = EMAIL
|
175
|
-
s.homepage = HOMEPAGE
|
176
|
-
s.files = BIN_FILES
|
177
|
-
s.test_files = TC_FILES
|
178
|
-
s.require_paths = [ 'lib', 'ext' ]
|
179
|
-
s.rubyforge_project = %q{hornetseye}
|
180
|
-
s.has_rdoc = 'yard'
|
181
|
-
s.extra_rdoc_files = []
|
182
|
-
s.rdoc_options = %w{--no-private}
|
183
|
-
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
184
|
-
s.add_dependency %<multiarray>, [ '~> 1.0' ]
|
185
|
-
s.add_dependency %<hornetseye-frame>, [ '~> 1.0' ]
|
186
|
-
end
|
187
|
-
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
|
188
|
-
desc "Build the gem file #{GEM_SOURCE}"
|
189
|
-
task :gem => [ "pkg/#{GEM_SOURCE}" ]
|
190
|
-
file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
|
191
|
-
when_writing 'Creating GEM' do
|
192
|
-
Gem::Builder.new( $SPEC ).build
|
193
|
-
verbose true do
|
194
|
-
FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
|
195
|
-
end
|
196
|
-
end
|
197
|
-
end
|
198
|
-
desc "Build the gem file #{GEM_BINARY}"
|
199
|
-
task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
|
200
|
-
file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
|
201
|
-
when_writing 'Creating binary GEM' do
|
202
|
-
Gem::Builder.new( $BINSPEC ).build
|
203
|
-
verbose true do
|
204
|
-
FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
|
205
|
-
end
|
206
|
-
end
|
207
|
-
end
|
208
|
-
rescue LoadError
|
209
|
-
STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
|
210
|
-
end
|
211
|
-
|
212
118
|
rule '.o' => '.cc' do |t|
|
213
119
|
sh "#{CXX} #{$CXXFLAGS} -c -o #{t.name} #{t.source}"
|
214
120
|
end
|
data/config.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
PKG_NAME = 'hornetseye-xorg'
|
4
|
+
PKG_VERSION = '1.0.8'
|
5
|
+
CFG = RbConfig::CONFIG
|
6
|
+
CXX = ENV[ 'CXX' ] || 'g++'
|
7
|
+
RB_FILES = ['config.rb'] + FileList[ 'lib/**/*.rb' ]
|
8
|
+
CC_FILES = FileList[ 'ext/*.cc' ]
|
9
|
+
HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
|
10
|
+
TC_FILES = FileList[ 'test/tc_*.rb' ]
|
11
|
+
TS_FILES = FileList[ 'test/ts_*.rb' ]
|
12
|
+
SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
|
13
|
+
PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
|
14
|
+
RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
|
15
|
+
BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
|
16
|
+
RB_FILES + TS_FILES + TC_FILES
|
17
|
+
SUMMARY = %q{Graphical output under X.Org}
|
18
|
+
DESCRIPTION = %q{This Ruby extension provides graphical output under X.Org.}
|
19
|
+
LICENSE = 'GPL-3+'
|
20
|
+
AUTHOR = %q{Jan Wedekind}
|
21
|
+
EMAIL = %q{jan@wedesoft.de}
|
22
|
+
HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-xorg/}
|
data/ext/x11window.cc
CHANGED
@@ -250,7 +250,7 @@ X11Window::X11Window(X11DisplayPtr display, X11PainterPtr painter,
|
|
250
250
|
|
251
251
|
Atom wmProperty = XInternAtom(display->get(), "_MOTIF_WM_HINTS", True);
|
252
252
|
Hints hints;
|
253
|
-
hints.flags = 2
|
253
|
+
hints.flags = 2;// WM_HINTS_DECORATIONS
|
254
254
|
hints.decorations = border ? 1 : 0;
|
255
255
|
XChangeProperty(display->get(), m_window, wmProperty, wmProperty, 32,
|
256
256
|
PropModeReplace,(unsigned char *)&hints, 5);
|
data/ext/xvideoimagepainter.cc
CHANGED
@@ -42,7 +42,7 @@ VALUE XVideoImagePainter::cRubyClass = Qnil;
|
|
42
42
|
VALUE XVideoImagePainter::rbHornetseye = Qnil;
|
43
43
|
|
44
44
|
std::set< XvPortID > XVideoImagePainter::grabbedPorts;
|
45
|
-
|
45
|
+
|
46
46
|
XVideoImagePainter::XVideoImagePainter(void):
|
47
47
|
m_port(0), m_requireColourKey(false), m_colourKey(0), m_xvImage(NULL)
|
48
48
|
{
|
metadata
CHANGED
@@ -1,80 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-xorg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.8
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jan Wedekind
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-05-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: malloc
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.1'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.1'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: multiarray
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: hornetseye-frame
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '1.0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
55
|
description: This Ruby extension provides graphical output under X.Org.
|
79
56
|
email: jan@wedesoft.de
|
80
57
|
executables: []
|
@@ -82,65 +59,66 @@ extensions:
|
|
82
59
|
- Rakefile
|
83
60
|
extra_rdoc_files: []
|
84
61
|
files:
|
85
|
-
-
|
86
|
-
- README.md
|
62
|
+
- ".document"
|
87
63
|
- COPYING
|
88
|
-
- .
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
- lib/hornetseye-xorg/x11display.rb
|
93
|
-
- lib/hornetseye-xorg/x11output.rb
|
94
|
-
- lib/hornetseye-xorg/x11window.rb
|
95
|
-
- lib/hornetseye-xorg/ximageoutput.rb
|
96
|
-
- lib/hornetseye_xorg_ext.rb
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- config.rb
|
67
|
+
- ext/error.hh
|
97
68
|
- ext/frame.cc
|
69
|
+
- ext/frame.hh
|
98
70
|
- ext/init.cc
|
99
71
|
- ext/openglimagepainter.cc
|
100
|
-
- ext/timer.cc
|
101
|
-
- ext/x11display.cc
|
102
|
-
- ext/x11output.cc
|
103
|
-
- ext/x11window.cc
|
104
|
-
- ext/ximagepainter.cc
|
105
|
-
- ext/xvideoimagepainter.cc
|
106
|
-
- ext/error.hh
|
107
|
-
- ext/frame.hh
|
108
72
|
- ext/openglimagepainter.hh
|
109
73
|
- ext/rubyinc.hh
|
110
74
|
- ext/rubytools.hh
|
75
|
+
- ext/rubytools.tcc
|
76
|
+
- ext/timer.cc
|
111
77
|
- ext/timer.hh
|
78
|
+
- ext/x11display.cc
|
112
79
|
- ext/x11display.hh
|
80
|
+
- ext/x11output.cc
|
113
81
|
- ext/x11output.hh
|
114
82
|
- ext/x11painter.hh
|
83
|
+
- ext/x11window.cc
|
115
84
|
- ext/x11window.hh
|
85
|
+
- ext/ximagepainter.cc
|
116
86
|
- ext/ximagepainter.hh
|
87
|
+
- ext/xvideoimagepainter.cc
|
117
88
|
- ext/xvideoimagepainter.hh
|
118
|
-
-
|
89
|
+
- lib/hornetseye-xorg/frame.rb
|
90
|
+
- lib/hornetseye-xorg/node.rb
|
91
|
+
- lib/hornetseye-xorg/opengloutput.rb
|
92
|
+
- lib/hornetseye-xorg/x11display.rb
|
93
|
+
- lib/hornetseye-xorg/x11output.rb
|
94
|
+
- lib/hornetseye-xorg/x11window.rb
|
95
|
+
- lib/hornetseye-xorg/ximageoutput.rb
|
96
|
+
- lib/hornetseye_xorg_ext.rb
|
119
97
|
homepage: http://wedesoft.github.com/hornetseye-xorg/
|
120
98
|
licenses:
|
121
99
|
- GPL-3+
|
100
|
+
metadata: {}
|
122
101
|
post_install_message:
|
123
102
|
rdoc_options:
|
124
|
-
- --no-private
|
103
|
+
- "--no-private"
|
125
104
|
require_paths:
|
126
105
|
- lib
|
127
106
|
- ext
|
128
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
108
|
requirements:
|
131
|
-
- -
|
109
|
+
- - ">="
|
132
110
|
- !ruby/object:Gem::Version
|
133
111
|
version: '0'
|
134
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
113
|
requirements:
|
137
|
-
- -
|
114
|
+
- - ">="
|
138
115
|
- !ruby/object:Gem::Version
|
139
116
|
version: '0'
|
140
117
|
requirements: []
|
141
118
|
rubyforge_project: hornetseye
|
142
|
-
rubygems_version:
|
119
|
+
rubygems_version: 2.4.6
|
143
120
|
signing_key:
|
144
|
-
specification_version:
|
121
|
+
specification_version: 4
|
145
122
|
summary: Graphical output under X.Org
|
146
123
|
test_files: []
|
124
|
+
has_rdoc: yard
|