r2corba 1.4.1 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +15 -1
  3. data/LICENSE +5 -5
  4. data/README.rdoc +62 -0
  5. data/THANKS +7 -5
  6. data/bin/r2corba +1 -1
  7. data/bin/ridlc +1 -1
  8. data/bin/rins +1 -1
  9. data/ext/extload/extload.c +5 -6
  10. data/ext/libr2tao/any.cpp +1 -2
  11. data/ext/libr2tao/exception.cpp +0 -1
  12. data/ext/libr2tao/exception.h +0 -2
  13. data/ext/libr2tao/longdouble.cpp +0 -1
  14. data/ext/libr2tao/longdouble.h +0 -1
  15. data/ext/libr2tao/object.cpp +4 -4
  16. data/ext/libr2tao/object.h +0 -1
  17. data/ext/libr2tao/orb.cpp +8 -9
  18. data/ext/libr2tao/orb.h +0 -1
  19. data/ext/libr2tao/r2tao_export.h +1 -2
  20. data/ext/libr2tao/r2tao_ext.h +0 -13
  21. data/ext/libr2tao/required.cpp +3 -22
  22. data/ext/libr2tao/required.h +14 -51
  23. data/ext/libr2tao/typecode.cpp +0 -1
  24. data/ext/libr2tao/typecode.h +0 -1
  25. data/ext/libr2tao/values.cpp +13 -14
  26. data/ext/libr2tao/values.h +20 -23
  27. data/ext/librpoa/iortable.cpp +3 -3
  28. data/ext/librpoa/poa.cpp +7 -7
  29. data/ext/librpoa/poa.h +0 -1
  30. data/ext/librpoa/rpoa_export.h +0 -1
  31. data/ext/librpoa/servant.cpp +17 -92
  32. data/ext/librpoa/servant.h +13 -36
  33. data/ext/librpol/policies.cpp +0 -1
  34. data/ext/librpol/policies.h +0 -1
  35. data/ext/librpol/rpol_export.h +0 -1
  36. data/lib/corba.rb +0 -1
  37. data/lib/corba/cbase/IORMap.rb +0 -1
  38. data/lib/corba/cbase/ORB.rb +15 -10
  39. data/lib/corba/cbase/Request.rb +1 -2
  40. data/lib/corba/cbase/Streams.rb +2 -3
  41. data/lib/corba/cbase/Stub.rb +0 -1
  42. data/lib/corba/cbase/Typecode.rb +6 -7
  43. data/lib/corba/cbase/Values.rb +0 -1
  44. data/lib/corba/cbase/exception.rb +2 -3
  45. data/lib/corba/cbase/poa.rb +0 -1
  46. data/lib/corba/cbase/policies.rb +2 -3
  47. data/lib/corba/cbase/post_require.rb +1 -2
  48. data/lib/corba/cbase/require.rb +2 -1
  49. data/lib/corba/cmds/base.rb +1 -2
  50. data/lib/corba/cmds/test.rb +0 -1
  51. data/lib/corba/common/Any.rb +1 -2
  52. data/lib/corba/common/IDL.rb +5 -9
  53. data/lib/corba/common/ORB.rb +2 -3
  54. data/lib/corba/common/Object.rb +5 -3
  55. data/lib/corba/common/Request.rb +1 -2
  56. data/lib/corba/common/Servant.rb +0 -1
  57. data/lib/corba/common/Struct.rb +1 -2
  58. data/lib/corba/common/Stub.rb +1 -2
  59. data/lib/corba/common/Typecode.rb +56 -57
  60. data/lib/corba/common/Union.rb +1 -2
  61. data/lib/corba/common/Values.rb +1 -2
  62. data/lib/corba/common/const.rb +2 -3
  63. data/lib/corba/common/exception.rb +0 -1
  64. data/lib/corba/common/require.rb +8 -1
  65. data/lib/corba/common/version.rb +3 -4
  66. data/lib/corba/idl/IDL.rb +0 -1
  67. data/lib/corba/idl/IORTable.pidl +0 -1
  68. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  69. data/lib/corba/idl/require.rb +0 -1
  70. data/lib/corba/jbase/Any.rb +24 -25
  71. data/lib/corba/jbase/IORMap.rb +1 -2
  72. data/lib/corba/jbase/ORB.rb +17 -5
  73. data/lib/corba/jbase/Object.rb +12 -12
  74. data/lib/corba/jbase/Request.rb +6 -7
  75. data/lib/corba/jbase/Servant.rb +14 -14
  76. data/lib/corba/jbase/ServerRequest.rb +8 -9
  77. data/lib/corba/jbase/Streams.rb +4 -5
  78. data/lib/corba/jbase/Stub.rb +0 -1
  79. data/lib/corba/jbase/Typecode.rb +14 -15
  80. data/lib/corba/jbase/Values.rb +0 -1
  81. data/lib/corba/jbase/exception.rb +1 -2
  82. data/lib/corba/jbase/poa.rb +3 -4
  83. data/lib/corba/jbase/policies.rb +4 -5
  84. data/lib/corba/jbase/post_require.rb +0 -1
  85. data/lib/corba/jbase/require.rb +7 -5
  86. data/lib/corba/naming.rb +0 -1
  87. data/lib/corba/naming_service.rb +0 -1
  88. data/lib/corba/poa.rb +1 -2
  89. data/lib/corba/policies.rb +1 -2
  90. data/lib/corba/require.rb +2 -3
  91. data/lib/corba/svcs/ins/cos_naming.rb +64 -67
  92. data/lib/corba/svcs/ins/ins.rb +24 -25
  93. data/lib/corba/svcs/ins/naming_service.rb +3 -4
  94. data/lib/ridlbe/ruby/config.rb +55 -58
  95. data/lib/ridlbe/ruby/require.rb +0 -1
  96. data/lib/ridlbe/ruby/walker.rb +38 -38
  97. data/mkrf_conf_srcgem.rb +16 -12
  98. data/rakelib/bin.rake +2 -3
  99. data/rakelib/bin.rb +4 -5
  100. data/rakelib/build.rake +21 -21
  101. data/rakelib/config.rake +1 -2
  102. data/rakelib/config.rb +114 -22
  103. data/rakelib/ext.rake +16 -16
  104. data/rakelib/ext.rb +18 -49
  105. data/rakelib/ext_r2tao.rb +38 -25
  106. data/rakelib/gem.rake +86 -47
  107. data/rakelib/gem.rb +14 -15
  108. data/rakelib/package.rake +1 -2
  109. data/rakelib/test.rake +0 -1
  110. data/test/BiDirectional/Test.idl +0 -1
  111. data/test/BiDirectional/client.rb +4 -5
  112. data/test/BiDirectional/run_test.rb +1 -2
  113. data/test/BiDirectional/server.rb +4 -6
  114. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  115. data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
  116. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
  117. data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
  118. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  119. data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
  120. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
  121. data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
  122. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  123. data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
  124. data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
  125. data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
  126. data/test/Collocation/Diamond.idl +0 -1
  127. data/test/Collocation/run_test.rb +0 -1
  128. data/test/Collocation/test.rb +2 -3
  129. data/test/Connect_Timeout/Test.idl +0 -1
  130. data/test/Connect_Timeout/client.rb +3 -5
  131. data/test/Connect_Timeout/run_test.rb +0 -1
  132. data/test/DII/Test.idl +0 -1
  133. data/test/DII/client.rb +5 -6
  134. data/test/DII/run_test.rb +1 -2
  135. data/test/DII/server.rb +3 -4
  136. data/test/DSI/Test.idl +0 -1
  137. data/test/DSI/client.rb +3 -4
  138. data/test/DSI/run_test.rb +1 -2
  139. data/test/DSI/server.rb +3 -4
  140. data/test/Exceptions/Test.idl +0 -1
  141. data/test/Exceptions/client.rb +5 -6
  142. data/test/Exceptions/run_test.rb +1 -2
  143. data/test/Exceptions/server.rb +3 -4
  144. data/test/Hello/Test.idl +0 -1
  145. data/test/Hello/client.rb +3 -4
  146. data/test/Hello/run_test.rb +1 -2
  147. data/test/Hello/server.rb +3 -4
  148. data/test/IDL_Test/Test.idl +4 -1
  149. data/test/IDL_Test/client.rb +6 -5
  150. data/test/IDL_Test/run_test.rb +1 -2
  151. data/test/IDL_Test/server.rb +8 -4
  152. data/test/IORMap/Test.idl +0 -1
  153. data/test/IORMap/client.rb +3 -4
  154. data/test/IORMap/run_test.rb +1 -2
  155. data/test/IORMap/server.rb +4 -5
  156. data/test/IORTable/Test.idl +0 -1
  157. data/test/IORTable/client.rb +3 -4
  158. data/test/IORTable/run_test.rb +1 -2
  159. data/test/IORTable/server.rb +4 -5
  160. data/test/Implicit_Conversion/Test.idl +0 -1
  161. data/test/Implicit_Conversion/client.rb +4 -5
  162. data/test/Implicit_Conversion/run_test.rb +1 -2
  163. data/test/Implicit_Conversion/server.rb +3 -4
  164. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  165. data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
  166. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
  167. data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
  168. data/test/Multi_Threading/Simple/Test.idl +1 -2
  169. data/test/Multi_Threading/Simple/client.rb +18 -14
  170. data/test/Multi_Threading/Simple/run_test.rb +1 -2
  171. data/test/Multi_Threading/Simple/server.rb +6 -7
  172. data/test/Multi_Threading/Threads/Test.idl +0 -4
  173. data/test/Multi_Threading/Threads/client.rb +10 -13
  174. data/test/Multi_Threading/Threads/run_test.rb +1 -2
  175. data/test/Multi_Threading/Threads/server.rb +5 -8
  176. data/test/Multi_Threading/Threads/watchdog.rb +3 -3
  177. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  178. data/test/Multiple_Servant_Interfaces/client.rb +3 -4
  179. data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
  180. data/test/Multiple_Servant_Interfaces/server.rb +3 -4
  181. data/test/Nil/Test.idl +0 -1
  182. data/test/Nil/run_test.rb +0 -1
  183. data/test/Nil/test.rb +11 -9
  184. data/test/OBV/AbstractInterface/client.rb +3 -4
  185. data/test/OBV/AbstractInterface/run_test.rb +1 -2
  186. data/test/OBV/AbstractInterface/server.rb +3 -4
  187. data/test/OBV/AbstractInterface/test.idl +0 -1
  188. data/test/OBV/Custom/OBV_impl.rb +0 -1
  189. data/test/OBV/Custom/client.rb +3 -4
  190. data/test/OBV/Custom/run_test.rb +1 -2
  191. data/test/OBV/Custom/server.rb +3 -4
  192. data/test/OBV/Simple/OBV_impl.rb +0 -1
  193. data/test/OBV/Simple/client.rb +3 -4
  194. data/test/OBV/Simple/run_test.rb +1 -2
  195. data/test/OBV/Simple/server.rb +3 -4
  196. data/test/OBV/Simple_Event/Event_impl.rb +0 -1
  197. data/test/OBV/Simple_Event/client.rb +3 -4
  198. data/test/OBV/Simple_Event/run_test.rb +1 -2
  199. data/test/OBV/Simple_Event/server.rb +3 -4
  200. data/test/OBV/Supports/client.rb +3 -4
  201. data/test/OBV/Supports/run_test.rb +1 -2
  202. data/test/OBV/Supports/server.rb +3 -4
  203. data/test/OBV/Supports/supports.idl +0 -1
  204. data/test/OBV/Supports/supports_impl.rb +0 -1
  205. data/test/OBV/Tree/client.rb +3 -4
  206. data/test/OBV/Tree/run_test.rb +1 -2
  207. data/test/OBV/Tree/server.rb +3 -4
  208. data/test/OBV/Tree/test.idl +0 -1
  209. data/test/OBV/Truncatable/Extra.idl +0 -1
  210. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  211. data/test/OBV/Truncatable/client.rb +4 -5
  212. data/test/OBV/Truncatable/run_test.rb +1 -2
  213. data/test/OBV/Truncatable/server.rb +3 -4
  214. data/test/OBV/ValueBox/client.rb +44 -45
  215. data/test/OBV/ValueBox/run_test.rb +1 -2
  216. data/test/OBV/ValueBox/server.rb +29 -29
  217. data/test/Object/Test.idl +0 -1
  218. data/test/Object/client.rb +33 -25
  219. data/test/Object/run_test.rb +1 -2
  220. data/test/Object/server.rb +3 -4
  221. data/test/POA/run_test.rb +0 -1
  222. data/test/POA/test.rb +4 -5
  223. data/test/Param_Test/client.rb +8 -9
  224. data/test/Param_Test/run_test.rb +1 -2
  225. data/test/Param_Test/server.rb +7 -8
  226. data/test/Performance/Simple/Test.idl +0 -1
  227. data/test/Performance/Simple/client.rb +3 -4
  228. data/test/Performance/Simple/run_test.rb +1 -2
  229. data/test/Performance/Simple/server.rb +3 -4
  230. data/test/Policies/Test.idl +0 -1
  231. data/test/Policies/run_test.rb +0 -1
  232. data/test/Policies/test.rb +2 -4
  233. data/test/Timeout/client.rb +6 -7
  234. data/test/Timeout/run_test.rb +1 -2
  235. data/test/Timeout/server.rb +4 -5
  236. data/test/Timeout/test.idl +0 -1
  237. data/test/lib/assert.rb +0 -2
  238. data/test/lib/test.rb +15 -17
  239. data/test/test_runner.rb +6 -8
  240. metadata +221 -222
  241. data/README +0 -62
  242. data/ext/librpoa/srvreq_fix.cpp +0 -283
  243. data/ext/librpoa/srvreq_fix.h +0 -149
