You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

886 lines
33 KiB

  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. # Copyright (C) 2017-2018 Luiz Angelo Daros de Luca <luizluca@gmail.com>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. # To Do:
  9. # - dirs not removed when uninstalling! opkg bug?
  10. #
  11. include $(TOPDIR)/rules.mk
  12. PKG_NAME:=ruby
  13. PKG_VERSION:=2.6.3
  14. PKG_RELEASE:=1
  15. # First two numbes
  16. PKG_ABI_VERSION:=$(subst $(space),.,$(wordlist 1, 2, $(subst .,$(space),$(PKG_VERSION))))
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  18. PKG_SOURCE_URL:=https://cache.ruby-lang.org/pub/ruby/$(PKG_ABI_VERSION)/
  19. PKG_HASH:=11a83f85c03d3f0fc9b8a9b6cad1b2674f26c5aaa43ba858d4b0fcc2b54171e1
  20. PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  21. PKG_LICENSE:=BSD-2-Clause
  22. PKG_LICENSE_FILES:=COPYING
  23. PKG_CPE_ID:=cpe:/a:ruby-lang:ruby
  24. PKG_BUILD_DEPENDS:=ruby/host
  25. PKG_INSTALL:=1
  26. PKG_BUILD_PARALLEL:=1
  27. PKG_FIXUP:=autoreconf
  28. include $(INCLUDE_DIR)/host-build.mk
  29. include $(INCLUDE_DIR)/package.mk
  30. include $(INCLUDE_DIR)/nls.mk
  31. HOST_CONFIGURE_ARGS += \
  32. --disable-install-doc \
  33. --disable-install-rdoc \
  34. --disable-install-capi \
  35. --without-gmp \
  36. --with-out-ext=-test-/array/resize,-test-/bignum,-test-/bug-3571,-test-/bug-5832,-test-/bug_reporter,-test-/class,-test-/debug,-test-/dln/empty,-test-/exception,-test-/fatal,-test-/file,-test-/float,-test-/funcall,-test-/gvl/call_without_gvl,-test-/hash,-test-/integer,-test-/iseq_load,-test-/iter,-test-/load/dot.dot,-test-/marshal/compat,-test-/marshal/internal_ivar,-test-/marshal/usr,-test-/memory_status,-test-/method,-test-/notimplement,-test-/num2int,-test-/path_to_class,-test-/popen_deadlock,-test-/postponed_job,-test-/printf,-test-/proc,-test-/rational,-test-/recursion,-test-/st/foreach,-test-/st/numhash,-test-/st/update,-test-/string,-test-/struct,-test-/symbol,-test-/time,-test-/tracepoint,-test-/typeddata,-test-/vm,-test-/wait_for_single_fd,-test-/win32/console,-test-/win32/dln,-test-/win32/fd_setsize,bigdecimal,cgi/escape,continuation,coverage,dbm,etc,fcntl,fiber,fiddle,gdbm,io/console,io/nonblock,io/wait,json,json/generator,json/parser,mathn/complex,mathn/rational,nkf,objspace,openssl,pathname,pty,racc/cparse,rbconfig/sizeof,readline,ripper,rubyvm,sdbm,socket,syslog,win32,win32ole,win32/resolv,zlib
  37. # Does not compile with this. Workaround is --without-gmp
  38. # https://bugs.ruby-lang.org/issues/11940
  39. #--with-static-linked-ext \
  40. # even not used, host build with restricted exts results in gems not being
  41. # compiled for target (probably some cross compiling problem like checking
  42. # host for selecting target features)
  43. # --with-out-ext \
  44. # --with-ext=thread,stringio \
  45. CONFIGURE_ARGS += \
  46. --enable-shared \
  47. --enable-static \
  48. --disable-rpath \
  49. $(call autoconf_bool,CONFIG_IPV6,ipv6) \
  50. --disable-install-doc \
  51. --disable-install-capi \
  52. --with-ruby-version=minor \
  53. --with-iconv-dir=$(ICONV_PREFIX) \
  54. --with-out-ext=win32,win32ole
  55. ifndef CONFIG_RUBY_DIGEST_USE_OPENSSL
  56. CONFIGURE_ARGS += \
  57. --with-bundled-sha1\
  58. --with-bundled-md5\
  59. --with-bundled-rmd160\
  60. --with-bundled-sha2 \
  61. endif
  62. TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
  63. # Ruby uses DLDFLAGS and not LDFLAGS for libraries. LDFLAGS is only for execs.
  64. # However, DLDFLAGS from configure is not passed to Makefile when target is linux.
  65. # XLDFLAGS is used by both libraries and execs. This is somehow brute force but
  66. # it will fix when some LD_FLAGS is needed for libraries. As side effect, it will
  67. # duplicate ld args for binaries.
  68. CONFIGURE_VARS += XLDFLAGS="$(TARGET_LDFLAGS)"
  69. MAKE_FLAGS += \
  70. DESTDIR="$(PKG_INSTALL_DIR)" \
  71. SHELL="/bin/bash"
  72. define Build/InstallDev
  73. ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
  74. . \
  75. ) | ( cd $(1); $(TAR) -xf - )
  76. endef
  77. define Host/Install
  78. # When ruby version is updated, make install asks in some cases before replace
  79. # an existing different file. Remove them before install and avoid the interaction
  80. rm -f $(STAGING_DIR_HOSTPKG)/bin/rake
  81. $(call Host/Install/Default)
  82. endef
  83. define Package/ruby/Default
  84. SUBMENU:=Ruby
  85. SECTION:=lang
  86. CATEGORY:=Languages
  87. TITLE:=Ruby scripting language
  88. URL:=http://www.ruby-lang.org/
  89. endef
  90. define Package/ruby/Default/description
  91. Ruby is the interpreted scripting language for quick and easy
  92. object-oriented programming. It has many features to process text files
  93. and to do system management tasks (as in perl). It is simple,
  94. straight-forward, and extensible.
  95. endef
  96. define Package/ruby
  97. $(call Package/ruby/Default)
  98. TITLE+= (interpreter)
  99. DEPENDS:=+libruby
  100. endef
  101. define Package/ruby/description
  102. $(call Package/ruby/Default/description)
  103. endef
  104. define RubyDependency
  105. $(eval \
  106. $(call Package/Default)
  107. $(call Package/ruby-$(1))
  108. FILTER_CONFIG:=$$(strip \
  109. $$(foreach config_dep, \
  110. $$(filter @%, \
  111. $$(foreach v, \
  112. $$(DEPENDS), \
  113. $$(if $$(findstring :,$$v),,$$v) \
  114. ) \
  115. ), \
  116. $$(subst @,,$$(config_dep)) \
  117. ) \
  118. )
  119. ifneq (,$$(FILTER_CONFIG))
  120. FILTER_CONFIG:=($$(subst $$(space),&&,$$(FILTER_CONFIG))):
  121. endif
  122. ) \
  123. +$(FILTER_CONFIG)ruby-$(1)
  124. endef
  125. define Package/ruby/config
  126. comment "Standard Library"
  127. depends on PACKAGE_ruby
  128. config PACKAGE_ruby-stdlib
  129. depends on PACKAGE_ruby
  130. default m if ALL
  131. prompt "Select Ruby Complete Standard Library (ruby-stdlib)"
  132. endef
  133. define Package/ruby/install
  134. $(INSTALL_DIR) $(1)/usr/bin
  135. $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_ABI_VERSION)
  136. $(INSTALL_DIR) $(1)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)
  137. $(INSTALL_DIR) $(1)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)
  138. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/lib/ruby/ruby$(PKG_ABI_VERSION)-bin
  139. $(INSTALL_BIN) ./files/ruby $(1)/usr/bin/ruby
  140. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)/* $(1)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)/
  141. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)/* $(1)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)/
  142. $(SED) "s%@RUBY_LIBPATH@%/usr/lib/ruby/$(PKG_ABI_VERSION)%" $(1)/usr/bin/ruby
  143. $(SED) "s%@RUBY_BINPATH@%/usr/lib/ruby/ruby$(PKG_ABI_VERSION)-bin%" $(1)/usr/bin/ruby
  144. endef
  145. define Package/libruby
  146. $(call Package/ruby/Default)
  147. SUBMENU:=
  148. SECTION:=libs
  149. CATEGORY:=Libraries
  150. TITLE+= (shared library)
  151. DEPENDS+= +libpthread +librt +libgmp +zlib
  152. ABI_VERSION:=$(PKG_ABI_VERSION)
  153. endef
  154. define Package/libruby/install
  155. $(INSTALL_DIR) $(1)/usr/lib
  156. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so.* $(1)/usr/lib/
  157. endef
  158. define Package/ruby-dev
  159. $(call Package/ruby/Default)
  160. TITLE+= (dev files)
  161. DEPENDS:=+libruby
  162. endef
  163. define Package/ruby-dev/description
  164. Header files for compiling extension modules for the Ruby $(PKG_ABI_VERSION)
  165. endef
  166. define Package/ruby-dev/install
  167. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  168. $(CP) $(PKG_INSTALL_DIR)/usr/include/ruby-$(PKG_ABI_VERSION) $(1)/usr/include/
  169. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so $(1)/usr/lib/
  170. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ruby-$(PKG_ABI_VERSION).pc $(1)/usr/lib/pkgconfig/
  171. endef
  172. RUBY_STDLIB :=
  173. define Package/ruby-stdlib
  174. $(call Package/ruby/Default)
  175. TITLE:=Ruby standard libraries (metadata for all stdlib subsets)
  176. DEPENDS:=ruby $(foreach subpackage,$(RUBY_STDLIB),$(strip $(call RubyDependency,$(subpackage))))
  177. HIDDEN:=1
  178. endef
  179. define Package/ruby-stdlib/description
  180. This metapackage currently install all ruby-* packages,
  181. providing a complete Ruby Standard Library.
  182. endef
  183. # nothing to do
  184. define Package/ruby-stdlib/install
  185. /bin/true
  186. endef
  187. define Package/ruby-bigdecimal/files
  188. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/bigdecimal.so
  189. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/bigdecimal/
  190. /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal/
  191. /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal.rb
  192. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bigdecimal-*.gemspec
  193. endef
  194. define Package/ruby-bundler/files
  195. /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler.rb
  196. /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler/
  197. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/
  198. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bundler-*.gemspec
  199. endef
  200. define Package/ruby-cgi/files
  201. /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi
  202. /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi.rb
  203. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/cgi/escape.so
  204. endef
  205. define Package/ruby-cmath/files
  206. /usr/lib/ruby/$(PKG_ABI_VERSION)/cmath.rb
  207. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/cmath-*.gemspec
  208. endef
  209. define Package/ruby-csv/files
  210. /usr/lib/ruby/$(PKG_ABI_VERSION)/csv.rb
  211. /usr/lib/ruby/$(PKG_ABI_VERSION)/csv/
  212. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/csv-*.gemspec
  213. endef
  214. define Package/ruby-date/files
  215. /usr/lib/ruby/$(PKG_ABI_VERSION)/date.rb
  216. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/date_core.so
  217. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/date-*.gemspec
  218. endef
  219. define Package/ruby-dbm/description
  220. The DBM class provides a wrapper to a Unix-style dbm or Database Manager library.
  221. This package provides dbm.so file.
  222. endef
  223. define Package/ruby-dbm/files
  224. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/dbm.so
  225. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/dbm-*.gemspec
  226. endef
  227. define Package/ruby-debuglib/files
  228. /usr/lib/ruby/$(PKG_ABI_VERSION)/profile.rb
  229. /usr/lib/ruby/$(PKG_ABI_VERSION)/profiler.rb
  230. /usr/lib/ruby/$(PKG_ABI_VERSION)/debug.rb
  231. /usr/lib/ruby/$(PKG_ABI_VERSION)/benchmark.rb
  232. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/objspace.so
  233. endef
  234. define Package/ruby-did-you-mean/files
  235. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/did_you_mean-*.gemspec
  236. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/
  237. endef
  238. define Package/ruby-did-you-mean/files-excluded
  239. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/benchmark
  240. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/doc
  241. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/evaluation
  242. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/test
  243. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/*.md
  244. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/*.txt
  245. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/.travis.yml
  246. endef
  247. define Package/ruby-digest/description
  248. Provides digest* files. Can be configured to use OpenSSL or
  249. bundled hash functions.
  250. endef
  251. define Package/ruby-digest/config
  252. config RUBY_DIGEST_USE_OPENSSL
  253. bool "Use OpenSSL functions for ruby digest hash functions"
  254. depends on PACKAGE_ruby-digest
  255. help
  256. Ruby can use OpenSSL hash functions or compile alternative implementations. Using
  257. OpenSSL saves about 30KBytes (less when compressed) but requires OpenSSL (that
  258. is way bigger than that). However, if OpenSSL is already needed by another usage,
  259. as ruby-openssl or any other non ruby package, it is better to mark this option.
  260. default n
  261. endef
  262. define Package/ruby-digest/files
  263. /usr/lib/ruby/$(PKG_ABI_VERSION)/digest
  264. /usr/lib/ruby/$(PKG_ABI_VERSION)/digest.rb
  265. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest.so
  266. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest/*
  267. endef
  268. define Package/ruby-drb/files
  269. /usr/lib/ruby/$(PKG_ABI_VERSION)/drb.rb
  270. /usr/lib/ruby/$(PKG_ABI_VERSION)/drb
  271. endef
  272. define Package/ruby-enc/files
  273. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/encdb.so
  274. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/iso_8859_1.so
  275. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/utf_*.so
  276. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/euc_jp.so
  277. endef
  278. define Package/ruby-e2mmap/files
  279. /usr/lib/ruby/$(PKG_ABI_VERSION)/e2mmap.rb
  280. /usr/lib/ruby/$(PKG_ABI_VERSION)/e2mmap/
  281. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/e2mmap-*.gemspec
  282. endef
  283. define Package/ruby-enc-extra/files
  284. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc
  285. endef
  286. define Package/ruby-enc-extra/files-excluded
  287. $(call Package/ruby-enc/files)
  288. endef
  289. define Package/ruby-erb/files
  290. /usr/bin/erb
  291. /usr/lib/ruby/$(PKG_ABI_VERSION)/erb.rb
  292. endef
  293. define Package/ruby-etc/files
  294. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/etc.so
  295. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/etc-*.gemspec
  296. endef
  297. define Package/ruby-fcntl/files
  298. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fcntl.so
  299. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fcntl-*.gemspec
  300. endef
  301. define Package/ruby-fiddle/files
  302. /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle.rb
  303. /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle/
  304. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiddle.so
  305. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fiddle-*.gemspec
  306. endef
  307. define Package/ruby-filelib/files
  308. /usr/lib/ruby/$(PKG_ABI_VERSION)/tmpdir.rb
  309. /usr/lib/ruby/$(PKG_ABI_VERSION)/tempfile.rb
  310. /usr/lib/ruby/$(PKG_ABI_VERSION)/pathname.rb
  311. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pathname.so
  312. /usr/lib/ruby/$(PKG_ABI_VERSION)/find.rb
  313. endef
  314. define Package/ruby-fileutils/files
  315. /usr/lib/ruby/$(PKG_ABI_VERSION)/fileutils.rb
  316. /usr/lib/ruby/$(PKG_ABI_VERSION)/fileutils/
  317. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fileutils-*.gemspec
  318. endef
  319. define Package/ruby-forwardable/files
  320. /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable.rb
  321. /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable
  322. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/forwardable-*.gemspec
  323. endef
  324. define Package/ruby-gdbm/files
  325. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/gdbm.so
  326. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/gdbm-*.gemspec
  327. endef
  328. define Package/ruby-gems/files
  329. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems.rb
  330. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems
  331. endef
  332. define Package/ruby-gems/files-excluded
  333. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/test_case.rb
  334. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/package/tar_test_case.rb
  335. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/installer_test_case.rb
  336. endef
  337. define Package/ruby-gems/install
  338. $(INSTALL_DIR) $(1)/usr/bin
  339. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/
  340. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default
  341. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems
  342. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/doc
  343. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/cache
  344. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/extensions
  345. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/build_info
  346. $(call RubyBuildPackage/install,gems,$(1))
  347. endef
  348. define Package/ruby-io-console/files
  349. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/console.so
  350. /usr/lib/ruby/$(PKG_ABI_VERSION)/io/console/
  351. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/io-console-*.gemspec
  352. endef
  353. define Package/ruby-ipaddr/files
  354. /usr/lib/ruby/$(PKG_ABI_VERSION)/ipaddr.rb
  355. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/ipaddr-*.gemspec
  356. endef
  357. define Package/ruby-irb/files
  358. /usr/lib/ruby/$(PKG_ABI_VERSION)/irb
  359. /usr/lib/ruby/$(PKG_ABI_VERSION)/irb.rb
  360. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/irb-*/
  361. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/irb-*.gemspec
  362. endef
  363. define Package/ruby-irb/install
  364. $(INSTALL_DIR) $(1)/usr/bin
  365. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irb $(1)/usr/bin/
  366. $(call RubyBuildPackage/install,irb,$(1))
  367. endef
  368. define Package/ruby-json/files
  369. /usr/lib/ruby/$(PKG_ABI_VERSION)/json.rb
  370. /usr/lib/ruby/$(PKG_ABI_VERSION)/json
  371. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/json
  372. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/json-*.gemspec
  373. endef
  374. define Package/ruby-json/files-excluded
  375. $(call Package/ruby-psych/files)
  376. endef
  377. define Package/ruby-logger/files
  378. /usr/lib/ruby/$(PKG_ABI_VERSION)/logger.rb
  379. /usr/lib/ruby/$(PKG_ABI_VERSION)/syslog/logger.rb
  380. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/syslog.so
  381. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/logger-*.gemspec
  382. endef
  383. define Package/ruby-matrix/files
  384. /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix.rb
  385. /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix
  386. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/matrix-*.gemspec
  387. endef
  388. define Package/ruby-minitest/files
  389. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/minitest-*.gemspec
  390. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*
  391. endef
  392. define Package/ruby-minitest/files-excluded
  393. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/test
  394. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.rdoc
  395. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.txt
  396. endef
  397. define Package/ruby-misc/files
  398. /usr/lib/ruby/$(PKG_ABI_VERSION)/English.rb
  399. /usr/lib/ruby/$(PKG_ABI_VERSION)/abbrev.rb
  400. /usr/lib/ruby/$(PKG_ABI_VERSION)/base64.rb
  401. /usr/lib/ruby/$(PKG_ABI_VERSION)/coverage.rb
  402. /usr/lib/ruby/$(PKG_ABI_VERSION)/delegate.rb
  403. /usr/lib/ruby/$(PKG_ABI_VERSION)/expect.rb
  404. /usr/lib/ruby/$(PKG_ABI_VERSION)/getoptlong.rb
  405. /usr/lib/ruby/$(PKG_ABI_VERSION)/open3.rb
  406. /usr/lib/ruby/$(PKG_ABI_VERSION)/securerandom.rb
  407. /usr/lib/ruby/$(PKG_ABI_VERSION)/set.rb
  408. /usr/lib/ruby/$(PKG_ABI_VERSION)/shellwords.rb
  409. /usr/lib/ruby/$(PKG_ABI_VERSION)/tsort.rb
  410. /usr/lib/ruby/$(PKG_ABI_VERSION)/weakref.rb
  411. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/continuation.so
  412. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/coverage.so
  413. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiber.so
  414. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pty.so
  415. endef
  416. define Package/ruby-mkmf/files
  417. /usr/lib/ruby/$(PKG_ABI_VERSION)/mkmf.rb
  418. /usr/lib/ruby/$(PKG_ABI_VERSION)/un.rb
  419. endef
  420. define Package/ruby-multithread/files
  421. /usr/lib/ruby/$(PKG_ABI_VERSION)/monitor.rb
  422. /usr/lib/ruby/$(PKG_ABI_VERSION)/timeout.rb
  423. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/wait.so
  424. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/nonblock.so
  425. endef
  426. define Package/ruby-mutex_m/files
  427. /usr/lib/ruby/$(PKG_ABI_VERSION)/mutex_m.rb
  428. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/mutex_m-*.gemspec
  429. endef
  430. define Package/ruby-net/files
  431. /usr/lib/ruby/$(PKG_ABI_VERSION)/open-uri.rb
  432. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/*
  433. endef
  434. define Package/ruby-net-telnet/files
  435. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/net-telnet-*.gemspec
  436. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/
  437. endef
  438. define Package/ruby-net-telnet/files-excluded
  439. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/*.md
  440. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/*.txt
  441. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/.travis.yml
  442. endef
  443. define Package/ruby-nkf/files
  444. /usr/lib/ruby/$(PKG_ABI_VERSION)/kconv.rb
  445. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/nkf.so
  446. endef
  447. define Package/ruby-openssl/files
  448. /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl
  449. /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl.rb
  450. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/openssl.so
  451. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/openssl-*.gemspec
  452. endef
  453. define Package/ruby-optparse/files
  454. /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse.rb
  455. /usr/lib/ruby/$(PKG_ABI_VERSION)/optionparser.rb
  456. /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse
  457. endef
  458. define Package/ruby-ostruct/files
  459. /usr/lib/ruby/$(PKG_ABI_VERSION)/ostruct.rb
  460. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/ostruct-*.gemspec
  461. endef
  462. define Package/ruby-patterns/files
  463. /usr/lib/ruby/$(PKG_ABI_VERSION)/observer.rb
  464. /usr/lib/ruby/$(PKG_ABI_VERSION)/singleton.rb
  465. endef
  466. define Package/ruby-powerassert/files
  467. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/power_assert-*.gemspec
  468. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*
  469. endef
  470. define Package/ruby-powerassert/files-excluded
  471. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/*.rdoc
  472. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/.travis.yml
  473. endef
  474. define Package/ruby-prettyprint/files
  475. /usr/lib/ruby/$(PKG_ABI_VERSION)/pp.rb
  476. /usr/lib/ruby/$(PKG_ABI_VERSION)/prettyprint.rb
  477. endef
  478. define Package/ruby-prime/files
  479. /usr/lib/ruby/$(PKG_ABI_VERSION)/prime.rb
  480. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/prime-*.gemspec
  481. endef
  482. define Package/ruby-pstore/files
  483. /usr/lib/ruby/$(PKG_ABI_VERSION)/pstore.rb
  484. endef
  485. define Package/ruby-psych/files
  486. /usr/lib/ruby/$(PKG_ABI_VERSION)/psych
  487. /usr/lib/ruby/$(PKG_ABI_VERSION)/psych.rb
  488. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/psych.so
  489. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/psych-*.gemspec
  490. endef
  491. define Package/ruby-racc/files
  492. /usr/lib/ruby/$(PKG_ABI_VERSION)/racc
  493. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/racc/*.so
  494. endef
  495. define Package/ruby-rake/files
  496. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rake-*.gemspec
  497. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/
  498. endef
  499. define Package/ruby-rake/files-excluded
  500. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/doc
  501. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/*.rdoc
  502. endef
  503. define Package/ruby-rake/install
  504. $(INSTALL_DIR) $(1)/usr/bin
  505. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/;
  506. $(call RubyBuildPackage/install,rake,$(1))
  507. endef
  508. define Package/ruby-rbconfig/files
  509. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig.rb
  510. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig/*.so
  511. endef
  512. define Package/ruby-rdoc/files
  513. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc.rb
  514. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc
  515. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rdoc-*
  516. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rdoc-*.gemspec
  517. endef
  518. define Package/ruby-rdoc/files-excluded
  519. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc/test_case.rb
  520. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc/markup/formatter_test_case.rb
  521. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc/markup/text_formatter_test_case.rb
  522. endef
  523. define Package/ruby-rdoc/install
  524. $(INSTALL_DIR) $(1)/usr/bin
  525. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
  526. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
  527. $(call RubyBuildPackage/install,rdoc,$(1))
  528. endef
  529. define Package/ruby-readline/files
  530. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/readline.so
  531. endef
  532. define Package/ruby-rexml/files
  533. /usr/lib/ruby/$(PKG_ABI_VERSION)/rexml
  534. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rexml-*.gemspec
  535. endef
  536. define Package/ruby-rinda/files
  537. /usr/lib/ruby/$(PKG_ABI_VERSION)/rinda
  538. endef
  539. define Package/ruby-ripper/files
  540. /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper.rb
  541. /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper
  542. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/ripper.so
  543. endef
  544. define Package/ruby-rss/files
  545. /usr/lib/ruby/$(PKG_ABI_VERSION)/rss
  546. /usr/lib/ruby/$(PKG_ABI_VERSION)/rss.rb
  547. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rss-*.gemspec
  548. endef
  549. define Package/ruby-scanf/files
  550. /usr/lib/ruby/$(PKG_ABI_VERSION)/scanf.rb
  551. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/scanf-*.gemspec
  552. endef
  553. define Package/ruby-sdbm/files
  554. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/sdbm.so
  555. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/sdbm-*.gemspec
  556. endef
  557. define Package/ruby-shell/files
  558. /usr/lib/ruby/$(PKG_ABI_VERSION)/shell.rb
  559. /usr/lib/ruby/$(PKG_ABI_VERSION)/shell
  560. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/shell-*.gemspec
  561. endef
  562. define Package/ruby-socket/files
  563. /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv-replace.rb
  564. /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv.rb
  565. /usr/lib/ruby/$(PKG_ABI_VERSION)/socket.rb
  566. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/socket.so
  567. endef
  568. define Package/ruby-stringio/files
  569. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/stringio.so
  570. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/stringio-*.gemspec
  571. endef
  572. define Package/ruby-strscan/files
  573. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/strscan.so
  574. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/strscan-*.gemspec
  575. endef
  576. define Package/ruby-sync/files
  577. /usr/lib/ruby/$(PKG_ABI_VERSION)/sync.rb
  578. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/sync-*.gemspec
  579. endef
  580. define Package/ruby-testunit/files
  581. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/test-unit-*.gemspec
  582. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*
  583. endef
  584. define Package/ruby-testunit/files-excluded
  585. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/doc
  586. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/test
  587. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/sample
  588. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/*.md
  589. endef
  590. define Package/ruby-time/files
  591. /usr/lib/ruby/$(PKG_ABI_VERSION)/time.rb
  592. endef
  593. define Package/ruby-thwait/files
  594. /usr/lib/ruby/$(PKG_ABI_VERSION)/thwait.rb
  595. /usr/lib/ruby/$(PKG_ABI_VERSION)/thwait/
  596. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/thwait-*.gemspec
  597. endef
  598. define Package/ruby-tracer/files
  599. /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer.rb
  600. /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer/
  601. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tracer-*.gemspec
  602. endef
  603. define Package/ruby-unicodenormalize/files
  604. /usr/lib/ruby/$(PKG_ABI_VERSION)/unicode_normalize
  605. endef
  606. define Package/ruby-uri/files
  607. /usr/lib/ruby/$(PKG_ABI_VERSION)/uri.rb
  608. /usr/lib/ruby/$(PKG_ABI_VERSION)/uri
  609. endef
  610. define Package/ruby-webrick/files
  611. /usr/lib/ruby/$(PKG_ABI_VERSION)/webrick
  612. /usr/lib/ruby/$(PKG_ABI_VERSION)/webrick.rb
  613. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/webrick-*.gemspec
  614. endef
  615. define Package/ruby-xmlrpc/files
  616. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*
  617. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/xmlrpc-*.gemspec
  618. endef
  619. define Package/ruby-xmlrpc/files-excluded
  620. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/*.md
  621. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/*.txt
  622. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/.travis.yml
  623. endef
  624. define Package/ruby-yaml/files
  625. /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml
  626. /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml.rb
  627. endef
  628. define Package/ruby-zlib/files
  629. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/zlib.so
  630. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/zlib-*.gemspec
  631. endef
  632. RUBY_FILES = $(strip $(call Package/ruby-$(1)/files))
  633. RUBY_FILES_EXCLUDED = $(strip $(call Package/ruby-$(1)/files-excluded))
  634. # 1: short name
  635. # 2: install dir
  636. define RubyBuildPackage/install
  637. ( \
  638. cd $(PKG_INSTALL_DIR) && \
  639. $(TAR) -cf - \
  640. $(if $(RUBY_FILES_EXCLUDED),--exclude-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES_EXCLUDED)))) \
  641. --files-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES))) \
  642. ) | ( \
  643. [ -n "$(2)" ] && cd $(2) && $(TAR) -xf - \
  644. )
  645. endef
  646. # 1: short name
  647. # 2: description
  648. # 3: dependencies on other packages
  649. define RubyBuildPackage
  650. RUBY_STDLIB += $(1)
  651. # Package definition
  652. ifndef Package/ruby-$(1)
  653. define Package/ruby-$(1)
  654. $(call Package/ruby/Default)
  655. TITLE:=Ruby $(2)
  656. DEPENDS:=ruby $(3)
  657. endef
  658. endif
  659. ifndef Package/ruby-$(1)/description
  660. define Package/ruby-$(1)/description
  661. This package contains the ruby $(2).
  662. endef
  663. endif
  664. # Description
  665. ifndef Package/ruby-$(1)/install
  666. ifndef Package/ruby-$(1)/files
  667. $$(error It must exists either a Package/ruby-$(1)/install or Package/ruby-$(1)/files)
  668. endif
  669. define Package/ruby-$(1)/description +=
  670. Provides:
  671. $(patsubst /%,
  672. - /%,$(RUBY_FILES))
  673. endef
  674. ifneq ($(RUBY_FILES_EXCLUDED),)
  675. define Package/ruby-$(1)/description +=
  676. Except:
  677. $(patsubst /%,
  678. - /%,$(RUBY_FILES_EXCLUDED))
  679. endef
  680. endif
  681. Package/ruby-$(1)/install=$(call RubyBuildPackage/install,$(1),$$(1))
  682. endif
  683. $$(eval $$(call BuildPackage,ruby-$(1)))
  684. endef
  685. $(eval $(call BuildPackage,libruby))
  686. $(eval $(call BuildPackage,ruby))
  687. $(eval $(call BuildPackage,ruby-dev))
  688. $(eval $(call RubyBuildPackage,bigdecimal,Arbitrary-precision decimal floating-point library,))
  689. $(eval $(call RubyBuildPackage,bundler,Manage dependencies,))
  690. $(eval $(call RubyBuildPackage,cgi,CGI support toolkit,+ruby-filelib +ruby-pstore +ruby-stringio))
  691. $(eval $(call RubyBuildPackage,cmath,Trigonometric and transcendental functions for complex numbers,))
  692. $(eval $(call RubyBuildPackage,csv,CSV Reading and Writing,+ruby-date +ruby-forwardable +ruby-misc +ruby-stringio +ruby-strscan))
  693. $(eval $(call RubyBuildPackage,date,Comparable module for handling dates,))
  694. $(eval $(call RubyBuildPackage,dbm,Wrapper for the UNIX-style Database Manager Library,+libdb47))
  695. $(eval $(call RubyBuildPackage,debuglib,debug library,+ruby-misc +ruby-prettyprint +ruby-tracer))
  696. $(eval $(call RubyBuildPackage,did-you-mean,did you mean? experience,+ruby-misc))
  697. $(eval $(call RubyBuildPackage,digest,Digest Library,+RUBY_DIGEST_USE_OPENSSL:libopenssl))
  698. $(eval $(call RubyBuildPackage,drb,distributed object system,+ruby-filelib +ruby-ipaddr +ruby-patterns))
  699. $(eval $(call RubyBuildPackage,e2mmap,custom exceptions with specific messages,))
  700. $(eval $(call RubyBuildPackage,enc,character re-coding library charset (small subset),))
  701. $(eval $(call RubyBuildPackage,enc-extra,character re-coding library charset (extra subset),+ruby-enc))
  702. $(eval $(call RubyBuildPackage,erb,(embedded interpreter),+ruby-cgi +ruby-strscan))
  703. $(eval $(call RubyBuildPackage,etc,Access info typically stored in /etc,))
  704. $(eval $(call RubyBuildPackage,fcntl,Loads constants defined in the OS fcntl.h C header file,))
  705. $(eval $(call RubyBuildPackage,fiddle,Libffi wrapper for Ruby,+libffi))
  706. $(eval $(call RubyBuildPackage,filelib,file utils library,+ruby-fileutils +ruby-misc))
  707. $(eval $(call RubyBuildPackage,fileutils,File utility methods for copying moving removing etc,+ruby-enc +ruby-etc +ruby-rbconfig))
  708. $(eval $(call RubyBuildPackage,forwardable,delegation of methods to a object,))
  709. $(eval $(call RubyBuildPackage,gdbm,Ruby extension for GNU dbm,+libgdbm))
  710. $(eval $(call RubyBuildPackage,gems,gems packet management,))
  711. $(eval $(call RubyBuildPackage,io-console,Console interface,))
  712. $(eval $(call RubyBuildPackage,ipaddr,Set of methods to manipulate an IP address,+ruby-socket))
  713. $(eval $(call RubyBuildPackage,irb,(interactive shell),))
  714. $(eval $(call RubyBuildPackage,json,JSON Implementation for Ruby,+ruby-date +ruby-ostruct))
  715. $(eval $(call RubyBuildPackage,logger,logger and syslog library,+ruby-multithread))
  716. $(eval $(call RubyBuildPackage,matrix,implementation of Matrix and Vector classes,+ruby-e2mmap))
  717. $(eval $(call RubyBuildPackage,minitest,Gem minitest,+ruby-mutex_m))
  718. $(eval $(call RubyBuildPackage,misc,standard libraries subset (miscellaneous files),))
  719. $(eval $(call RubyBuildPackage,mkmf,makefile library,+ruby-filelib +ruby-optparse))
  720. $(eval $(call RubyBuildPackage,multithread,multithread library,+ruby-misc))
  721. $(eval $(call RubyBuildPackage,mutex_m,extend objects to be handled like a Mutex,))
  722. $(eval $(call RubyBuildPackage,net,Network Protocols Library,+ruby-time +ruby-digest +ruby-filelib +ruby-socket +ruby-stringio +ruby-strscan +ruby-uri))
  723. $(eval $(call RubyBuildPackage,net-telnet,telnet client,+ruby-net))
  724. $(eval $(call RubyBuildPackage,nkf,Network Kanji Filter,+ruby-enc))
  725. $(eval $(call RubyBuildPackage,openssl,SSL TLS and general purpose cryptography,+ruby-enc +ruby-ipaddr +ruby-stringio +libopenssl))
  726. $(eval $(call RubyBuildPackage,ostruct,build custom data structures,))
  727. $(eval $(call RubyBuildPackage,optparse,command-line option analysis,+ruby-misc +ruby-time))
  728. $(eval $(call RubyBuildPackage,patterns,design patterns implementation,))
  729. $(eval $(call RubyBuildPackage,powerassert,Gem power_assert,+ruby-prettyprint +ruby-ripper))
  730. $(eval $(call RubyBuildPackage,prettyprint,PrettyPrint library,+ruby-etc))
  731. $(eval $(call RubyBuildPackage,prime,Prime numbers and factorization library,+ruby-forwardable +ruby-patterns))
  732. $(eval $(call RubyBuildPackage,pstore,file based persistence,+ruby-digest +ruby-enc))
  733. $(eval $(call RubyBuildPackage,psych,YAML parser and emitter,+ruby-bigdecimal +ruby-date +ruby-enc +ruby-stringio +ruby-strscan +libyaml))
  734. $(eval $(call RubyBuildPackage,racc,LALR parser generator,))
  735. $(eval $(call RubyBuildPackage,rake,Rake (make replacement),+ruby-fileutils +ruby-multithread +ruby-optparse +ruby-ostruct +ruby-patterns))
  736. $(eval $(call RubyBuildPackage,rbconfig,RbConfig,))
  737. $(eval $(call RubyBuildPackage,rdoc,RDoc produces HTML and command-line documentation for Ruby projects,+ruby-debuglib +ruby-did-you-mean +ruby-erb +ruby-json +ruby-racc +ruby-rake +ruby-ripper +ruby-yaml +ruby-zlib))
  738. $(eval $(call RubyBuildPackage,readline,support for readline,+libncurses +libreadline))
  739. $(eval $(call RubyBuildPackage,rexml,XML toolkit,+ruby-enc +ruby-forwardable +ruby-misc +ruby-stringio +ruby-strscan))
  740. $(eval $(call RubyBuildPackage,rinda,Linda paradigm implementation,+ruby-drb +ruby-forwardable))
  741. $(eval $(call RubyBuildPackage,ripper,script parser,))
  742. $(eval $(call RubyBuildPackage,rss,RSS toolkit,+ruby-net +ruby-nkf +ruby-rexml))
  743. $(eval $(call RubyBuildPackage,scanf,Implementation of the C function scanf(3),))
  744. $(eval $(call RubyBuildPackage,sdbm,simple file-based key-value dbm implementation,))
  745. $(eval $(call RubyBuildPackage,shell,idiomatic Ruby interface,+ruby-e2mmap +ruby-forwardable +ruby-sync))
  746. $(eval $(call RubyBuildPackage,socket,socket support,+ruby-misc +ruby-multithread))
  747. $(eval $(call RubyBuildPackage,stringio,Pseudo `IO` class from/to `String`,))
  748. $(eval $(call RubyBuildPackage,strscan,Lexical scanning operations on a String,))
  749. $(eval $(call RubyBuildPackage,sync,two-phase lock with a counter,))
  750. $(eval $(call RubyBuildPackage,testunit,Gem test-unit,+ruby-csv +ruby-erb +ruby-optparse +ruby-powerassert +ruby-rexml +ruby-yaml))
  751. $(eval $(call RubyBuildPackage,time,Extends Time with additional methods for parsing and converting Times,+ruby-date))
  752. $(eval $(call RubyBuildPackage,thwait,Watches for termination of multiple threads,+ruby-e2mmap))
  753. $(eval $(call RubyBuildPackage,tracer,Outputs a source level execution trace of a Ruby program,))
  754. $(eval $(call RubyBuildPackage,unicodenormalize,String additions for Unicode normalization,+ruby-enc +ruby-enc-extra))
  755. $(eval $(call RubyBuildPackage,uri,library to handle URI,+ruby-enc))
  756. $(eval $(call RubyBuildPackage,webrick,HTTP server toolkit,+ruby-erb +ruby-net +ruby-patterns))
  757. $(eval $(call RubyBuildPackage,xmlrpc,XML-RPC toolkit,+ruby-rexml +ruby-webrick))
  758. $(eval $(call RubyBuildPackage,yaml,YAML toolkit,+ruby-dbm +ruby-pstore +ruby-psych))
  759. $(eval $(call RubyBuildPackage,zlib,compression/decompression library interface,))
  760. $(eval $(call BuildPackage,ruby-stdlib))
  761. $(eval $(call HostBuild))