Browse Source

Merge pull request #786 from luizluca/ruby_update

ruby: update to 2.2.0
Luiz Angelo Daros de Luca 10 years ago
parent
commit
f4e39a4998

+ 82
- 48
lang/ruby/Makefile View File

10
 include $(TOPDIR)/rules.mk
10
 include $(TOPDIR)/rules.mk
11
 
11
 
12
 PKG_NAME:=ruby
12
 PKG_NAME:=ruby
13
-PKG_VERSION:=2.1.5
13
+PKG_VERSION:=2.2.0
14
 PKG_RELEASE:=1
14
 PKG_RELEASE:=1
15
 
15
 
16
-PKG_LIBVER:=2.1
16
+PKG_LIBVER:=2.2
17
 
17
 
18
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19
 PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/
19
 PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/
20
-PKG_MD5SUM:=a7c3e5fec47eff23091b566e9e1dac1b
20
+PKG_MD5SUM:=d03cd4690fec1fff81d096d1c1255fde
21
 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
21
 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
22
 PKG_LICENSE:=BSD-2-Clause
22
 PKG_LICENSE:=BSD-2-Clause
23
 PKG_LICENSE_FILES:=COPYING
23
 PKG_LICENSE_FILES:=COPYING
70
 $(call Package/ruby/Default)
70
 $(call Package/ruby/Default)
71
   TITLE:=Ruby standard libraries (metadata for all stdlib subsets)
71
   TITLE:=Ruby standard libraries (metadata for all stdlib subsets)
72
   DEPENDS:=ruby +ruby-misc +ruby-bigdecimal +ruby-cgi +ruby-csv +ruby-datetime +ruby-dbm +ruby-debuglib\
72
   DEPENDS:=ruby +ruby-misc +ruby-bigdecimal +ruby-cgi +ruby-csv +ruby-datetime +ruby-dbm +ruby-debuglib\
73
-			+ruby-digest +ruby-dl +ruby-drb +ruby-enc +ruby-enc-extra +ruby-erb +ruby-gdbm +ruby-gems \
73
+			+ruby-digest +ruby-drb +ruby-enc +ruby-enc-extra +ruby-erb +ruby-gdbm +ruby-gems \
74
 			+ruby-json +ruby-io-console +ruby-irb +ruby-fiddle +ruby-filelib +ruby-logger +ruby-math \
74
 			+ruby-json +ruby-io-console +ruby-irb +ruby-fiddle +ruby-filelib +ruby-logger +ruby-math \
75
 			+ruby-minitest +ruby-mkmf +ruby-multithread +ruby-nkf +ruby-net +ruby-openssl +ruby-optparse \
75
 			+ruby-minitest +ruby-mkmf +ruby-multithread +ruby-nkf +ruby-net +ruby-openssl +ruby-optparse \
76
-			+ruby-patterns +ruby-prettyprint +ruby-pstore +ruby-psych +ruby-racc +ruby-rake +ruby-rbconfig \
77
-			+ruby-rdoc +ruby-readline +ruby-rexml +ruby-rinda +ruby-ripper +ruby-rss +ruby-sdbm +ruby-shell \
78
-			+ruby-socket +ruby-testunit +ruby-uri +ruby-webrick +ruby-xmlrpc +ruby-yaml +ruby-zlib
76
+			+ruby-patterns +ruby-powerassert +ruby-prettyprint +ruby-pstore +ruby-psych +ruby-racc +ruby-rake \
77
+			+ruby-rbconfig +ruby-rdoc +ruby-readline +ruby-rexml +ruby-rinda +ruby-ripper +ruby-rss +ruby-sdbm \
78
+			+ruby-shell +ruby-socket +ruby-testunit +ruby-unicodenormalize +ruby-uri +ruby-webrick +ruby-xmlrpc \
79
+			+ruby-yaml +ruby-zlib
79
 endef
80
 endef
80
 
81
 
81
 define Package/ruby-stdlib/description
82
 define Package/ruby-stdlib/description
182
 
183
 
183
 endef
184
 endef
184
 
185
 
185
-define Package/ruby-dl
186
-$(call Package/ruby/Default)
187
-  TITLE+= (dynamic linker support)
188
-  DEPENDS:=ruby +ruby-fiddle +ruby-multithread
189
-endef
190
-
191
-define Package/ruby-dl/description
192
- Provides dl* files. This is deprecated, use fiddle.
193
-
194
-endef
195
-
196
 define Package/ruby-drb
186
 define Package/ruby-drb