data/rakelib/ext.rake CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  if defined?(JRUBY_VERSION)
@@ -50,7 +49,7 @@ else # !JRUBY_VERSION
50
49
  cur_dir = Dir.getwd
51
50
  Dir.chdir 'ext'
52
51
  begin
53
- sh("perl #{_mwc} -type gnuace ext.mwc")
52
+ sh("perl #{_mwc} -type gnuace ext.mwc -workers #{R2CORBA::Config.cpu_cores}")
54
53
  ensure
55
54
  Dir.chdir cur_dir
56
55
  end
@@ -76,7 +75,7 @@ else # !JRUBY_VERSION
76
75
  cur_dir = Dir.getwd
77
76
  Dir.chdir 'ext'
78
77
  begin
79
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
78
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
80
79
  ensure
81
80
  Dir.chdir cur_dir
82
81
  end
@@ -105,7 +104,7 @@ else # !JRUBY_VERSION
105
104
  cur_dir = Dir.getwd
106
105
  Dir.chdir File.join('ext', 'extload')
107
106
  begin
108
- sh("perl #{_mwc} -type gnuace")
107
+ sh("perl #{_mwc} -type gnuace -workers #{R2CORBA::Config.cpu_cores}")
109
108
  ensure
110
109
  Dir.chdir cur_dir
