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.

937 lines
35 KiB

  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. # Copyright (C) 2017-2020 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.7.1
  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:=b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7
  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,json,json/generator,json/parser,mathn/complex,mathn/rational,nkf,objspace,pty,racc/cparse,rbconfig/sizeof,readline,rubyvm,sdbm,syslog,win32,win32ole,win32/resolv
  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 ruby
  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-benchmark/files
  188. /usr/lib/ruby/$(PKG_ABI_VERSION)/benchmark.rb
  189. /usr/lib/ruby/$(PKG_ABI_VERSION)/benchmark/
  190. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/benchmark-*/
  191. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/benchmark-*.gemspec
  192. endef
  193. define Package/ruby-bigdecimal/files
  194. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/bigdecimal.so
  195. /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal/
  196. /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal.rb
  197. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bigdecimal-*.gemspec
  198. endef
  199. define Package/ruby-bundler/files
  200. /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler.rb
  201. /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler/
  202. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/
  203. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bundler-*.gemspec
  204. endef
  205. define Package/ruby-cgi/files
  206. /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi.rb
  207. /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi/
  208. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/cgi-*/
  209. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/cgi-*.gemspec
  210. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/cgi/escape.so
  211. endef
  212. define Package/ruby-csv/files
  213. /usr/lib/ruby/$(PKG_ABI_VERSION)/csv.rb
  214. /usr/lib/ruby/$(PKG_ABI_VERSION)/csv/
  215. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/csv-*.gemspec
  216. endef
  217. define Package/ruby-date/files
  218. /usr/lib/ruby/$(PKG_ABI_VERSION)/date.rb
  219. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/date_core.so
  220. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/date-*.gemspec
  221. endef
  222. define Package/ruby-dbm/description
  223. The DBM class provides a wrapper to a Unix-style dbm or Database Manager library.
  224. This package provides dbm.so file.
  225. endef
  226. define Package/ruby-dbm/files
  227. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/dbm.so
  228. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/dbm-*.gemspec
  229. endef
  230. define Package/ruby-debuglib/files
  231. /usr/lib/ruby/$(PKG_ABI_VERSION)/debug.rb
  232. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/objspace.so
  233. endef
  234. define Package/ruby-delegate/files
  235. /usr/lib/ruby/$(PKG_ABI_VERSION)/delegate.rb
  236. /usr/lib/ruby/$(PKG_ABI_VERSION)/delegate/
  237. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/delegate-*/
  238. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/delegate-*.gemspec
  239. endef
  240. define Package/ruby-did-you-mean/files
  241. /usr/lib/ruby/$(PKG_ABI_VERSION)/did_you_mean.rb
  242. /usr/lib/ruby/$(PKG_ABI_VERSION)/did_you_mean/
  243. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/
  244. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/did_you_mean-*.gemspec
  245. endef
  246. define Package/ruby-digest/description
  247. Provides digest* files. Can be configured to use OpenSSL or
  248. bundled hash functions.
  249. endef
  250. define Package/ruby-digest/config
  251. config RUBY_DIGEST_USE_OPENSSL
  252. bool "Use OpenSSL functions for ruby digest hash functions"
  253. depends on PACKAGE_ruby-digest
  254. help
  255. Ruby can use OpenSSL hash functions or compile alternative implementations. Using
  256. OpenSSL saves about 30KBytes (less when compressed) but requires OpenSSL (that
  257. is way bigger than that). However, if OpenSSL is already needed by another usage,
  258. as ruby-openssl or any other non ruby package, it is better to mark this option.
  259. default n
  260. endef
  261. define Package/ruby-digest/files
  262. /usr/lib/ruby/$(PKG_ABI_VERSION)/digest
  263. /usr/lib/ruby/$(PKG_ABI_VERSION)/digest.rb
  264. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest.so
  265. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest/*
  266. endef
  267. define Package/ruby-drb/files
  268. /usr/lib/ruby/$(PKG_ABI_VERSION)/drb.rb
  269. /usr/lib/ruby/$(PKG_ABI_VERSION)/drb
  270. endef
  271. define Package/ruby-enc/files
  272. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/encdb.so
  273. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/iso_8859_1.so
  274. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/utf_*.so
  275. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/euc_jp.so
  276. endef
  277. define Package/ruby-enc-extra/files
  278. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc
  279. endef
  280. define Package/ruby-enc-extra/files-excluded
  281. $(call Package/ruby-enc/files)
  282. endef
  283. define Package/ruby-erb/files
  284. /usr/bin/erb
  285. /usr/lib/ruby/$(PKG_ABI_VERSION)/erb.rb
  286. endef
  287. define Package/ruby-etc/files
  288. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/etc.so
  289. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/etc-*.gemspec
  290. endef
  291. define Package/ruby-fcntl/files
  292. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fcntl.so
  293. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fcntl-*.gemspec
  294. endef
  295. define Package/ruby-fiddle/files
  296. /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle.rb
  297. /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle/
  298. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiddle.so
  299. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fiddle-*.gemspec
  300. endef
  301. define Package/ruby-filelib/files
  302. /usr/lib/ruby/$(PKG_ABI_VERSION)/tmpdir.rb
  303. /usr/lib/ruby/$(PKG_ABI_VERSION)/tempfile.rb
  304. /usr/lib/ruby/$(PKG_ABI_VERSION)/pathname.rb
  305. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pathname.so
  306. /usr/lib/ruby/$(PKG_ABI_VERSION)/find.rb
  307. endef
  308. define Package/ruby-fileutils/files
  309. /usr/lib/ruby/$(PKG_ABI_VERSION)/fileutils.rb
  310. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/fileutils-*/
  311. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fileutils-*.gemspec
  312. endef
  313. define Package/ruby-forwardable/files
  314. /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable.rb
  315. /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable
  316. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/forwardable-*.gemspec
  317. endef
  318. define Package/ruby-gdbm/files
  319. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/gdbm.so
  320. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/gdbm-*.gemspec
  321. endef
  322. define Package/ruby-gems/files
  323. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems.rb
  324. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems
  325. endef
  326. define Package/ruby-gems/files-excluded
  327. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/test_case.rb
  328. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/package/tar_test_case.rb
  329. /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/installer_test_case.rb
  330. endef
  331. define Package/ruby-gems/install
  332. $(INSTALL_DIR) $(1)/usr/bin
  333. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/
  334. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default
  335. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems
  336. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/doc
  337. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/cache
  338. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/extensions
  339. $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/build_info
  340. $(call RubyBuildPackage/install,gems,$(1))
  341. endef
  342. define Package/ruby-getoptlong/files
  343. /usr/lib/ruby/$(PKG_ABI_VERSION)/getoptlong.rb
  344. /usr/lib/ruby/$(PKG_ABI_VERSION)/getoptlong/
  345. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/getoptlong-*/
  346. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/getoptlong-*.gemspec
  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)/logger/
  380. /usr/lib/ruby/$(PKG_ABI_VERSION)/syslog/logger.rb
  381. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/syslog.so
  382. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/logger-*.gemspec
  383. endef
  384. define Package/ruby-matrix/files
  385. /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix.rb
  386. /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix
  387. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/matrix-*.gemspec
  388. endef
  389. define Package/ruby-minitest/files
  390. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/minitest-*.gemspec
  391. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*
  392. endef
  393. define Package/ruby-minitest/files-excluded
  394. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/test
  395. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.rdoc
  396. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.txt
  397. endef
  398. define Package/ruby-misc/files
  399. /usr/lib/ruby/$(PKG_ABI_VERSION)/English.rb
  400. /usr/lib/ruby/$(PKG_ABI_VERSION)/abbrev.rb
  401. /usr/lib/ruby/$(PKG_ABI_VERSION)/base64.rb
  402. /usr/lib/ruby/$(PKG_ABI_VERSION)/coverage.rb
  403. /usr/lib/ruby/$(PKG_ABI_VERSION)/expect.rb
  404. /usr/lib/ruby/$(PKG_ABI_VERSION)/securerandom.rb
  405. /usr/lib/ruby/$(PKG_ABI_VERSION)/set.rb
  406. /usr/lib/ruby/$(PKG_ABI_VERSION)/shellwords.rb
  407. /usr/lib/ruby/$(PKG_ABI_VERSION)/tsort.rb
  408. /usr/lib/ruby/$(PKG_ABI_VERSION)/weakref.rb
  409. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/continuation.so
  410. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/coverage.so
  411. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiber.so
  412. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pty.so
  413. endef
  414. define Package/ruby-mkmf/files
  415. /usr/lib/ruby/$(PKG_ABI_VERSION)/mkmf.rb
  416. /usr/lib/ruby/$(PKG_ABI_VERSION)/un.rb
  417. endef
  418. define Package/ruby-multithread/files
  419. /usr/lib/ruby/$(PKG_ABI_VERSION)/monitor.rb
  420. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/monitor.so
  421. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/wait.so
  422. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/nonblock.so
  423. endef
  424. define Package/ruby-mutex_m/files
  425. /usr/lib/ruby/$(PKG_ABI_VERSION)/mutex_m.rb
  426. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/mutex_m-*.gemspec
  427. endef
  428. define Package/ruby-net/files
  429. /usr/lib/ruby/$(PKG_ABI_VERSION)/open-uri.rb
  430. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/*
  431. endef
  432. define Package/ruby-net/files-excluded
  433. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop.rb
  434. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop/*
  435. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp.rb
  436. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp/*
  437. endef
  438. define Package/ruby-net-pop/files
  439. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop.rb
  440. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop/
  441. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-pop-*/
  442. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-pop-*.gemspec
  443. endef
  444. define Package/ruby-net-smtp/files
  445. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp.rb
  446. /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp/
  447. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-smtp-*/
  448. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-smtp-*.gemspec
  449. endef
  450. define Package/ruby-net-telnet/files
  451. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/net-telnet-*.gemspec
  452. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/
  453. endef
  454. define Package/ruby-net-telnet/files-excluded
  455. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/*.md
  456. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/*.txt
  457. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-telnet-*/.travis.yml
  458. endef
  459. define Package/ruby-nkf/files
  460. /usr/lib/ruby/$(PKG_ABI_VERSION)/kconv.rb
  461. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/nkf.so
  462. endef
  463. define Package/ruby-observer/files
  464. /usr/lib/ruby/$(PKG_ABI_VERSION)/observer.rb
  465. /usr/lib/ruby/$(PKG_ABI_VERSION)/observer/
  466. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/observer-*/
  467. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/observer-*.gemspec
  468. endef
  469. define Package/ruby-open3/files
  470. /usr/lib/ruby/$(PKG_ABI_VERSION)/open3.rb
  471. /usr/lib/ruby/$(PKG_ABI_VERSION)/open3/
  472. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/open3-*/
  473. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/open3-*.gemspec
  474. endef
  475. define Package/ruby-openssl/files
  476. /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl
  477. /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl.rb
  478. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/openssl.so
  479. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/openssl-*.gemspec
  480. endef
  481. define Package/ruby-optparse/files
  482. /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse.rb
  483. /usr/lib/ruby/$(PKG_ABI_VERSION)/optionparser.rb
  484. /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse
  485. endef
  486. define Package/ruby-ostruct/files
  487. /usr/lib/ruby/$(PKG_ABI_VERSION)/ostruct.rb
  488. /usr/lib/ruby/$(PKG_ABI_VERSION)/ostruct/
  489. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/ostruct-*.gemspec
  490. endef
  491. define Package/ruby-powerassert/files
  492. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/power_assert-*.gemspec
  493. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*
  494. endef
  495. define Package/ruby-powerassert/files-excluded
  496. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/*.rdoc
  497. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/.travis.yml
  498. endef
  499. define Package/ruby-prettyprint/files
  500. /usr/lib/ruby/$(PKG_ABI_VERSION)/pp.rb
  501. /usr/lib/ruby/$(PKG_ABI_VERSION)/prettyprint.rb
  502. endef
  503. define Package/ruby-prime/files
  504. /usr/lib/ruby/$(PKG_ABI_VERSION)/prime.rb
  505. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/prime-*.gemspec
  506. endef
  507. define Package/ruby-pstore/files
  508. /usr/lib/ruby/$(PKG_ABI_VERSION)/pstore.rb
  509. /usr/lib/ruby/$(PKG_ABI_VERSION)/pstore/
  510. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/pstore-*/
  511. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/pstore-*.gemspec
  512. endef
  513. define Package/ruby-psych/files
  514. /usr/lib/ruby/$(PKG_ABI_VERSION)/psych
  515. /usr/lib/ruby/$(PKG_ABI_VERSION)/psych.rb
  516. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/psych.so
  517. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/psych-*.gemspec
  518. endef
  519. define Package/ruby-racc/files
  520. /usr/lib/ruby/$(PKG_ABI_VERSION)/racc.rb
  521. /usr/lib/ruby/$(PKG_ABI_VERSION)/racc
  522. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/racc/*.so
  523. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/racc-*/
  524. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/racc-*.gemspec
  525. endef
  526. define Package/ruby-racc/install
  527. $(INSTALL_DIR) $(1)/usr/bin
  528. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/racc $(1)/usr/bin/;
  529. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/racc2y $(1)/usr/bin/;
  530. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/y2racc $(1)/usr/bin/;
  531. $(call RubyBuildPackage/install,racc,$(1))
  532. endef
  533. define Package/ruby-rake/files
  534. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rake-*.gemspec
  535. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/
  536. endef
  537. define Package/ruby-rake/files-excluded
  538. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/doc
  539. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/*.rdoc
  540. endef
  541. define Package/ruby-rake/install
  542. $(INSTALL_DIR) $(1)/usr/bin
  543. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/;
  544. $(call RubyBuildPackage/install,rake,$(1))
  545. endef
  546. define Package/ruby-rbconfig/files
  547. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig.rb
  548. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig/*.so
  549. endef
  550. define Package/ruby-rdoc/files
  551. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc.rb
  552. /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc
  553. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rdoc-*
  554. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rdoc-*.gemspec
  555. endef
  556. define Package/ruby-rdoc/install
  557. $(INSTALL_DIR) $(1)/usr/bin
  558. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
  559. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
  560. $(call RubyBuildPackage/install,rdoc,$(1))
  561. endef
  562. define Package/ruby-readline/files
  563. /usr/lib/ruby/$(PKG_ABI_VERSION)/readline.rb
  564. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/readline-0*
  565. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/readline-0*.gemspec
  566. endef
  567. define Package/ruby-readline-ext/files
  568. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/readline.so
  569. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/readline-ext-*
  570. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/readline-ext-*.gemspec
  571. endef
  572. define Package/ruby-reline/files
  573. /usr/lib/ruby/$(PKG_ABI_VERSION)/reline.rb
  574. /usr/lib/ruby/$(PKG_ABI_VERSION)/reline
  575. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/reline-*
  576. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/reline-*.gemspec
  577. endef
  578. define Package/ruby-rexml/files
  579. /usr/lib/ruby/$(PKG_ABI_VERSION)/rexml
  580. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rexml-*.gemspec
  581. endef
  582. define Package/ruby-rinda/files
  583. /usr/lib/ruby/$(PKG_ABI_VERSION)/rinda
  584. endef
  585. define Package/ruby-ripper/files
  586. /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper.rb
  587. /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper
  588. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/ripper.so
  589. endef
  590. define Package/ruby-rss/files
  591. /usr/lib/ruby/$(PKG_ABI_VERSION)/rss
  592. /usr/lib/ruby/$(PKG_ABI_VERSION)/rss.rb
  593. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rss-*.gemspec
  594. endef
  595. define Package/ruby-sdbm/files
  596. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/sdbm.so
  597. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/sdbm-*.gemspec
  598. endef
  599. define Package/ruby-singleton/files
  600. /usr/lib/ruby/$(PKG_ABI_VERSION)/singleton.rb
  601. /usr/lib/ruby/$(PKG_ABI_VERSION)/singleton/
  602. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/singleton-*
  603. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/singleton-*.gemspec
  604. endef
  605. define Package/ruby-socket/files
  606. /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv-replace.rb
  607. /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv.rb
  608. /usr/lib/ruby/$(PKG_ABI_VERSION)/socket.rb
  609. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/socket.so
  610. endef
  611. define Package/ruby-stringio/files
  612. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/stringio.so
  613. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/stringio-*.gemspec
  614. endef
  615. define Package/ruby-strscan/files
  616. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/strscan.so
  617. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/strscan-*.gemspec
  618. endef
  619. define Package/ruby-testunit/files
  620. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/test-unit-*.gemspec
  621. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*
  622. endef
  623. define Package/ruby-testunit/files-excluded
  624. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/doc
  625. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/test
  626. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/sample
  627. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/*.md
  628. endef
  629. define Package/ruby-time/files
  630. /usr/lib/ruby/$(PKG_ABI_VERSION)/time.rb
  631. endef
  632. define Package/ruby-timeout/files
  633. /usr/lib/ruby/$(PKG_ABI_VERSION)/timeout.rb
  634. /usr/lib/ruby/$(PKG_ABI_VERSION)/timeout/
  635. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/timeout-*
  636. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/timeout-*.gemspec
  637. endef
  638. define Package/ruby-tracer/files
  639. /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer.rb
  640. /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer/
  641. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tracer-*.gemspec
  642. endef
  643. define Package/ruby-unicodenormalize/files
  644. /usr/lib/ruby/$(PKG_ABI_VERSION)/unicode_normalize
  645. endef
  646. define Package/ruby-uri/files
  647. /usr/lib/ruby/$(PKG_ABI_VERSION)/uri.rb
  648. /usr/lib/ruby/$(PKG_ABI_VERSION)/uri
  649. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/uri-*/
  650. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/uri-*.gemspec
  651. endef
  652. define Package/ruby-webrick/files
  653. /usr/lib/ruby/$(PKG_ABI_VERSION)/webrick
  654. /usr/lib/ruby/$(PKG_ABI_VERSION)/webrick.rb
  655. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/webrick-*.gemspec
  656. endef
  657. define Package/ruby-xmlrpc/files
  658. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*
  659. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/xmlrpc-*.gemspec
  660. endef
  661. define Package/ruby-xmlrpc/files-excluded
  662. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/*.md
  663. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/*.txt
  664. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/xmlrpc-*/.travis.yml
  665. endef
  666. define Package/ruby-yaml/files
  667. /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml
  668. /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml.rb
  669. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/yaml-*/
  670. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/yaml-*.gemspec
  671. endef
  672. define Package/ruby-zlib/files
  673. /usr/lib/ruby/$(PKG_ABI_VERSION)/*/zlib.so
  674. /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/zlib-*.gemspec
  675. endef
  676. RUBY_FILES = $(strip $(call Package/ruby-$(1)/files))
  677. RUBY_FILES_EXCLUDED = $(strip $(call Package/ruby-$(1)/files-excluded))
  678. # 1: short name
  679. # 2: install dir
  680. define RubyBuildPackage/install
  681. ( \
  682. cd $(PKG_INSTALL_DIR) && \
  683. $(TAR) -cf - \
  684. $(if $(RUBY_FILES_EXCLUDED),--exclude-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES_EXCLUDED)))) \
  685. --files-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES))) \
  686. ) | ( \
  687. [ -n "$(2)" ] && cd $(2) && $(TAR) -xf - \
  688. )
  689. endef
  690. # 1: short name
  691. # 2: description
  692. # 3: dependencies on other packages
  693. define RubyBuildPackage
  694. RUBY_STDLIB += $(1)
  695. # Package definition
  696. ifndef Package/ruby-$(1)
  697. define Package/ruby-$(1)
  698. $(call Package/ruby/Default)
  699. TITLE:=Ruby $(2)
  700. DEPENDS:=ruby $(3)
  701. endef
  702. endif
  703. ifndef Package/ruby-$(1)/description
  704. define Package/ruby-$(1)/description
  705. This package contains the ruby $(2).
  706. endef
  707. endif
  708. # Description
  709. ifndef Package/ruby-$(1)/install
  710. ifndef Package/ruby-$(1)/files
  711. $$(error It must exists either a Package/ruby-$(1)/install or Package/ruby-$(1)/files)
  712. endif
  713. define Package/ruby-$(1)/description +=
  714. Provides:
  715. $(patsubst /%,
  716. - /%,$(RUBY_FILES))
  717. endef
  718. ifneq ($(RUBY_FILES_EXCLUDED),)
  719. define Package/ruby-$(1)/description +=
  720. Except:
  721. $(patsubst /%,
  722. - /%,$(RUBY_FILES_EXCLUDED))
  723. endef
  724. endif
  725. Package/ruby-$(1)/install=$(call RubyBuildPackage/install,$(1),$$(1))
  726. endif
  727. $$(eval $$(call BuildPackage,ruby-$(1)))
  728. endef
  729. $(eval $(call BuildPackage,libruby))
  730. $(eval $(call BuildPackage,ruby))
  731. $(eval $(call BuildPackage,ruby-dev))
  732. $(eval $(call RubyBuildPackage,benchmark,Performance benchmarking library,))
  733. $(eval $(call RubyBuildPackage,bigdecimal,Arbitrary-precision decimal floating-point library,))
  734. $(eval $(call RubyBuildPackage,bundler,Manage dependencies,+ruby-irb +ruby-openssl +ruby-readline))
  735. $(eval $(call RubyBuildPackage,cgi,CGI support toolkit,+ruby-filelib +ruby-pstore +ruby-stringio))
  736. $(eval $(call RubyBuildPackage,csv,CSV Reading and Writing,+ruby-date +ruby-forwardable +ruby-misc +ruby-stringio +ruby-strscan))
  737. $(eval $(call RubyBuildPackage,date,Comparable module for handling dates,))
  738. $(eval $(call RubyBuildPackage,dbm,Wrapper for the UNIX-style Database Manager Library,+libdb47))
  739. $(eval $(call RubyBuildPackage,debuglib,debug library,+ruby-filelib +ruby-prettyprint +ruby-tracer))
  740. $(eval $(call RubyBuildPackage,delegate,lib to delegate method calls to an object,))
  741. $(eval $(call RubyBuildPackage,did-you-mean,did you mean? experience,+ruby-misc))
  742. $(eval $(call RubyBuildPackage,digest,Digest Library,+RUBY_DIGEST_USE_OPENSSL:libopenssl))
  743. $(eval $(call RubyBuildPackage,drb,distributed object system,+ruby-filelib +ruby-ipaddr +ruby-observer +ruby-singleton))
  744. $(eval $(call RubyBuildPackage,enc,character re-coding library charset (small subset),))
  745. $(eval $(call RubyBuildPackage,enc-extra,character re-coding library charset (extra subset),+ruby-enc))
  746. $(eval $(call RubyBuildPackage,erb,(embedded interpreter),+ruby-cgi +ruby-strscan))
  747. $(eval $(call RubyBuildPackage,etc,Access info typically stored in /etc,))
  748. $(eval $(call RubyBuildPackage,fcntl,Loads constants defined in the OS fcntl.h C header file,))
  749. $(eval $(call RubyBuildPackage,fiddle,Libffi wrapper for Ruby,+libffi))
  750. $(eval $(call RubyBuildPackage,filelib,file utils library,+ruby-fileutils))
  751. $(eval $(call RubyBuildPackage,fileutils,File utility methods for copying moving removing etc,+ruby-enc +ruby-etc +ruby-rbconfig +ruby-socket))
  752. $(eval $(call RubyBuildPackage,forwardable,delegation of methods to a object,))
  753. $(eval $(call RubyBuildPackage,gdbm,Ruby extension for GNU dbm,+libgdbm))
  754. $(eval $(call RubyBuildPackage,gems,gems packet management,+ruby-net +ruby-open3 +ruby-rdoc))
  755. $(eval $(call RubyBuildPackage,getoptlong,implementation of getoptLong,))
  756. $(eval $(call RubyBuildPackage,io-console,Console interface,))
  757. $(eval $(call RubyBuildPackage,ipaddr,Set of methods to manipulate an IP address,+ruby-socket))
  758. $(eval $(call RubyBuildPackage,irb,(interactive shell),+ruby-gems +ruby-reline +ruby-tracer))
  759. $(eval $(call RubyBuildPackage,json,JSON Implementation for Ruby,+ruby-date +ruby-ostruct))
  760. $(eval $(call RubyBuildPackage,logger,logger and syslog library,+ruby-multithread))
  761. $(eval $(call RubyBuildPackage,matrix,implementation of Matrix and Vector classes,))
  762. $(eval $(call RubyBuildPackage,minitest,Gem minitest,+ruby-gems +ruby-mutex_m))
  763. $(eval $(call RubyBuildPackage,misc,standard libraries subset (miscellaneous files),+ruby-delegate))
  764. $(eval $(call RubyBuildPackage,mkmf,makefile library,+ruby-filelib +ruby-optparse))
  765. $(eval $(call RubyBuildPackage,multithread,multithread library,))
  766. $(eval $(call RubyBuildPackage,mutex_m,extend objects to be handled like a Mutex,))
  767. $(eval $(call RubyBuildPackage,net,Network Protocols Library,+ruby-time +ruby-digest +ruby-filelib +ruby-stringio +ruby-strscan +ruby-uri))
  768. $(eval $(call RubyBuildPackage,net-pop,POP3 lib,+ruby-net +ruby-openssl))
  769. $(eval $(call RubyBuildPackage,net-smtp,SMTP lib,+ruby-net +ruby-openssl))
  770. $(eval $(call RubyBuildPackage,net-telnet,telnet client,+ruby-net))
  771. $(eval $(call RubyBuildPackage,nkf,Network Kanji Filter,+ruby-enc))
  772. $(eval $(call RubyBuildPackage,observer,Observer design pattern,))
  773. $(eval $(call RubyBuildPackage,open3,popen with stderr,))
  774. $(eval $(call RubyBuildPackage,openssl,SSL TLS and general purpose cryptography,+ruby-digest +ruby-enc +ruby-ipaddr +ruby-stringio +libopenssl))
  775. $(eval $(call RubyBuildPackage,ostruct,build custom data structures,))
  776. $(eval $(call RubyBuildPackage,optparse,command-line option analysis,+ruby-misc +ruby-time))
  777. $(eval $(call RubyBuildPackage,powerassert,Gem power_assert,+ruby-prettyprint +ruby-ripper))
  778. $(eval $(call RubyBuildPackage,prettyprint,PrettyPrint library,+ruby-etc))
  779. $(eval $(call RubyBuildPackage,prime,Prime numbers and factorization library,+ruby-forwardable +ruby-singleton))
  780. $(eval $(call RubyBuildPackage,pstore,file based persistence,+ruby-digest +ruby-enc))
  781. $(eval $(call RubyBuildPackage,psych,YAML parser and emitter,+ruby-bigdecimal +ruby-date +ruby-enc +ruby-stringio +ruby-strscan +libyaml))
  782. $(eval $(call RubyBuildPackage,racc,LALR parser generator,+ruby-forwardable +ruby-optparse +ruby-rbconfig +ruby-stringio +ruby-strscan))
  783. $(eval $(call RubyBuildPackage,rake,Rake (make replacement),+ruby-fileutils +ruby-optparse +ruby-ostruct +ruby-singleton))
  784. $(eval $(call RubyBuildPackage,rbconfig,RbConfig,))
  785. $(eval $(call RubyBuildPackage,rdoc,RDoc produces HTML and command-line documentation for Ruby projects,+ruby-did-you-mean +ruby-erb +ruby-json +ruby-prettyprint +ruby-racc +ruby-rake +ruby-ripper +ruby-yaml +ruby-zlib))
  786. $(eval $(call RubyBuildPackage,readline,loads readline-ext(native) or reline(ruby),+ruby-reline))
  787. $(eval $(call RubyBuildPackage,readline-ext,support for native GNU readline,+libncurses +libreadline))
  788. $(eval $(call RubyBuildPackage,reline,alternative to readline-ext in pure ruby,+ruby-fiddle +ruby-filelib +ruby-forwardable +ruby-io-console))
  789. $(eval $(call RubyBuildPackage,rexml,XML toolkit,+ruby-enc +ruby-forwardable +ruby-misc +ruby-prettyprint +ruby-stringio +ruby-strscan))
  790. $(eval $(call RubyBuildPackage,rinda,Linda paradigm implementation,+ruby-drb +ruby-forwardable))
  791. $(eval $(call RubyBuildPackage,ripper,script parser,))
  792. $(eval $(call RubyBuildPackage,rss,RSS toolkit,+ruby-net +ruby-nkf +ruby-rexml))
  793. $(eval $(call RubyBuildPackage,sdbm,simple file-based key-value dbm implementation,))
  794. $(eval $(call RubyBuildPackage,singleton,Singleton pattern,))
  795. $(eval $(call RubyBuildPackage,socket,socket support,+ruby-misc +ruby-multithread +ruby-timeout))
  796. $(eval $(call RubyBuildPackage,stringio,Pseudo `IO` class from/to `String`,))
  797. $(eval $(call RubyBuildPackage,strscan,Lexical scanning operations on a String,))
  798. $(eval $(call RubyBuildPackage,testunit,Gem test-unit,+ruby-csv +ruby-erb +ruby-optparse +ruby-powerassert +ruby-rexml +ruby-yaml))
  799. $(eval $(call RubyBuildPackage,time,Extends Time with additional methods for parsing and converting Times,+ruby-date))
  800. $(eval $(call RubyBuildPackage,timeout,Auto-terminate potentially long-running operations,))
  801. $(eval $(call RubyBuildPackage,tracer,Outputs a source level execution trace of a Ruby program,))
  802. $(eval $(call RubyBuildPackage,unicodenormalize,String additions for Unicode normalization,+ruby-enc +ruby-enc-extra))
  803. $(eval $(call RubyBuildPackage,uri,library to handle URI,+ruby-enc))
  804. $(eval $(call RubyBuildPackage,webrick,HTTP server toolkit,+ruby-erb +ruby-net +ruby-singleton))
  805. $(eval $(call RubyBuildPackage,xmlrpc,XML-RPC toolkit,+ruby-rexml +ruby-webrick))
  806. $(eval $(call RubyBuildPackage,yaml,YAML toolkit,+ruby-dbm +ruby-pstore +ruby-psych))
  807. $(eval $(call RubyBuildPackage,zlib,compression/decompression library interface,))
  808. $(eval $(call BuildPackage,ruby-stdlib))
  809. $(eval $(call HostBuild))