197
 $(call Package/ruby/Default)
187
 $(call Package/ruby/Default)
198
   TITLE:=Ruby distributed object system
188
   TITLE:=Ruby distributed object system
306
 define Package/ruby-filelib
296
 define Package/ruby-filelib
307
 $(call Package/ruby/Default)
297
 $(call Package/ruby/Default)
308
   TITLE+= File utils library
298
   TITLE+= File utils library
309
-  DEPENDS:=ruby +ruby-multithread +ruby-enc
299
+  DEPENDS:=ruby +ruby-enc +ruby-misc
310
 endef
300
 endef
311
 
301
 
312
 define Package/ruby-filelib/description
302
 define Package/ruby-filelib/description
335
 define Package/ruby-gems
325
 define Package/ruby-gems
336
 $(call Package/ruby/Default)
326
 $(call Package/ruby/Default)
337
   TITLE:=Ruby gems packet management
327
   TITLE:=Ruby gems packet management
338
-  DEPENDS:=ruby +ruby-net +ruby-rdoc +ruby-zlib
328
+  DEPENDS:=ruby +ruby-net +ruby-rdoc
339
 endef
329
 endef
340
 
330
 
341
 define Package/ruby-gems/description
331
 define Package/ruby-gems/description
413
 
403
 
414
 define Package/ruby-minitest
404
 define Package/ruby-minitest
415
 $(call Package/ruby/Default)
405
 $(call Package/ruby/Default)
416
-  TITLE+= minitest bundled with Ruby
417
-  DEPENDS:=ruby +ruby-filelib +ruby-optparse +ruby-prettyprint +ruby-rbconfig
406
+  TITLE:=Gem minitest shipped with Ruby
407
+  DEPENDS:=ruby +ruby-gems
418
 endef
408
 endef
419
 
409
 
420
 define Package/ruby-minitest/description
410
 define Package/ruby-minitest/description
421
- Provides minitest* files
411
+ Provides minitest gem
422
 
412
 
423
 endef
413
 endef
424
 
414
 
545
 
535
 
546
 endef
536
 endef
547
 
537
 
538
+define Package/ruby-powerassert
539
+$(call Package/ruby/Default)
540
+  TITLE:=Gem power_assert shipped with Ruby
541
+  DEPENDS:=ruby +ruby-ripper
542
+endef
543
+
544
+define Package/ruby-powerassert/description
545
+  Power Assert gem for Ruby. Power Assert shows each value of variables
546
+  and method calls in the expression. It is useful for testing, providing
547
+  which value wasn't correct when the condition is not satisfied
548
+
549
+endef
550
+
548
 define Package/ruby-prettyprint
551
 define Package/ruby-prettyprint
549
 $(call Package/ruby/Default)
552
 $(call Package/ruby/Default)
550
   TITLE:=Ruby PrettyPrint librart
553
   TITLE:=Ruby PrettyPrint librart
616
 define Package/ruby-rdoc
619
 define Package/ruby-rdoc
617
 $(call Package/ruby/Default)
620
 $(call Package/ruby/Default)
618
   TITLE+= (documentation generator)
621
   TITLE+= (documentation generator)
619
-  DEPENDS:=ruby +ruby-erb +ruby-irb +ruby-json +ruby-racc +ruby-rake +ruby-yaml
622
+  DEPENDS:=ruby +ruby-erb +ruby-irb +ruby-json +ruby-racc +ruby-rake +ruby-yaml +ruby-zlib
620
 endef
623
 endef
621
 
624
 
622
 define Package/ruby-rdoc/description
625
 define Package/ruby-rdoc/description
720
 
723
 
721
 define Package/ruby-testunit
724
 define Package/ruby-testunit
722
 $(call Package/ruby/Default)
725
 $(call Package/ruby/Default)
723
-  TITLE:=Ruby Test Unit toolkit
724
-  DEPENDS:=ruby +ruby-minitest
726
+  TITLE:=Gem test-unit shipped with Ruby
727
+  DEPENDS:=ruby +ruby-csv +ruby-erb +ruby-optparse +ruby-powerassert +ruby-prettyprint +ruby-rexml +ruby-yaml
725
 endef
728
 endef
726
 
729
 
727
 define Package/ruby-testunit/description
730
 define Package/ruby-testunit/description
729
 
732
 
730
 endef
733
 endef
731
 
734
 