111
110
  end
@@ -120,6 +119,8 @@ else # !JRUBY_VERSION
120
119
  cur_dir = Dir.getwd
121
120
  Dir.chdir File.join('ext', 'extload')
122
121
  begin
122
+ # check availability of make program
123
+ raise "#{get_config('makeprog')} missing! A working version of #{get_config('makeprog')} in the PATH is required." unless system("#{get_config('makeprog')}")
123
124
  sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
124
125
  ensure
125
126
  Dir.chdir cur_dir
@@ -130,7 +131,7 @@ else # !JRUBY_VERSION
130
131
  cur_dir = Dir.getwd
131
132
  Dir.chdir File.join('ext', 'extload')
132
133
  begin
133
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
134
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
134
135
  ensure
135
136
  Dir.chdir cur_dir
136
137
  end
@@ -188,7 +189,7 @@ else # !JRUBY_VERSION
188
189
  cur_dir = Dir.getwd
189
190
  Dir.chdir File.expand_path(get_config('aceroot'))
190
191
  begin
191
- sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc")
192
+ sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc -workers #{R2CORBA::Config.cpu_cores}")
192
193
  ensure
193
194
  Dir.chdir cur_dir
194
195
  end
@@ -206,11 +207,7 @@ else # !JRUBY_VERSION
206
207
  cur_dir = Dir.getwd
207
208
  Dir.chdir File.expand_path(get_config('aceroot'))
208
209
  begin
209
- if R2CORBA::Config.is_linux && R2CORBA::Config.cpu_cores > 2
210
- sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores - 2} #{get_config('with-debug') ? ' debug=1' : ''}")
211
- else
212
- sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
213
- end
210
+ sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
214
211
  ensure
215
212
  Dir.chdir cur_dir
216
213
  end
@@ -224,11 +221,14 @@ else # !JRUBY_VERSION
224
221
  task :clobber_tao do
225
222
  # clean ACE+TAO
226
223
  cur_dir = Dir.getwd
227
- Dir.chdir File.expand_path(get_config('aceroot'))
228
- begin
229
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
230
- ensure
231
- Dir.chdir cur_dir
224
+ ace_root = File.expand_path(get_config('aceroot'))
225
+ if File.exist?(ace_root)
226
+ Dir.chdir ace_root
227
+ begin
228
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
229
+ ensure
230
+ Dir.chdir cur_dir
231
+ end
232
232
  end
233
233
  end
234
234
  end
data/rakelib/ext.rb CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  require File.join(File.dirname(__FILE__), 'config.rb')
@@ -17,7 +16,7 @@ require File.join(File.dirname(__FILE__), 'ext_r2tao.rb')
17
16
  module R2CORBA
18
17
 
19
18
  module Ext
20
- ACE_FILES = [
19
+ ACE_FILES = [
21
20
  'ACE',
22
21
  'TAO',
23
22
  'TAO_TypeCodeFactory',
@@ -56,9 +55,9 @@ module R2CORBA
56
55
  if is_win32
57
56
  def self.sys_dlls
58
57
  sysdlls = []
59
- except_dll = R2CORBA::Config.is_win64 ? 'libgcc_s_sjlj-1.dll' : 'libgcc_s_dw2-1.dll'
58
+ except_dll = R2CORBA::Config.is_win64 ? 'libgcc_s_seh-1.dll' : 'libgcc_s_dw2-1.dll'
60
59
  ENV['PATH'].split(';').each do |p|
61
- if File.exists?(File.join(p, except_dll)) && File.exists?(File.join(p, 'libstdc++-6.dll'))
60
+ if File.exist?(File.join(p, except_dll)) && File.exist?(File.join(p, 'libstdc++-6.dll'))
62
61
  sysdlls << File.join(p, except_dll)
63
62
  sysdlls << File.join(p, 'libstdc++-6.dll')
64
63
  break
@@ -83,27 +82,6 @@ module R2CORBA
83
82
  ACE_FILES.collect { |fn| File.join(libdir, "lib#{fn}#{so_ext_}") }
84
83
  end
85
84
 
86
- @@osx_name = nil
87
- if RUBY_PLATFORM =~ /darwin/
88
- osx_ver_major, osx_ver_minor = (`uname -r`).strip.split('.')[0,2].collect {|n| n.to_i }
89
- if osx_ver_major == 10
90
- @@osx_name = case osx_ver_minor
91
- when 3
92
- 'panther'
93
- when 4
94
- 'tiger'
95
- when 5
96
- 'leopard'
97
- when 6,7,8
98
- 'snowleopard'
99
- end
100
- end
101
- platform_error unless @@osx_name
102
- end
103
- def self.osx_name
104
- @@osx_name
105
- end
106
-
107
85
  def self.ace_config
108
86
  case RUBY_PLATFORM
109
87
  when /mingw32/
@@ -113,7 +91,6 @@ module R2CORBA
113
91
  }
114
92
  when /linux/
115
93
  %Q{
116
- #define ACE_HAS_GETIFADDRS
117
94
  #include "ace/config-linux.h"
118
95
  }
119
96
  when /sparc-solaris/
@@ -124,8 +101,7 @@ module R2CORBA
124
101
  }
125
102
  when /darwin/
126
103
  %Q{
127
- #define ACE_HAS_GETIFADDRS
128
- #include "ace/config-macosx-#{osx_name}.h"
104
+ #include "ace/config-macosx.h"
129
105
  }
130
106
  else
131
107
  platform_error
@@ -146,19 +122,15 @@ debug=#{get_config('with-debug') ? 1 : 0}
146
122
  fl_reactor=0
147
123
  tk_reactor=0
148
124
  boost=0
149
- no_strict_aliasing=1
125
+ inline=0
150
126
  include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
151
127
  }
152
128
  when /linux/
153
129
  %Q{
154
130
  versioned_so=1
155
- threads=1
156
131
  ssl=#{get_config('with-ssl') ? 1 : 0}
157
132
  optimize=1
158
133
  debug=#{get_config('with-debug') ? 1 : 0}
159
- fl_reactor=0
160
- tk_reactor=0
161
- boost=0
162
134
  include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
163
135
  LDFLAGS += -Wl,-rpath,#{get_config('aceinstdir')}
164
136
  }
@@ -172,7 +144,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
172
144
  fl_reactor=0
173
145
  tk_reactor=0
174
146
  no_hidden_visibility=1
175
- #{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' : 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU' }
147
+ #{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' : 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU' }
176
148
  LDFLAGS += #{RB_CONFIG['SOLIBS']} #{ /^cc/i =~ RB_CONFIG['CC'] ? '-lCrun -lCstd' : ''}
177
149
  }
178
150
  when /darwin/
@@ -184,7 +156,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
184
156
  fl_reactor=0
185
157
  tk_reactor=0
186
158
  boost=0
187
- include $(ACE_ROOT)/include/makeinclude/platform_macosx_#{osx_name}.GNU
159
+ include $(ACE_ROOT)/include/makeinclude/platform_macosx.GNU
188
160
  LDFLAGS += -Wl,-headerpad_max_install_names
189
161
  FLAGS_C_CC += #{RB_CONFIG['ARCH_FLAG']}
190
162
  LDFLAGS += #{RB_CONFIG['ARCH_FLAG']}