735
+define Package/ruby-unicodenormalize
736
+$(call Package/ruby/Default)
737
+  TITLE:=Ruby String additions for Unicode normalization
738
+  DEPENDS:=ruby +ruby-enc +ruby-enc-extra
739
+endef
740
+
741
+define Package/ruby-unicodenormalize/description
742
+  Additions to class String for Unicode normalization
743
+
744
+endef
745
+
732
 define Package/ruby-uri
746
 define Package/ruby-uri
733
 $(call Package/ruby/Default)
747
 $(call Package/ruby/Default)
734
   TITLE:=Ruby library to handle URI
748
   TITLE:=Ruby library to handle URI
822
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/site_ruby/$(PKG_LIBVER)
836
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/site_ruby/$(PKG_LIBVER)
823
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/lib/ruby/ruby$(PKG_LIBVER)-bin
837
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/lib/ruby/ruby$(PKG_LIBVER)-bin
824
 	$(INSTALL_BIN) ./files/ruby $(1)/usr/bin/ruby
838
 	$(INSTALL_BIN) ./files/ruby $(1)/usr/bin/ruby
839
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/vendor_ruby/$(PKG_LIBVER)/* $(1)/usr/lib/ruby/vendor_ruby/$(PKG_LIBVER)/
840
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/site_ruby/$(PKG_LIBVER)/* $(1)/usr/lib/ruby/site_ruby/$(PKG_LIBVER)/
825
 	sed -i -e "s%@RUBY_LIBPATH@%/usr/lib/ruby/$(PKG_LIBVER)%" $(1)/usr/bin/ruby
841
 	sed -i -e "s%@RUBY_LIBPATH@%/usr/lib/ruby/$(PKG_LIBVER)%" $(1)/usr/bin/ruby
826
 	sed -i -e "s%@RUBY_BINPATH@%/usr/lib/ruby/ruby$(PKG_LIBVER)-bin%" $(1)/usr/bin/ruby
842
 	sed -i -e "s%@RUBY_BINPATH@%/usr/lib/ruby/ruby$(PKG_LIBVER)-bin%" $(1)/usr/bin/ruby
827
 endef
843
 endef
889
 	) | ( cd $(1); $(TAR) -xf - )
905
 	) | ( cd $(1); $(TAR) -xf - )
890
 endef
906
 endef
891
 
907
 
892
-define Package/ruby-dl/install
893
-	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
894
-		usr/lib/ruby/$(PKG_LIBVER)/dl.rb \
895
-		usr/lib/ruby/$(PKG_LIBVER)/dl \
896
-		usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \
897
-		usr/lib/ruby/$(PKG_LIBVER)/*/dl/ \
898
-	) | ( cd $(1); $(TAR) -xf - )
899
-endef
900
-
901
 define Package/ruby-drb/install
908
 define Package/ruby-drb/install
902
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
909
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
903
 		usr/lib/ruby/$(PKG_LIBVER)/drb.rb \
910
 		usr/lib/ruby/$(PKG_LIBVER)/drb.rb \
963
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
970
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
964
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/ubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
971
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/ubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
965
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
972
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
973
+	# Remove tests (avoids extra deps)
974
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems/test_case.rb
975
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems/package/tar_test_case.rb
976
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems/installer_test_case.rb
966
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems $(1)/usr/lib/ruby/$(PKG_LIBVER)/
977
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems $(1)/usr/lib/ruby/$(PKG_LIBVER)/
967
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
978
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
968
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
979
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1012
 		usr/lib/ruby/$(PKG_LIBVER)/prime.rb \
1023
 		usr/lib/ruby/$(PKG_LIBVER)/prime.rb \
1013
 		usr/lib/ruby/$(PKG_LIBVER)/mathn.rb \
1024
 		usr/lib/ruby/$(PKG_LIBVER)/mathn.rb \
1014
 		usr/lib/ruby/$(PKG_LIBVER)/cmath.rb \
1025
 		usr/lib/ruby/$(PKG_LIBVER)/cmath.rb \
1015
-		usr/lib/ruby/$(PKG_LIBVER)/complex.rb \
1016
-		usr/lib/ruby/$(PKG_LIBVER)/rational.rb \
1017
 		usr/lib/ruby/$(PKG_LIBVER)/*/mathn \
1026
 		usr/lib/ruby/$(PKG_LIBVER)/*/mathn \
1018
 		usr/lib/ruby/$(PKG_LIBVER)/matrix.rb \
1027
 		usr/lib/ruby/$(PKG_LIBVER)/matrix.rb \
1019
 		usr/lib/ruby/$(PKG_LIBVER)/matrix \