@@ -202,7 +174,7 @@ workspace {
202
174
  $(TAO_ROOT)/TAO_IDL
203
175
  $(TAO_ROOT)/tao
204
176
  #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/Security.mpc' : ''}
205
- #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/SSLIOP.mpc' : ''}
177
+ #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/SSLIOP.mpc' : ''}
206
178
  exclude {
207
179
  bin
208
180
  docs
@@ -229,8 +201,6 @@ workspace {
229
201
 
230
202
  def self.default_features
231
203
  %Q{
232
- fl_reactor=0
233
- tk_reactor=1
234
204
  qos=0
235
205
  ssl=#{get_config('with-ssl') ? 1 : 0}
236
206
  ipv6=#{get_config('with-ipv6') ? 1 : 0}
@@ -238,23 +208,23 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
238
208
  end
239
209
 
240
210
  def self.ace_config_path
241
- File.join(get_config('aceroot'),'ace','config.h')
211
+ File.join(get_config('aceroot'), 'ace', 'config.h')
242
212
  end
243
213
 
244
214
  def self.platform_macros_path
245
- File.join(get_config('aceroot'),'include','makeinclude','platform_macros.GNU')
215
+ File.join(get_config('aceroot'), 'include', 'makeinclude', 'platform_macros.GNU')
246
216
  end
247
217
 
248
218
  def self.default_features_path
249
- File.join(get_config('aceroot'),'bin','MakeProjectCreator','config','default.features')
219
+ File.join(get_config('aceroot'), 'bin', 'MakeProjectCreator', 'config', 'default.features')
250
220
  end
251
221
 
252
222
  def self.tao_mwc_path
253
- File.join(get_config('aceroot'),'TAO4Ruby.mwc')
223
+ File.join(get_config('aceroot'), 'TAO4Ruby.mwc')
254
224
  end
255
225
 
256
226
  def self.tao_makefile
257
- File.join(get_config('aceroot'),'GNUmakefile')
227
+ File.join(get_config('aceroot'), 'GNUmakefile')
258
228
  end
259
229
 
260
230
  def self.ext_makefile
@@ -269,12 +239,12 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
269
239
  so_ext = '.dylib'
270
240
 
271
241
  inst_extlibs = Dir.glob(File.join('ext', '*.bundle'))
272
- inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+so_ext)}
242
+ inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + so_ext)}
273
243
  # cross dependencies of ext dynamic libs on each other
274
244
  # make sure they refer to *.bundle NOT *.dylib
275
245
  inst_extlibs.each do |extlib|
276
246
  inst_extlibs.each do |dep|
277
- dep_org = File.basename(dep, '.bundle')+so_ext
247
+ dep_org = File.basename(dep, '.bundle') + so_ext
278
248
  sh("install_name_tool -change #{dep_org} @rpath/#{File.basename(dep)} #{extlib}")
279
249
  end
280
250
  # add install directory as rpath; first delete rpath ignoring errors, next add the rpath
@@ -284,7 +254,7 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
284
254
  # dependencies on ACE+TAO libs
285
255
  inst_dylibs.each do |dylib|
286
256
  ACE_FILES.each do |dep|
287
- command("install_name_tool -change lib#{dep+so_ext} @rpath/lib#{dep+so_ext} #{dylib}")
257
+ command("install_name_tool -change lib#{dep + so_ext} @rpath/lib#{dep + so_ext} #{dylib}")
288
258
  end
289
259
  # add current dir and install dir as rpath entries; first delete rpath ignoring errors, next add the rpath
290
260
  sh("install_name_tool -delete_rpath . #{dylib} >/dev/null 2>&1")
@@ -295,8 +265,8 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
295
265
  elsif !is_win32
296
266
  # create unversioned ACE+TAO lib symlinks
297
267
 
298
- ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+'.so')}.each do |lib|
299
- Dir.glob(lib+'.*').each {|verlib| File.symlink(verlib, lib) unless File.exists?(lib)}
268
+ ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + '.so')}.each do |lib|
269
+ Dir.glob(lib + '.*').each {|verlib| File.symlink(verlib, lib) unless File.exist?(lib)}
300
270
  end
301
271
  end
302
272
  end
@@ -305,4 +275,3 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
305
275
  end # Ext
306
276
 
307
277
  end # R2CORBA
308
-
data/rakelib/ext_r2tao.rb CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  require 'open-uri'
@@ -20,7 +19,7 @@ module R2CORBA
20
19
  if RUBY_PLATFORM =~ /mingw32/
21
20
 
22
21
  mpc_os_block = <<OS_DEP__
23
- libs += #{File.basename(RB_CONFIG['LIBRUBY'],'.a').sub(/^lib/,'')}
22
+ libs += #{File.basename(RB_CONFIG['LIBRUBY'], '.a').sub(/^lib/, '')}
24
23
  libout = .
25
24
  dllout = .
26
25
  verbatim(gnuace, macros, 1) {
@@ -74,7 +73,7 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
74
73
  }
75
74
  dynamicflags = R2TAO_BUILD_DLL
76
75
  includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
77
- #{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
76
+ #{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
78
77
  .
79
78
  macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
80
79
  sharedname = r2tao
@@ -92,16 +91,16 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
92
91
  iortable.cpp
93
92
  }
94
93
  dynamicflags = R2TAO_POA_BUILD_DLL
95
- libpaths += #{File.join('..','libr2tao')}
94
+ libpaths += #{File.join('..', 'libr2tao')}
96
95
  includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
97
- #{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
96
+ #{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
98
97
  #{File.join('..', 'libr2tao')} \\
99
98
  .
100
99
  macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
101
100
  sharedname = rpoa
102
101
  libpaths += "#{RB_CONFIG['libdir']}"
103
102
  #{mpc_os_block}
104
- libs += r2tao#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
103
+ libs += r2tao#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
105
104
  }
106
105
  THE_END
107
106
 
@@ -114,7 +113,7 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
114
113
  dynamicflags = R2TAO_POL_BUILD_DLL
115
114
  libpaths += #{File.join('..', 'libr2tao')} #{File.join('..', 'librpoa')}
116
115
  includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
117
- #{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
116
+ #{RB_CONFIG['rubyhdrdir'] ? '"' + File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch']) + '"' : ''} \\
118
117
  #{File.join('..', 'libr2tao')} \\
119
118
  #{File.join('..', 'librpoa')} \\
120
119
  .
@@ -122,8 +121,8 @@ project : taolib, portableserver, anytypecode, dynamicany, dynamicinterface, typ
122
121
  sharedname = rpol
123
122
  libpaths += "#{RB_CONFIG['libdir']}"
124
123
  #{mpc_os_block}
125
- libs += r2tao#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
126
- libs += rpoa#{Config.is_win32 ? '.'+RB_CONFIG['DLEXT'] : ''}
124
+ libs += r2tao#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
125
+ libs += rpoa#{Config.is_win32 ? '.' + RB_CONFIG['DLEXT'] : ''}
127
126
  }
128
127
  THE_END
129
128
 
@@ -148,13 +147,7 @@ project {
148
147
  extload.c
149
148
  }
150
149
  dynamicflags = EXTLOAD_BUILD_DLL
151
- includes += "#{RB_CONFIG['rubyhdrdir'] || RB_CONFIG['archdir']}" \\
152
- #{RB_CONFIG['rubyhdrdir'] ? '"'+File.join(RB_CONFIG['rubyhdrdir'], RB_CONFIG['arch'])+'"' : ''} \\
153
- .
154
- macros += RUBY_VER_MAJOR=#{Config.rb_ver_major} RUBY_VER_MINOR=#{Config.rb_ver_minor} RUBY_VER_RELEASE=#{Config.rb_ver_release}
155
150
  sharedname = extload
156
- libpaths += "#{RB_CONFIG['libdir']}"
157
- libs += #{File.basename(RB_CONFIG['LIBRUBY'],'.a').sub(/^lib/,'')}
158
151
  libout = .
159
152
  dllout = .
160
153
  verbatim(gnuace, macros, 1) {
@@ -182,7 +175,7 @@ THE_END__
182
175
  def self.get_latest_ace_version
183
176
  print 'Latest ACE release is '
184
177
  _version = nil
185
- open('https://svn.dre.vanderbilt.edu/viewvc/Middleware/trunk/ACE/ace/Version.h?revision=HEAD') do |f|
178
+ open('https://raw.githubusercontent.com/DOCGroup/ACE_TAO/master/ACE/ace/Version.h') do |f|
186
179
  f.each_line do |ln|
187
180
  if /define\s+ACE_VERSION\s+\"(.*)\"/ =~ ln
188
181
  _version = $1
@@ -193,13 +186,31 @@ THE_END__
193
186
  _version
194
187
  end
195
188
 
189
+ # Downloading from github results in some http redirects which we first have to follow
190
+ def self.follow_url(uri_str, limit = 10)
191
+ raise ArgumentError, 'HTTP redirect too deep' if limit == 0
192
+ url = URI(uri_str)
193
+ req = Net::HTTP::Get.new(url)
194
+ response = Net::HTTP.start(url.host, url.port, use_ssl: true) { |http| http.request(req) }
195
+ case response
196
+ when Net::HTTPSuccess then uri_str
197
+ when Net::HTTPRedirection then follow_url(response['location'], limit - 1)
198
+ else
199
+ response.error!
200
+ end
201
+ end
202
+
196
203
  def self.download_tao_source(version, targetdir)
197
- print(_msg = "Downloading ACE+TAO-src-#{version}.tar.gz ")
198
- _url = "http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO-src-#{version}.tar.gz"
199
- Net::HTTP.start("download.dre.vanderbilt.edu") do |http|
200
- _fout = File.open(File.join(targetdir, "ACE+TAO-src-#{version}.tar.gz"), "wb")
204
+ version_dir = version.gsub('.', '_')
205
+ _url = "https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-#{version_dir}/ACE+TAO-src-#{version}.tar.gz"
206
+ print(_msg = "Downloading ACE+TAO-src-#{version}.tar.gz from #{_url}")
207
+ _fnm = File.join(targetdir, "ACE+TAO-src-#{version}.tar.gz")
208
+ # First follow all http redirects
209
+ url = URI(follow_url(_url))
210
+ Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
211
+ _fout = File.open(_fnm, "wb")
201
212
  begin
202
- http.request_get("/previous_versions/ACE+TAO-src-#{version}.tar.gz") do |resp|
213
+ http.request_get(url) do |resp|
203
214
  _sndlen = resp.content_length
204
215
  _reclen = 0
205
216
  resp.read_body do |segment|
@@ -217,16 +228,18 @@ THE_END__
217
228
  puts
218
229
  end
219
230
  end
231
+ FileUtils::Verbose.sh("rm -rf #{File.join(targetdir, 'ACE_wrappers')} && tar -xzf #{_fnm} -C #{targetdir}")
232
+ FileUtils::Verbose.sh("rm -f #{_fnm} && tar --format=gnu -czf #{_fnm} -C src ACE_wrappers")
220
233
  end
221
234
 
222
235
  def self.ext_shlibs
223
236
  (if Config.is_win32
224
- %w{libr2taow libepoaw librpolw}
237
+ %w{libr2taow librpoaw librpolw}
225
238
  else
226
- %w{libr2tao libepoa librpol}
227
- end).collect {|lib| File.join('ext', lib+'.so') }
239
+ %w{libr2tao librpoa librpol}
240
+ end).collect {|lib| File.join('ext', lib + '.so') }
228
241
  end
229
242
 
230
243
  end
231
244
 
232
- end
245
+ end
data/rakelib/gem.rake CHANGED
@@ -8,7 +8,6 @@
8
8
  # included with this program.
9
9
  #
10
10
  # Copyright (c) Remedy IT Expertise BV
11
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
12
11
  #--------------------------------------------------------------------
13
12
 
14
13
  require File.join(File.dirname(__FILE__), 'gem.rb')
@@ -26,7 +25,7 @@ namespace :r2corba do
26
25
  unless defined?(JRUBY_VERSION) || get_config('without-tao')
27
26
  # install ACE+TAO dlls
28
27
  R2CORBA::Ext.ace_shlibs.each do |acelib|