1028
 		usr/lib/ruby/$(PKG_LIBVER)/matrix \
1021
 endef
1030
 endef
1022
 
1031
 
1023
 define Package/ruby-minitest/install
1032
 define Package/ruby-minitest/install
1024
-	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1025
-		usr/lib/ruby/$(PKG_LIBVER)/minitest/ \
1026
-		usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/minitest-*.gemspec \
1027
-	) | ( cd $(1); $(TAR) -xf - )
1033
+	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications
1034
+	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1035
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/minitest-*.gemspec $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/
1036
+	# Remove tests (avoids extra deps)
1037
+	$(RM) -rf $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/minitest-*/test
1038
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/minitest-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1028
 endef
1039
 endef
1029
 
1040
 
1030
 define Package/ruby-misc/install
1041
 define Package/ruby-misc/install
1103
 define Package/ruby-optparse/install
1114
 define Package/ruby-optparse/install
1104
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1115
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1105
 		usr/lib/ruby/$(PKG_LIBVER)/optparse.rb \
1116
 		usr/lib/ruby/$(PKG_LIBVER)/optparse.rb \
1117
+		usr/lib/ruby/$(PKG_LIBVER)/optionparser.rb \
1106
 		usr/lib/ruby/$(PKG_LIBVER)/optparse \
1118
 		usr/lib/ruby/$(PKG_LIBVER)/optparse \
1107
 	) | ( cd $(1); $(TAR) -xf - )
1119
 	) | ( cd $(1); $(TAR) -xf - )
1108
 endef
1120
 endef
1115
 	) | ( cd $(1); $(TAR) -xf - )
1127
 	) | ( cd $(1); $(TAR) -xf - )
1116
 endef
1128
 endef
1117
 
1129
 
1130
+define Package/ruby-powerassert/install
1131
+	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications
1132
+	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1133
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/power_assert-*.gemspec $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/
1134
+	# Remove tests (avoids extra deps)
1135
+	$(RM) -rf $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/power_assert-*/test
1136
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/power_assert-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1137
+endef
1138
+
1118
 define Package/ruby-prettyprint/install
1139
 define Package/ruby-prettyprint/install
1119
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1140
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1120
 		usr/lib/ruby/$(PKG_LIBVER)/pp.rb \
1141
 		usr/lib/ruby/$(PKG_LIBVER)/pp.rb \
1148
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/
1169
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/
1149
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1170
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1150
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1171
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1172
+	# Remove tests (avoids extra deps)
1173
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake/runtest.rb
1151
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1174
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1152
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1175
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1153
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1176
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1169
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
1192
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
1170
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
1193
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
1171
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1194
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1195
+	# Remove tests (avoids extra deps)
1196
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc/test_case.rb
1197
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc/markup/formatter_test_case.rb
1198
+	$(RM) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc/markup/text_formatter_test_case.rb
1172
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1199
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1173
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1200
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1174
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1201
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1235
 endef
1262
 endef
1236
 
1263
 
1237
 define Package/ruby-testunit/install
1264
 define Package/ruby-testunit/install