29
- libmask = R2CORBA::Config.is_linux ? acelib+'.*' : acelib
28
+ libmask = R2CORBA::Config.is_linux ? acelib + '.*' : acelib
30
29
  path = Dir.glob(libmask).first
31
30
  raise "Cannot find ACE+TAO library #{File.basename(acelib)}." unless path
32
31
  FileUtils.install(path, ext_dir, :mode => 0555, :verbose => Rake.verbose)
@@ -40,16 +39,18 @@ namespace :r2corba do
40
39
  end
41
40
 
42
41
  task :binbuild => ['r2corba:bin:build', 'r2corba:build_idl'] do
43
- if R2CORBA::Config.is_linux
44
- # create unversioned ACE/TAO lib symlinks
45
- R2CORBA::Ext.ace_shlibs('.so', 'ext').each do |acelib|
46
- acelib_ver = File.expand_path(Dir[acelib+'.*'].first)
47
- ln_s(acelib_ver, acelib)
42
+ unless defined?(JRUBY_VERSION)
43
+ if R2CORBA::Config.is_linux
44
+ # create unversioned ACE/TAO lib symlinks
45
+ R2CORBA::Ext.ace_shlibs('.so', 'ext').each do |acelib|
46
+ acelib_ver = File.expand_path(Dir[acelib + '.*'].first)
47
+ ln_s(acelib_ver, acelib)
48
+ end
49
+ end
50
+ unless R2CORBA::Config.is_win32
51
+ # patch RPATH setting of shared libs
52
+ R2CORBA::Gem.patch_extlib_rpath
48
53
  end
49
- end
50
- unless defined?(JRUBY_VERSION) || R2CORBA::Config.is_win32
51
- # patch RPATH setting of shared libs
52
- R2CORBA::Gem.patch_extlib_rpath
53
54
  end
54
55
  end
55
56
 
@@ -66,16 +67,20 @@ namespace :r2corba do
66
67
  gem.summary = %Q{TAO sourcecode for building R2CORBA}
67
68
  gem.description = %Q{TAO sourcecode for building R2CORBA.}
68
69
  gem.email = 'mcorino@remedy.nl'
69
- gem.homepage = "https://osportal.remedy.nl/projects/r2corba"
70
- gem.authors = ['Martin Corino']
70
+ gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
71
+ gem.authors = ['Martin Corino', 'Johnny Willemsen']
71
72
  gem.files = Dir['lib/taosource/**/*']
72
73
  gem.files.concat(Dir["src/ACE+TAO-src-#{_ace_ver}.tar.gz"])
73
74
  gem.files << 'mkrf_conf_taogem.rb'
74
75
  gem.extensions = ['mkrf_conf_taogem.rb']
75
76
  gem.require_paths = %w{lib}
76
77
  gem.executables = []
77
- gem.required_ruby_version = '>= 1.8.6'
78
- gem.licenses = ['ACE']
78
+ gem.required_ruby_version = '>= 2.0'
79
+ gem.licenses = ['DOC']
80
+ gem.metadata = {
81
+ "bug_tracker_uri" => "https://github.com/DOCGroup/ACE_TAO/issues",
82
+ "source_code_uri" => "https://github.com/DOCGroup/ACE_TAO"
83
+ }
79
84
  end
80
85
  R2CORBA::Gem.build_gem(gemspec)
81
86
  end
@@ -87,20 +92,24 @@ end
87
92
  t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_VERSION)}.gem") => R2CORBA::Gem.manifest do
88
93
  gemspec = R2CORBA::Gem.define_spec('r2corba', R2CORBA::R2CORBA_VERSION) do |gem|
89
94
  gem.summary = %Q{CORBA language mapping implementation for Ruby}
90
- gem.description = %Q{OMG CORBA v. 3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
95
+ gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
91
96
  gem.email = 'mcorino@remedy.nl'
92
- gem.homepage = "https://osportal.remedy.nl/projects/r2corba"
93
- gem.authors = ['Martin Corino']
97
+ gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
98
+ gem.authors = ['Martin Corino', 'Johnny Willemsen']
94
99
  gem.files = R2CORBA::Gem.manifest
95
100
  gem.extensions = ['mkrf_conf_srcgem.rb']
96
101
  gem.require_paths = %w{lib}
97
102
  gem.executables = %w{ridlc rins r2corba}
98
- gem.required_ruby_version = '>= 1.8.6'
99
- gem.licenses = ['R2CORBA', 'ACE', 'GPL']
103
+ gem.required_ruby_version = '>= 2.0'
104
+ gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
100
105
  gem.require_paths << 'ext'
101
- gem.add_dependency 'ridl', '>= 2.2.2'
102
- gem.add_dependency 'rake', '>= 10.0.1'
106
+ gem.add_dependency 'ridl', '~> 2.8'
107
+ gem.add_dependency 'rake', '>= 12.3.3'
103
108
  gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
109
+ gem.metadata = {
110
+ "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
111
+ "source_code_uri" => "https://github.com/RemedyIT/r2corba"
112
+ }
104
113
  end
105
114
  R2CORBA::Gem.build_gem(gemspec)
106
115
  end
@@ -122,25 +131,21 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
122
131
  begin
123
132
  gemspec = R2CORBA::Gem.define_spec('r2corba', R2CORBA::R2CORBA_VERSION, :extbin) do |gem|
124
133
  gem.summary = %Q{CORBA language mapping implementation for Ruby (extension binaries)}
125
- gem.description = %Q{OMG CORBA v. 3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. (extension binaries)}
134
+ gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. (extension binaries)}
126
135
  gem.email = 'mcorino@remedy.nl'
127
- gem.homepage = "https://osportal.remedy.nl/projects/r2corba"
128
- gem.authors = ['Martin Corino']
136
+ gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
137
+ gem.authors = ['Martin Corino', 'Johnny Willemsen']
129
138
  gem.files = R2CORBA::Gem.manifest(:extbin)
130
139
  gem.extensions = []
131
140
  gem.require_paths = %w{ext}
132
141
  gem.executables = []
133
- if R2CORBA::Config.rb_ver_major < 2
134
- if R2CORBA::Config.rb_ver_minor > 8
135
- gem.required_ruby_version = '>= 1.9.1'
136
- else
137
- gem.required_ruby_version = '>= 1.8.6'
138
- end
139
- else
140
- gem.required_ruby_version = '>= 2.0.0'
141
- end
142
- gem.licenses = ['R2CORBA', 'ACE']
143
- gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
142
+ gem.required_ruby_version = '>= 2.0'
143
+ gem.licenses = ['Nonstandard', 'DOC']
144
+ gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
145
+ gem.metadata = {
146
+ "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
147
+ "source_code_uri" => "https://github.com/RemedyIT/r2corba"
148
+ }
144
149
  end
145
150
  R2CORBA::Gem.build_gem(gemspec)
146
151
  ensure
@@ -169,27 +174,31 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
169
174
  # create gemspec
170
175
  gemspec = R2CORBA::Gem.define_spec('r2corba', R2CORBA::R2CORBA_VERSION, :bin) do |gem|
171
176
  gem.summary = %Q{CORBA language mapping implementation for Ruby}
172
- gem.description = %Q{OMG CORBA v. 3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
177
+ gem.description = %Q{OMG CORBA v3.3 compliant CORBA language mapping implementation for Ruby. Depends on ridl gem for providing native Ruby IDL compiler. }
173
178
  gem.email = 'mcorino@remedy.nl'
174
- gem.homepage = "https://osportal.remedy.nl/projects/r2corba"
175
- gem.authors = ['Martin Corino']
179
+ gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
180
+ gem.authors = ['Martin Corino', 'Johnny Willemsen']
176
181
  gem.files = R2CORBA::Gem.manifest(:bin)
177
182
  gem.require_paths = %w{lib}
178
183
  gem.executables = %w{ridlc rins r2corba}
179
184
  gem.extensions = ['mkrf_conf_bingem.rb']
180
185
  if defined?(JRUBY_VERSION)
181
186
  gem.require_paths << 'jacorb/lib'
182
- gem.required_ruby_version = '>= 1.5.0'
183
- gem.licenses = ['R2CORBA', 'JacORB']
187
+ gem.required_ruby_version = '>= 2.0'
188
+ gem.licenses = ['Nonstandard', 'GPL-2.0']
184
189
  else
185
190
  gem.files << File.join('ext', '.keep') unless ENV['FULL_BINGEM'] # to force installation of ext folder if libs are left out
186
- gem.required_ruby_version = '>= 1.8.6'
187
- gem.licenses = ['R2CORBA', 'ACE', 'GPL']
191
+ gem.required_ruby_version = '>= 2.0'
192
+ gem.licenses = ['Nonstandard', 'DOC', 'GPL-2.0']
188
193
  gem.require_paths << 'ext'
189
194
  end
190
- gem.add_dependency 'ridl', '>= 2.2.2'
191
- gem.add_dependency 'rake', '>= 10.0.1'
192
- gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
195
+ gem.add_dependency 'ridl', '~> 2.8'
196
+ gem.add_dependency 'rake', '>= 12.3.3'
197
+ gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
198
+ gem.metadata = {
199
+ "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
200
+ "source_code_uri" => "https://github.com/RemedyIT/r2corba"
201
+ }
193
202
  end
194
203
  R2CORBA::Gem.build_gem(gemspec)
195
204
  ensure
@@ -202,6 +211,36 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
202
211
  end
203
212
  t_.enhance ['mkrf_conf_bingem.rb']
204
213
 
214
+ unless defined?(JRUBY_VERSION)
215
+ # Devkit faker Gem for binary Windows gems
216
+ t_devkit = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba_devkit', '1.0.0', :devkit)}.gem") => 'lib/rubygems_plugin.rb' do
217
+ # create gemspec
218
+ gemspec = R2CORBA::Gem.define_spec('r2corba_devkit', '1.0.0', :devkit) do |gem|
219
+ gem.summary = %Q{R2CORBA Devkit faker for RubyInstaller Rubies}
220
+ gem.description = %Q{Fake Devkit loader to satisfy stupid RubyInstaller pre-install hook. }
221
+ gem.email = 'mcorino@remedy.nl'
222
+ gem.homepage = "https://www.remedy.nl/opensource/r2corba.html"
223
+ gem.authors = ['Martin Corino', 'Johnny Willemsen']
224
+ gem.files = 'lib/rubygems_plugin.rb'
225
+ gem.require_paths = %w{lib}
226
+ gem.executables = []
227
+ gem.extensions = []
228
+ gem.required_ruby_version = '>= 2.0'
229
+ gem.licenses = ['Nonstandard']
230
+ gem.metadata = {
231
+ "bug_tracker_uri" => "https://github.com/RemedyIT/r2corba/issues",
232
+ "source_code_uri" => "https://github.com/RemedyIT/r2corba"
233
+ }
234
+ end
235
+ R2CORBA::Gem.build_gem(gemspec)
236
+ end
237
+ namespace :r2corba do
238
+ namespace :gem do
239
+ task :devkit => t_devkit.name
240
+ end
241
+ end
242
+ end
243
+
205
244
  desc 'Build R2CORBA gem'
206
245
  if defined?(JRUBY_VERSION)
207
246
  task :gem => 'r2corba:gem:bingem'
@@ -209,4 +248,4 @@ elsif R2CORBA::Config.is_win32
209
248
  task :gem => 'r2corba:gem:bingem'
210
249
  else
211
250
  task :gem => 'r2corba:gem:srcgem'
212
- end
251
+ end