1238
-	$(INSTALL_DIR) $(1)/usr/bin
1239
-	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/testrb $(1)/usr/bin/
1240
-	$(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1241
-	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/test $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1242
-	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1265
+	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications
1243
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1266
 	$(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1244
-	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/test-unit-*.gemspec $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/
1267
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/test-unit-*.gemspec $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/
1268
+	# Remove tests (avoids extra deps)
1269
+	$(RM) -rf $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/test-unit-*/test
1270
+	$(RM) -rf $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/test-unit-*/sample
1245
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/test-unit-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1271
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/test-unit-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1246
 endef
1272
 endef
1247
 
1273
 
1274
+define Package/ruby-unicodenormalize/install
1275
+	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1276
+		usr/lib/ruby/$(PKG_LIBVER)/unicode_normalize.rb \
1277
+		usr/lib/ruby/$(PKG_LIBVER)/unicode_normalize \
1278
+	) | ( cd $(1); $(TAR) -xf - )
1279
+endef
1280
+
1248
 define Package/ruby-uri/install
1281
 define Package/ruby-uri/install
1249
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1282
 	( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1250
 		usr/lib/ruby/$(PKG_LIBVER)/uri.rb \
1283
 		usr/lib/ruby/$(PKG_LIBVER)/uri.rb \
1293
 $(eval $(call BuildPackage,ruby-dbm))
1326
 $(eval $(call BuildPackage,ruby-dbm))
1294
 $(eval $(call BuildPackage,ruby-debuglib))
1327
 $(eval $(call BuildPackage,ruby-debuglib))
1295
 $(eval $(call BuildPackage,ruby-digest))
1328
 $(eval $(call BuildPackage,ruby-digest))
1296
-$(eval $(call BuildPackage,ruby-dl))
1297
 $(eval $(call BuildPackage,ruby-drb))
1329
 $(eval $(call BuildPackage,ruby-drb))
1298
 $(eval $(call BuildPackage,ruby-enc))
1330
 $(eval $(call BuildPackage,ruby-enc))
1299
 $(eval $(call BuildPackage,ruby-enc-extra))
1331
 $(eval $(call BuildPackage,ruby-enc-extra))
1316
 $(eval $(call BuildPackage,ruby-openssl))
1348
 $(eval $(call BuildPackage,ruby-openssl))
1317
 $(eval $(call BuildPackage,ruby-optparse))
1349
 $(eval $(call BuildPackage,ruby-optparse))
1318
 $(eval $(call BuildPackage,ruby-patterns))
1350
 $(eval $(call BuildPackage,ruby-patterns))
1351
+$(eval $(call BuildPackage,ruby-powerassert))
1319
 $(eval $(call BuildPackage,ruby-prettyprint))
1352
 $(eval $(call BuildPackage,ruby-prettyprint))
1320
 $(eval $(call BuildPackage,ruby-pstore))
1353
 $(eval $(call BuildPackage,ruby-pstore))
1321
 $(eval $(call BuildPackage,ruby-psych))
1354
 $(eval $(call BuildPackage,ruby-psych))
1332
 $(eval $(call BuildPackage,ruby-shell))
1365
 $(eval $(call BuildPackage,ruby-shell))
1333
 $(eval $(call BuildPackage,ruby-socket))
1366
 $(eval $(call BuildPackage,ruby-socket))
1334
 $(eval $(call BuildPackage,ruby-testunit))
1367
 $(eval $(call BuildPackage,ruby-testunit))
1368
+$(eval $(call BuildPackage,ruby-unicodenormalize))
1335
 $(eval $(call BuildPackage,ruby-uri))
1369
 $(eval $(call BuildPackage,ruby-uri))
1336
 $(eval $(call BuildPackage,ruby-webrick))
1370
 $(eval $(call BuildPackage,ruby-webrick))
1337
 $(eval $(call BuildPackage,ruby-xmlrpc))
1371
 $(eval $(call BuildPackage,ruby-xmlrpc))

+ 4
- 0
lang/ruby/patches/001-rdoc-remove_gems_dep.patch View File

1
+References:
2
+
3
+https://github.com/rdoc/rdoc/pull/340
4
+
1
 --- ruby-2.1.2.orig/lib/rdoc.rb	2014-09-02 17:14:28.719224215 -0300
5
 --- ruby-2.1.2.orig/lib/rdoc.rb	2014-09-02 17:14:28.719224215 -0300
2
 +++ ruby-2.1.2/lib/rdoc.rb	2014-09-02 17:14:28.762223911 -0300
6
 +++ ruby-2.1.2/lib/rdoc.rb	2014-09-02 17:14:28.762223911 -0300
3
 @@ -109,6 +109,8 @@
7
 @@ -109,6 +109,8 @@

+ 0
- 13
lang/ruby/patches/002-minitest-remove_gems_dep.patch View File

1
---- ruby-2.1.2.orig/lib/minitest/autorun.rb	2014-09-03 02:22:29.769909573 -0300
2
-+++ ruby-2.1.2/lib/minitest/autorun.rb	2014-09-03 02:22:29.768909580 -0300
3
-@@ -6,8 +6,9 @@
4
- ######################################################################
5
- 
6
- begin
7
--  require 'rubygems'
8
-   gem 'minitest'
9
-+rescue NameError => e # --disable-gems
10
-+  raise unless e.name == :gem
11
- rescue Gem::LoadError
12
-   # do nothing
13
- end

+ 0
- 12
lang/ruby/patches/003-digest_rmd160_wrong_name_fix.patch View File

1
-diff -r -u ruby-2.1.2.old/ext/digest/rmd160/extconf.rb ruby-2.1.2/ext/digest/rmd160/extconf.rb
2
---- ruby-2.1.2.old/ext/digest/rmd160/extconf.rb	2012-11-26 22:58:52.000000000 -0200
3
-+++ ruby-2.1.2/ext/digest/rmd160/extconf.rb	2014-09-17 14:20:57.537367488 -0300
4
-@@ -14,7 +14,7 @@
5
- require File.expand_path('../../../openssl/deprecation', __FILE__)
6
- 
7
- if !with_config("bundled-rmd160") &&
8
--    have_library("crypto") && OpenSSL.check_func("RMD160_Transform", "openssl/ripemd.h")
9
-+    have_library("crypto") && OpenSSL.check_func("RIPEMD160_Transform", "openssl/ripemd.h")
10
-   $objs << "rmd160ossl.#{$OBJEXT}"
11
- else
12
-   $objs << "rmd160.#{$OBJEXT}"

+ 0
- 117
lang/ruby/patches/004-digest_dont-link-ssl-if-not-needed.patch View File

1
---- ruby-2.1.2/ext/digest/md5/extconf.rb	2012-11-26 22:58:52.000000000 -0200
2
-+++ ruby-2.1.2/ext/digest/md5/extconf.rb	2014-09-16 19:25:21.120457409 -0300
3
-@@ -9,14 +9,21 @@
4
- 
5
- $objs = [ "md5init.#{$OBJEXT}" ]
6
- 
7
--dir_config("openssl")
8
--pkg_config("openssl")
9
--require File.expand_path('../../../openssl/deprecation', __FILE__)
10
-+if !with_config("bundled-md5")
11
-+  dir_config("openssl")
12
-+  pkg_config("openssl")
13
-+  require File.expand_path('../../../openssl/deprecation', __FILE__)
14
-+  if have_library("crypto") && OpenSSL.check_func("MD5_Transform", "openssl/md5.h")
15
-+    $use_bundled=false
16
-+  else
17
-+    $use_bundled=true
18
-+  end
19
-+else
20
-+  $use_bundled=true
21
-+end
22
- 
23
--if !with_config("bundled-md5") &&
24
--    have_library("crypto") && OpenSSL.check_func("MD5_Transform", "openssl/md5.h")
25
-+if !$use_bundled
26
-   $objs << "md5ossl.#{$OBJEXT}"
27
--
28
- else
29
-   $objs << "md5.#{$OBJEXT}"
30
- end
31
---- ruby-2.1.2/ext/digest/rmd160/extconf.rb	2012-11-26 22:58:52.000000000 -0200
32
-+++ ruby-2.1.2/ext/digest/rmd160/extconf.rb	2014-09-16 19:29:11.425628541 -0300
33
-@@ -9,12 +9,20 @@
34
- 
35
- $objs = [ "rmd160init.#{$OBJEXT}" ]
36
- 
37
--dir_config("openssl")
38
--pkg_config("openssl")
39
--require File.expand_path('../../../openssl/deprecation', __FILE__)
40
-+if !with_config("bundled-rmd160")
41
-+  dir_config("openssl")
42
-+  pkg_config("openssl")
43
-+  require File.expand_path('../../../openssl/deprecation', __FILE__)
44
-+  if have_library("crypto") && OpenSSL.check_func("RIPEMD160_Transform", "openssl/ripemd.h")
45
-+    $use_bundled=false
46
-+  else
47
-+    $use_bundled=true
48
-+  end
49
-+else
50
-+  $use_bundled=true
51
-+end
52
- 
53
--if !with_config("bundled-rmd160") &&
54
--    have_library("crypto") && OpenSSL.check_func("RIPEMD160_Transform", "openssl/ripemd.h")
55
-+if !$use_bundled
56
-   $objs << "rmd160ossl.#{$OBJEXT}"
57
- else
58
-   $objs << "rmd160.#{$OBJEXT}"
59
---- ruby-2.1.2/ext/digest/sha1/extconf.rb	2012-11-26 22:58:52.000000000 -0200
60
-+++ ruby-2.1.2/ext/digest/sha1/extconf.rb	2014-09-16 19:30:09.359168494 -0300
61
-@@ -9,12 +9,20 @@
62
- 
63
- $objs = [ "sha1init.#{$OBJEXT}" ]
64
- 
65
--dir_config("openssl")
66
--pkg_config("openssl")
67
--require File.expand_path('../../../openssl/deprecation', __FILE__)
68
-+if !with_config("bundled-sha1")
69
-+  dir_config("openssl")
70
-+  pkg_config("openssl")
71
-+  require File.expand_path('../../../openssl/deprecation', __FILE__)
72
-+  if have_library("crypto") && OpenSSL.check_func("SHA1_Transform", "openssl/sha.h")
73
-+    $use_bundled=false
74
-+  else
75
-+    $use_bundled=true
76
-+  end
77
-+else
78
-+  $use_bundled=true
79
-+end
80
- 
81
--if !with_config("bundled-sha1") &&
82
--    have_library("crypto") && OpenSSL.check_func("SHA1_Transform", "openssl/sha.h")
83
-+if !$use_bundled
84
-   $objs << "sha1ossl.#{$OBJEXT}"
85
- else
86
-   $objs << "sha1.#{$OBJEXT}"
87
---- ruby-2.1.2/ext/digest/sha2/extconf.rb	2012-11-26 22:58:52.000000000 -0200
88
-+++ ruby-2.1.2/ext/digest/sha2/extconf.rb	2014-09-16 19:31:31.833513570 -0300
89
-@@ -9,14 +9,22 @@
90
- 
91
- $objs = [ "sha2init.#{$OBJEXT}" ]
92
- 
93
--dir_config("openssl")
94
--pkg_config("openssl")
95
--require File.expand_path('../../../openssl/deprecation', __FILE__)
96
--
97
--if !with_config("bundled-sha2") &&
98
--    have_library("crypto") &&
99
-+if !with_config("bundled-sha2")
100
-+  dir_config("openssl")
101
-+  pkg_config("openssl")
102
-+  require File.expand_path('../../../openssl/deprecation', __FILE__)
103
-+  if have_library("crypto") &&
104
-     %w[SHA256 SHA512].all? {|d| OpenSSL.check_func("#{d}_Transform", "openssl/sha.h")} &&
105
-     %w[SHA256 SHA512].all? {|d| have_type("#{d}_CTX", "openssl/sha.h")}
106
-+    $use_bundled=false
107
-+  else
108
-+    $use_bundled=true
109
-+  end
110
-+else
111
-+  $use_bundled=true
112
-+end
113
-+
114
-+if !$use_bundled
115
-   $objs << "sha2ossl.#{$OBJEXT}"
116
-   $defs << "-DSHA2_USE_OPENSSL"
117
- else

+ 16
- 11
lang/ruby/ruby_find_pkgsdeps View File

24
 require_ignore=%w{drb/invokemethod16 foo rubygems/defaults/operating_system win32console java Win32API
24
 require_ignore=%w{drb/invokemethod16 foo rubygems/defaults/operating_system win32console java Win32API
25
                   builder/xchar json/pure simplecov win32/sspi rdoc/markdown/literals_1_8 enumerator win32/resolv rbtree
25
                   builder/xchar json/pure simplecov win32/sspi rdoc/markdown/literals_1_8 enumerator win32/resolv rbtree
26
                   nqxml/streamingparser nqxml/treeparser xmlscan/parser xmlscan/scanner xmltreebuilder xml/parser xmlparser xml/encoding-ja xmlencoding-ja
26
                   nqxml/streamingparser nqxml/treeparser xmlscan/parser xmlscan/scanner xmltreebuilder xml/parser xmlparser xml/encoding-ja xmlencoding-ja
27
-                  iconv uconv}
27
+                  iconv uconv win32ole gettext/po_parser gettext/mo libxml}
28
 
28
 
29
 builtin_enc=[
29
 builtin_enc=[
30
 	Encoding.find("ASCII-8BIT"),
30
 	Encoding.find("ASCII-8BIT"),
124
 
124
 
125
 weak_dependency=Hash.new([])
125
 weak_dependency=Hash.new([])
126
 weak_dependency.merge!({
126
 weak_dependency.merge!({
127
-"ruby-misc"=>["ruby-openssl"], 					#securerandom.rb
127
+"ruby-misc"=>["ruby-openssl","ruby-fiddle"],			#securerandom.rb
128
 "ruby-debuglib"=>["ruby-readline"],				#debug.rb
128
 "ruby-debuglib"=>["ruby-readline"],				#debug.rb
129
 "ruby-drb"=>["ruby-openssl"],				 	#drb/ssl.rb
129
 "ruby-drb"=>["ruby-openssl"],				 	#drb/ssl.rb
130
 "ruby-irb"=>["ruby-rdoc", "ruby-readline"],		 	#irb/cmd/help.rb
130
 "ruby-irb"=>["ruby-rdoc", "ruby-readline"],		 	#irb/cmd/help.rb
131
-"ruby-gems"=>["ruby-openssl","ruby-io-console", 		#rubygems/commands/cert_command.rb rubygems/user_interaction.rb
132
-	      "ruby-minitest", "ruby-webrick"],			#rubygems/test_case.rb rubygems/server.rb
131
+"ruby-gems"=>["ruby-openssl","ruby-io-console","ruby-webrick"], #rubygems/commands/cert_command.rb rubygems/user_interaction.rb rubygems/server.rb
133
 "ruby-mkmf"=>["ruby-webrick"], 					#un.rb
132
 "ruby-mkmf"=>["ruby-webrick"], 					#un.rb
134
 "ruby-net"=>["ruby-openssl","ruby-io-console","ruby-zlib"], 	#net/*.rb
133
 "ruby-net"=>["ruby-openssl","ruby-io-console","ruby-zlib"], 	#net/*.rb
135
 "ruby-optparse"=>["ruby-uri","ruby-datetime"],			#optparse/date.rb optparse/uri.rb
134
 "ruby-optparse"=>["ruby-uri","ruby-datetime"],			#optparse/date.rb optparse/uri.rb
136
-"ruby-rake"=>["ruby-net","ruby-testunit","ruby-gems"],		#rake/contrib/ftptools.rb rake/runtest.rb /usr/bin/rake
137
-"ruby-rdoc"=>["ruby-gems","ruby-readline","ruby-webrick",
138
-	      "ruby-minitest"],					#/usr/bin/rdoc and others
139
-"ruby-testunit"=>["ruby-gems", "ruby-io-console"],		#test/unit/parallel.rb test/unit.rb
135
+"ruby-rake"=>["ruby-net","ruby-gems"],				#rake/contrib/ftptools.rb /usr/bin/rake
136
+"ruby-rdoc"=>["ruby-gems","ruby-readline","ruby-webrick",	#/usr/bin/rdoc and others
137
+	       "ruby-io-console"],				#rdoc/stats/normal.rb
140
 "ruby-webrick"=>["ruby-openssl"],				#webrick/ssl.rb
138
 "ruby-webrick"=>["ruby-openssl"],				#webrick/ssl.rb
141
 })
139
 })
142
 
140
 
141
+puts "Preloading gems..."
142
+Gem::Specification.all.each{ |x| gem x.name }
143
+
143
 puts "Looking for package dependencies..."
144
 puts "Looking for package dependencies..."
144
 package_provides = {}
145
 package_provides = {}
145
 package_dependencies = Hash.new([])
146
 package_dependencies = Hash.new([])
153
 		else
154
 		else
154
 			found = package_files.detect {|(pkg,files)| files.detect {|file| $:.detect {|path| "#{path}/#{require}" == file.gsub(/\.(so|rb)$/,"") } } }
155
 			found = package_files.detect {|(pkg,files)| files.detect {|file| $:.detect {|path| "#{path}/#{require}" == file.gsub(/\.(so|rb)$/,"") } } }
155
 			if not found
156
 			if not found
156
-				$stderr.puts "#{pkg}: Nobody provides #{require}"
157
+				$stderr.puts "#{pkg}: Nothing provides #{require}"
157
 				failed = true
158
 				failed = true
158
 				next
159
 				next
159
 			end
160
 			end
168
 		end
169
 		end
169
 	end
170
 	end
170
 end
171
 end
171
-exit(1) if failed
172
+if failed
173
+	puts "There is some missing requirements not mapped to files in packages."
174
+	puts "Please, fix the missing files or ignore them on require_ignore var"
175
+	exit(1)
176
+end
172
 
177
 
173
 package_dependencies.each do
178
 package_dependencies.each do
174
         |(pkg,deps)|
179
         |(pkg,deps)|
240
 	extra_dep = current_deps - deps
245
 	extra_dep = current_deps - deps
241
 	$stderr.puts "Package #{pkg} does not need to depend on #{extra_dep.join(" ")} " if not extra_dep.empty?
246
 	$stderr.puts "Package #{pkg} does not need to depend on #{extra_dep.join(" ")} " if not extra_dep.empty?
242
 	missing_dep = deps - current_deps
247
 	missing_dep = deps - current_deps
243
-	$stderr.puts "Package #{pkg} need to depend on #{missing_dep.join(" ")} " if not missing_dep.empty?
248
+	$stderr.puts "Package #{pkg} needs to depend on #{missing_dep.join(" ")} " if not missing_dep.empty?
244
 
249
 
245
 	if not extra_dep.empty? or not missing_dep.empty?
250
 	if not extra_dep.empty? or not missing_dep.empty?
246
 		$stderr.puts "define Package/#{pkg}"
251
 		$stderr.puts "define Package/#{pkg}"