treewide: change email
[feed/packages.git] / lang / ruby / Makefile
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
13 PKG_NAME:=ruby
14 PKG_VERSION:=3.0.1
15 PKG_RELEASE:=1
16
17 # First two numbes
18 PKG_ABI_VERSION:=$(subst $(space),.,$(wordlist 1, 2, $(subst .,$(space),$(PKG_VERSION))))
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
21 PKG_SOURCE_URL:=https://cache.ruby-lang.org/pub/ruby/$(PKG_ABI_VERSION)/
22 PKG_HASH:=d06bccd382d03724b69f674bc46cd6957ba08ed07522694ce44b9e8ffc9c48e2
23 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
24 PKG_LICENSE:=BSD-2-Clause
25 PKG_LICENSE_FILES:=COPYING
26 PKG_CPE_ID:=cpe:/a:ruby-lang:ruby
27
28 PKG_BUILD_DEPENDS:=ruby/host
29 PKG_INSTALL:=1
30 PKG_BUILD_PARALLEL:=1
31 PKG_FIXUP:=autoreconf
32
33 include $(INCLUDE_DIR)/host-build.mk
34 include $(INCLUDE_DIR)/package.mk
35 include $(INCLUDE_DIR)/nls.mk
36
37 HOST_CONFIGURE_ARGS += \
38 --disable-install-doc \
39 --disable-install-rdoc \
40 --disable-install-capi \
41 --without-gmp \
42 --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
43
44 # Does not compile with this. Workaround is --without-gmp
45 # https://bugs.ruby-lang.org/issues/11940
46 #--with-static-linked-ext \
47
48 # even not used, host build with restricted exts results in gems not being
49 # compiled for target (probably some cross compiling problem like checking
50 # host for selecting target features)
51 # --with-out-ext \
52 # --with-ext=thread,stringio \
53
54 CONFIGURE_ARGS += \
55 --enable-shared \
56 --enable-static \
57 --disable-rpath \
58 $(call autoconf_bool,CONFIG_IPV6,ipv6) \
59 --disable-install-doc \
60 --disable-install-capi \
61 --with-ruby-version=minor \
62 --with-iconv-dir=$(ICONV_PREFIX) \
63 --with-out-ext=win32,win32ole
64
65 ifndef CONFIG_RUBY_DIGEST_USE_OPENSSL
66 CONFIGURE_ARGS += \
67 --with-bundled-sha1\
68 --with-bundled-md5\
69 --with-bundled-rmd160\
70 --with-bundled-sha2 \
71
72 endif
73
74 # JIT requires a local cc installed and it is currently pointing to a wrong
75 # compiler (ccache) used during build, without a way to set it without a patch.
76 # Disabling it saves dozens of kbytes in libruby
77 CONFIGURE_ARGS += --disable-jit-support
78 # Host JIT does work but it is not worth it
79 HOST_CONFIGURE_ARGS += --disable-jit-support
80
81 TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
82
83 # Ruby uses DLDFLAGS and not LDFLAGS for libraries. LDFLAGS is only for execs.
84 # However, DLDFLAGS from configure is not passed to Makefile when target is linux.
85 # XLDFLAGS is used by both libraries and execs. This is somehow brute force but
86 # it will fix when some LD_FLAGS is needed for libraries. As side effect, it will
87 # duplicate ld args for binaries.
88 CONFIGURE_VARS += XLDFLAGS="$(TARGET_LDFLAGS)"
89
90 MAKE_FLAGS += \
91 DESTDIR="$(PKG_INSTALL_DIR)" \
92 SHELL="/bin/bash"
93
94 define Build/InstallDev
95 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
96 . \
97 ) | ( cd $(1); $(TAR) -xf - )
98 endef
99
100 define Host/Install
101 # When ruby version is updated, make install asks in some cases before replace
102 # an existing different file. Remove them before install and avoid the interaction
103 rm -f $(STAGING_DIR_HOSTPKG)/bin/rake
104 $(call Host/Install/Default)
105 endef
106
107 define Package/ruby/Default
108 SUBMENU:=Ruby
109 SECTION:=lang
110 CATEGORY:=Languages
111 TITLE:=Ruby scripting language
112 URL:=http://www.ruby-lang.org/
113 endef
114
115 define Package/ruby/Default/description
116 Ruby is the interpreted scripting language for quick and easy
117 object-oriented programming. It has many features to process text files
118 and to do system management tasks (as in perl). It is simple,
119 straight-forward, and extensible.
120
121 endef
122
123 define Package/ruby
124 $(call Package/ruby/Default)
125 TITLE+= (interpreter)
126 DEPENDS:=+libruby
127 endef
128
129 define Package/ruby/description
130 $(call Package/ruby/Default/description)
131 endef
132
133 define RubyDependency
134 $(eval \
135 $(call Package/Default)
136 $(call Package/ruby-$(1))
137 FILTER_CONFIG:=$$(strip \
138 $$(foreach config_dep, \
139 $$(filter @%, \
140 $$(foreach v, \
141 $$(DEPENDS), \
142 $$(if $$(findstring :,$$v),,$$v) \
143 ) \
144 ), \
145 $$(subst @,,$$(config_dep)) \
146 ) \
147 )
148 ifneq (,$$(FILTER_CONFIG))
149 FILTER_CONFIG:=($$(subst $$(space),&&,$$(FILTER_CONFIG))):
150 endif
151 ) \
152 +$(FILTER_CONFIG)ruby-$(1)
153 endef
154
155 define Package/ruby/config
156 comment "Standard Library"
157 depends on PACKAGE_ruby
158
159 config PACKAGE_ruby-stdlib
160 depends on PACKAGE_ruby
161 default m if ALL
162 prompt "Select Ruby Complete Standard Library (ruby-stdlib)"
163
164 endef
165
166 define Package/ruby/install
167 $(INSTALL_DIR) $(1)/usr/bin
168 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_ABI_VERSION)
169 $(INSTALL_DIR) $(1)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)
170 $(INSTALL_DIR) $(1)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)
171 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/lib/ruby/ruby$(PKG_ABI_VERSION)-bin
172 $(INSTALL_BIN) ./files/ruby $(1)/usr/bin/ruby
173 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)/* $(1)/usr/lib/ruby/vendor_ruby/$(PKG_ABI_VERSION)/
174 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)/* $(1)/usr/lib/ruby/site_ruby/$(PKG_ABI_VERSION)/
175 $(SED) "s%@RUBY_LIBPATH@%/usr/lib/ruby/$(PKG_ABI_VERSION)%" $(1)/usr/bin/ruby
176 $(SED) "s%@RUBY_BINPATH@%/usr/lib/ruby/ruby$(PKG_ABI_VERSION)-bin%" $(1)/usr/bin/ruby
177 endef
178
179 define Package/libruby
180 $(call Package/ruby/Default)
181 SUBMENU:=
182 SECTION:=libs
183 CATEGORY:=Libraries
184 TITLE+= (shared library)
185 DEPENDS+= +libpthread +librt +libgmp +zlib
186 ABI_VERSION:=$(PKG_ABI_VERSION)
187 endef
188 define Package/libruby/install
189 $(INSTALL_DIR) $(1)/usr/lib
190 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so.* $(1)/usr/lib/
191 endef
192
193 define Package/ruby-dev
194 $(call Package/ruby/Default)
195 TITLE+= (dev files)
196 DEPENDS:=+libruby ruby
197 endef
198 define Package/ruby-dev/description
199 Header files for compiling extension modules for the Ruby $(PKG_ABI_VERSION)
200 endef
201 define Package/ruby-dev/install
202 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
203 $(CP) $(PKG_INSTALL_DIR)/usr/include/ruby-$(PKG_ABI_VERSION) $(1)/usr/include/
204 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so $(1)/usr/lib/
205 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ruby-$(PKG_ABI_VERSION).pc $(1)/usr/lib/pkgconfig/
206 endef
207
208 RUBY_STDLIB :=
209 define Package/ruby-stdlib
210 $(call Package/ruby/Default)
211 TITLE:=Ruby standard libraries (metadata for all stdlib subsets)
212 DEPENDS:=ruby $(foreach subpackage,$(RUBY_STDLIB),$(strip $(call RubyDependency,$(subpackage))))
213 HIDDEN:=1
214 endef
215
216 define Package/ruby-stdlib/description
217 This metapackage currently install all ruby-* packages,
218 providing a complete Ruby Standard Library.
219
220 endef
221
222 # nothing to do
223 define Package/ruby-stdlib/install
224 /bin/true
225 endef
226
227 define Package/ruby-abbrev/files
228 /usr/lib/ruby/$(PKG_ABI_VERSION)/abbrev.rb
229 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/abbrev-*/
230 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/abbrev-*.gemspec
231 endef
232
233 define Package/ruby-base64/files
234 /usr/lib/ruby/$(PKG_ABI_VERSION)/base64.rb
235 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/base64-*/
236 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/base64-*.gemspec
237 endef
238
239 define Package/ruby-benchmark/files
240 /usr/lib/ruby/$(PKG_ABI_VERSION)/benchmark.rb
241 /usr/lib/ruby/$(PKG_ABI_VERSION)/benchmark/
242 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/benchmark-*/
243 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/benchmark-*.gemspec
244 endef
245
246 define Package/ruby-bigdecimal/files
247 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/bigdecimal.so
248 /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal/
249 /usr/lib/ruby/$(PKG_ABI_VERSION)/bigdecimal.rb
250 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bigdecimal-*.gemspec
251 endef
252
253 define Package/ruby-bundler/files
254 /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler.rb
255 /usr/lib/ruby/$(PKG_ABI_VERSION)/bundler/
256 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/
257 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/bundler-*.gemspec
258 endef
259 define Package/ruby-bundler/files-excluded
260 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/doc
261 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/test
262 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/sample
263 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/man
264 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/*.md
265 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/bundler-*/*.txt
266 endef
267 define Package/ruby-bundler/install
268 $(INSTALL_DIR) $(1)/usr/bin
269 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bundle $(1)/usr/bin/
270 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bundler $(1)/usr/bin/
271 $(call RubyBuildPackage/install,bundler,$(1))
272 endef
273
274 define Package/ruby-cgi/files
275 /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi.rb
276 /usr/lib/ruby/$(PKG_ABI_VERSION)/cgi/
277 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/cgi-*/
278 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/cgi-*.gemspec
279 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/cgi/escape.so
280 endef
281
282 define Package/ruby-coverage/files
283 /usr/lib/ruby/$(PKG_ABI_VERSION)/coverage.rb
284 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/coverage.so
285 endef
286
287 define Package/ruby-continuation/files
288 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/continuation.so
289 endef
290
291 define Package/ruby-csv/files
292 /usr/lib/ruby/$(PKG_ABI_VERSION)/csv.rb
293 /usr/lib/ruby/$(PKG_ABI_VERSION)/csv/
294 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/csv-*.gemspec
295 endef
296
297 define Package/ruby-date/files
298 /usr/lib/ruby/$(PKG_ABI_VERSION)/date.rb
299 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/date_core.so
300 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/date-*.gemspec
301 endef
302
303 define Package/ruby-dbm/description
304 The DBM class provides a wrapper to a Unix-style dbm or Database Manager library.
305 This package provides dbm.so file.
306
307 endef
308 define Package/ruby-dbm/files
309 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/dbm.so
310 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/dbm-*.gemspec
311 endef
312
313 define Package/ruby-debug/files
314 /usr/lib/ruby/$(PKG_ABI_VERSION)/debug.rb
315 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/debug-*.gemspec
316 endef
317
318 define Package/ruby-delegate/files
319 /usr/lib/ruby/$(PKG_ABI_VERSION)/delegate.rb
320 /usr/lib/ruby/$(PKG_ABI_VERSION)/delegate/
321 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/delegate-*/
322 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/delegate-*.gemspec
323 endef
324
325 define Package/ruby-did-you-mean/files
326 /usr/lib/ruby/$(PKG_ABI_VERSION)/did_you_mean.rb
327 /usr/lib/ruby/$(PKG_ABI_VERSION)/did_you_mean/
328 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/did_you_mean-*/
329 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/did_you_mean-*.gemspec
330 endef
331
332 define Package/ruby-digest/description
333 Provides digest* files. Can be configured to use OpenSSL or
334 bundled hash functions.
335
336 endef
337 define Package/ruby-digest/config
338
339 config RUBY_DIGEST_USE_OPENSSL
340 bool "Use OpenSSL functions for ruby digest hash functions"
341 depends on PACKAGE_ruby-digest
342 help
343 Ruby can use OpenSSL hash functions or compile alternative implementations. Using
344 OpenSSL saves about 30KBytes (less when compressed) but requires OpenSSL (that
345 is way bigger than that). However, if OpenSSL is already needed by another usage,
346 as ruby-openssl or any other non ruby package, it is better to mark this option.
347 default n
348
349 endef
350 define Package/ruby-digest/files
351 /usr/lib/ruby/$(PKG_ABI_VERSION)/digest
352 /usr/lib/ruby/$(PKG_ABI_VERSION)/digest.rb
353 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest.so
354 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/digest/*
355 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/digest-*.gemspec
356 endef
357
358 define Package/ruby-drb/files
359 /usr/lib/ruby/$(PKG_ABI_VERSION)/drb.rb
360 /usr/lib/ruby/$(PKG_ABI_VERSION)/drb
361 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/drb-*.gemspec
362 endef
363
364 define Package/ruby-enc/files
365 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/encdb.so
366 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/iso_8859_1.so
367 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/utf_*.so
368 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc/euc_jp.so
369 endef
370
371 define Package/ruby-enc-extra/files
372 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/enc
373 endef
374 define Package/ruby-enc-extra/files-excluded
375 $(call Package/ruby-enc/files)
376 endef
377
378 define Package/ruby-english/files
379 /usr/lib/ruby/$(PKG_ABI_VERSION)/English.rb
380 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/english-*.gemspec
381 endef
382
383 define Package/ruby-erb/files
384 /usr/lib/ruby/$(PKG_ABI_VERSION)/erb.rb
385 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/erb-*
386 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/erb-*.gemspec
387 endef
388 define Package/ruby-erb/install
389 $(INSTALL_DIR) $(1)/usr/bin
390 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/erb $(1)/usr/bin/
391 $(call RubyBuildPackage/install,erb,$(1))
392 endef
393
394 define Package/ruby-etc/files
395 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/etc.so
396 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/etc-*.gemspec
397 endef
398
399 define Package/ruby-expect/files
400 /usr/lib/ruby/$(PKG_ABI_VERSION)/expect.rb
401 endef
402
403 define Package/ruby-fcntl/files
404 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fcntl.so
405 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fcntl-*.gemspec
406 endef
407
408 define Package/ruby-fiber/files
409 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiber.so
410 endef
411
412 define Package/ruby-fiddle/files
413 /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle.rb
414 /usr/lib/ruby/$(PKG_ABI_VERSION)/fiddle/
415 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/fiddle.so
416 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fiddle-*.gemspec
417 endef
418
419 define Package/ruby-fileutils/files
420 /usr/lib/ruby/$(PKG_ABI_VERSION)/fileutils.rb
421 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/fileutils-*/
422 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/fileutils-*.gemspec
423 endef
424
425 define Package/ruby-find/files
426 /usr/lib/ruby/$(PKG_ABI_VERSION)/find.rb
427 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/find-*.gemspec
428 endef
429
430 define Package/ruby-forwardable/files
431 /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable.rb
432 /usr/lib/ruby/$(PKG_ABI_VERSION)/forwardable
433 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/forwardable-*.gemspec
434 endef
435
436 define Package/ruby-gdbm/files
437 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/gdbm.so
438 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/gdbm-*.gemspec
439 endef
440
441 define Package/ruby-gems/files
442 /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems.rb
443 /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems
444 endef
445 define Package/ruby-gems/files-excluded
446 /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/test_case.rb
447 /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/package/tar_test_case.rb
448 /usr/lib/ruby/$(PKG_ABI_VERSION)/rubygems/installer_test_case.rb
449 endef
450 define Package/ruby-gems/install
451 $(INSTALL_DIR) $(1)/usr/bin
452 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/
453 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default
454 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems
455 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/doc
456 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/cache
457 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/extensions
458 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_ABI_VERSION)/build_info
459 $(call RubyBuildPackage/install,gems,$(1))
460 endef
461
462 define Package/ruby-getoptlong/files
463 /usr/lib/ruby/$(PKG_ABI_VERSION)/getoptlong.rb
464 /usr/lib/ruby/$(PKG_ABI_VERSION)/getoptlong/
465 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/getoptlong-*/
466 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/getoptlong-*.gemspec
467 endef
468
469 define Package/ruby-io-console/files
470 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/console.so
471 /usr/lib/ruby/$(PKG_ABI_VERSION)/io/console/
472 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/io-console-*.gemspec
473 endef
474
475 define Package/ruby-io-nonblock/files
476 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/nonblock.so
477 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/io-nonblock-*.gemspec
478 endef
479
480 define Package/ruby-io-wait/files
481 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/io/wait.so
482 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/io-wait-*.gemspec
483 endef
484
485 define Package/ruby-ipaddr/files
486 /usr/lib/ruby/$(PKG_ABI_VERSION)/ipaddr.rb
487 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/ipaddr-*.gemspec
488 endef
489
490 define Package/ruby-irb/files
491 /usr/lib/ruby/$(PKG_ABI_VERSION)/irb
492 /usr/lib/ruby/$(PKG_ABI_VERSION)/irb.rb
493 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/irb-*/
494 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/irb-*.gemspec
495 endef
496 define Package/ruby-irb/install
497 $(INSTALL_DIR) $(1)/usr/bin
498 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irb $(1)/usr/bin/
499 $(call RubyBuildPackage/install,irb,$(1))
500 endef
501
502 define Package/ruby-json/files
503 /usr/lib/ruby/$(PKG_ABI_VERSION)/json.rb
504 /usr/lib/ruby/$(PKG_ABI_VERSION)/json
505 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/json
506 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/json-*.gemspec
507 endef
508 define Package/ruby-json/files-excluded
509 $(call Package/ruby-psych/files)
510 endef
511
512 define Package/ruby-logger/files
513 /usr/lib/ruby/$(PKG_ABI_VERSION)/logger.rb
514 /usr/lib/ruby/$(PKG_ABI_VERSION)/logger/
515 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/logger-*.gemspec
516 endef
517
518 define Package/ruby-matrix/files
519 /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix.rb
520 /usr/lib/ruby/$(PKG_ABI_VERSION)/matrix
521 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/matrix-*.gemspec
522 endef
523
524 define Package/ruby-minitest/files
525 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/minitest-*.gemspec
526 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*
527 endef
528 define Package/ruby-minitest/files-excluded
529 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/test
530 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.rdoc
531 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/minitest-*/*.txt
532 endef
533
534 define Package/ruby-mkmf/files
535 /usr/lib/ruby/$(PKG_ABI_VERSION)/mkmf.rb
536 endef
537
538 define Package/ruby-monitor/files
539 /usr/lib/ruby/$(PKG_ABI_VERSION)/monitor.rb
540 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/monitor.so
541 endef
542
543 define Package/ruby-mutex_m/files
544 /usr/lib/ruby/$(PKG_ABI_VERSION)/mutex_m.rb
545 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/mutex_m-*.gemspec
546 endef
547
548 define Package/ruby-net-ftp/files
549 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/ftp.rb
550 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-ftp-*.gemspec
551 endef
552
553 define Package/ruby-net-http/files
554 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/http.rb
555 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/https.rb
556 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/http/
557 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-http-*/
558 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-http-*.gemspec
559 endef
560
561 define Package/ruby-net-imap/files
562 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/imap.rb
563 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-imap-*.gemspec
564 endef
565
566 define Package/ruby-net-pop/files
567 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop.rb
568 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop/
569 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-pop-*/
570 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-pop-*.gemspec
571 endef
572
573 define Package/ruby-net-protocol/files
574 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/protocol.rb
575 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-protocol-*.gemspec
576 endef
577
578 define Package/ruby-net-pop/files
579 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop.rb
580 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/pop/
581 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-pop-*/
582 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-pop-*.gemspec
583 endef
584
585 define Package/ruby-net-smtp/files
586 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp.rb
587 /usr/lib/ruby/$(PKG_ABI_VERSION)/net/smtp/
588 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/net-smtp-*/
589 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/net-smtp-*.gemspec
590 endef
591
592 define Package/ruby-nkf/files
593 /usr/lib/ruby/$(PKG_ABI_VERSION)/kconv.rb
594 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/nkf.so
595 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/nkf-*.gemspec
596 endef
597
598 define Package/ruby-objspace/files
599 /usr/lib/ruby/$(PKG_ABI_VERSION)/objspace.rb
600 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/objspace.so
601 endef
602
603 define Package/ruby-observer/files
604 /usr/lib/ruby/$(PKG_ABI_VERSION)/observer.rb
605 /usr/lib/ruby/$(PKG_ABI_VERSION)/observer/
606 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/observer-*/
607 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/observer-*.gemspec
608 endef
609
610 define Package/ruby-open-uri/files
611 /usr/lib/ruby/$(PKG_ABI_VERSION)/open-uri.rb
612 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/open-uri-*.gemspec
613 endef
614
615 define Package/ruby-open3/files
616 /usr/lib/ruby/$(PKG_ABI_VERSION)/open3.rb
617 /usr/lib/ruby/$(PKG_ABI_VERSION)/open3/
618 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/open3-*/
619 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/open3-*.gemspec
620 endef
621
622 define Package/ruby-openssl/files
623 /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl
624 /usr/lib/ruby/$(PKG_ABI_VERSION)/openssl.rb
625 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/openssl.so
626 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/openssl-*.gemspec
627 endef
628
629 define Package/ruby-optparse/files
630 /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse.rb
631 /usr/lib/ruby/$(PKG_ABI_VERSION)/optionparser.rb
632 /usr/lib/ruby/$(PKG_ABI_VERSION)/optparse
633 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/optparse-*.gemspec
634 endef
635
636 define Package/ruby-ostruct/files
637 /usr/lib/ruby/$(PKG_ABI_VERSION)/ostruct.rb
638 /usr/lib/ruby/$(PKG_ABI_VERSION)/ostruct/
639 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/ostruct-*.gemspec
640 endef
641
642 define Package/ruby-pathname/files
643 /usr/lib/ruby/$(PKG_ABI_VERSION)/pathname.rb
644 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pathname.so
645 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/pathname-*.gemspec
646 endef
647
648 define Package/ruby-powerassert/files
649 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/power_assert-*.gemspec
650 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*
651 endef
652 define Package/ruby-powerassert/files-excluded
653 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/*.rdoc
654 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/power_assert-*/.travis.yml
655 endef
656
657 define Package/ruby-pp/files
658 /usr/lib/ruby/$(PKG_ABI_VERSION)/pp.rb
659 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/pp-*.gemspec
660 endef
661
662 define Package/ruby-prettyprint/files
663 /usr/lib/ruby/$(PKG_ABI_VERSION)/prettyprint.rb
664 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/prettyprint-*.gemspec
665 endef
666
667 define Package/ruby-prime/files
668 /usr/lib/ruby/$(PKG_ABI_VERSION)/prime.rb
669 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/prime-*.gemspec
670 endef
671
672 define Package/ruby-pstore/files
673 /usr/lib/ruby/$(PKG_ABI_VERSION)/pstore.rb
674 /usr/lib/ruby/$(PKG_ABI_VERSION)/pstore/
675 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/pstore-*/
676 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/pstore-*.gemspec
677 endef
678
679 define Package/ruby-psych/files
680 /usr/lib/ruby/$(PKG_ABI_VERSION)/psych
681 /usr/lib/ruby/$(PKG_ABI_VERSION)/psych.rb
682 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/psych.so
683 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/psych-*.gemspec
684 endef
685
686 define Package/ruby-pty/files
687 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/pty.so
688 endef
689
690 define Package/ruby-racc/files
691 /usr/lib/ruby/$(PKG_ABI_VERSION)/racc.rb
692 /usr/lib/ruby/$(PKG_ABI_VERSION)/racc
693 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/racc/*.so
694 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/racc-*/
695 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/racc-*.gemspec
696 endef
697 define Package/ruby-racc/install
698 $(INSTALL_DIR) $(1)/usr/bin
699 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/racc $(1)/usr/bin/;
700 $(call RubyBuildPackage/install,racc,$(1))
701 endef
702
703 define Package/ruby-rake/files
704 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rake-*.gemspec
705 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/
706 endef
707 define Package/ruby-rake/files-excluded
708 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/doc
709 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rake-*/*.rdoc
710 endef
711 define Package/ruby-rake/install
712 $(INSTALL_DIR) $(1)/usr/bin
713 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/;
714 $(call RubyBuildPackage/install,rake,$(1))
715 endef
716
717 define Package/ruby-rbconfig/files
718 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig.rb
719 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/rbconfig/*.so
720 endef
721
722 define Package/ruby-rbs/files
723 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rbs-*
724 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rbs-*.gemspec
725 endef
726 define Package/ruby-rbs/files-excluded
727 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rbs-*/docs
728 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rbs-*/test
729 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rbs-*/sample
730 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rbs-*/*.md
731 endef
732 define Package/ruby-rbs/install
733 $(INSTALL_DIR) $(1)/usr/bin
734 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rbs $(1)/usr/bin/
735 $(call RubyBuildPackage/install,rbs,$(1))
736 endef
737
738 define Package/ruby-rdoc/files
739 /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc.rb
740 /usr/lib/ruby/$(PKG_ABI_VERSION)/rdoc
741 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rdoc-*
742 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rdoc-*.gemspec
743 endef
744 define Package/ruby-rdoc/install
745 $(INSTALL_DIR) $(1)/usr/bin
746 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
747 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
748 $(call RubyBuildPackage/install,rdoc,$(1))
749 endef
750
751 define Package/ruby-readline/files
752 /usr/lib/ruby/$(PKG_ABI_VERSION)/readline.rb
753 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/readline-0*
754 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/readline-0*.gemspec
755 endef
756
757 define Package/ruby-readline-ext/files
758 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/readline.so
759 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/readline-ext-*
760 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/readline-ext-*.gemspec
761 endef
762
763 define Package/ruby-reline/files
764 /usr/lib/ruby/$(PKG_ABI_VERSION)/reline.rb
765 /usr/lib/ruby/$(PKG_ABI_VERSION)/reline
766 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/reline-*
767 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/reline-*.gemspec
768 endef
769
770 define Package/ruby-resolv/files
771 /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv.rb
772 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/resolv-*.gemspec
773 endef
774 define Package/ruby-resolv/files-excluded
775 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/resolv-replace*.gemspec
776 endef
777
778 define Package/ruby-resolv-replace/files
779 /usr/lib/ruby/$(PKG_ABI_VERSION)/resolv-replace.rb
780 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/resolv-replace*.gemspec
781 endef
782
783 define Package/ruby-rexml/files
784 /usr/lib/ruby/$(PKG_ABI_VERSION)/rexml
785 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*
786 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rexml-*.gemspec
787 endef
788 define Package/ruby-rexml/files-excluded
789 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*/doc
790 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*/test
791 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*/sample
792 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*/*.md
793 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rexml-*/.travis.yml
794 endef
795
796 define Package/ruby-rinda/files
797 /usr/lib/ruby/$(PKG_ABI_VERSION)/rinda
798 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/rinda-*.gemspec
799 endef
800
801 define Package/ruby-ripper/files
802 /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper.rb
803 /usr/lib/ruby/$(PKG_ABI_VERSION)/ripper
804 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/ripper.so
805 endef
806
807 define Package/ruby-rss/files
808 /usr/lib/ruby/$(PKG_ABI_VERSION)/rss
809 /usr/lib/ruby/$(PKG_ABI_VERSION)/rss.rb
810 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*
811 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/rss-*.gemspec
812 endef
813 define Package/ruby-rss/files-excluded
814 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*/doc
815 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*/test
816 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*/sample
817 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*/*.md
818 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/rss-*/*.txt
819 endef
820
821 define Package/ruby-securerandom/files
822 /usr/lib/ruby/$(PKG_ABI_VERSION)/securerandom.rb
823 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/securerandom-*.gemspec
824 endef
825
826 define Package/ruby-set/files
827 /usr/lib/ruby/$(PKG_ABI_VERSION)/set.rb
828 /usr/lib/ruby/$(PKG_ABI_VERSION)/set/*.rb
829 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/set-*.gemspec
830 endef
831
832 define Package/ruby-shellwords/files
833 /usr/lib/ruby/$(PKG_ABI_VERSION)/shellwords.rb
834 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/shellwords-*.gemspec
835 endef
836
837 define Package/ruby-singleton/files
838 /usr/lib/ruby/$(PKG_ABI_VERSION)/singleton.rb
839 /usr/lib/ruby/$(PKG_ABI_VERSION)/singleton/
840 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/singleton-*
841 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/singleton-*.gemspec
842 endef
843
844 define Package/ruby-socket/files
845 /usr/lib/ruby/$(PKG_ABI_VERSION)/socket.rb
846 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/socket.so
847 endef
848
849 define Package/ruby-stringio/files
850 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/stringio.so
851 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/stringio-*.gemspec
852 endef
853
854 define Package/ruby-strscan/files
855 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/strscan.so
856 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/strscan-*.gemspec
857 endef
858
859 define Package/ruby-syslog/files
860 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/syslog.so
861 /usr/lib/ruby/$(PKG_ABI_VERSION)/syslog/logger.rb
862 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/syslog-*.gemspec
863 endef
864
865 define Package/ruby-testunit/files
866 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/test-unit-*.gemspec
867 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*
868 endef
869 define Package/ruby-testunit/files-excluded
870 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/doc
871 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/test
872 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/sample
873 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/test-unit-*/*.md
874 endef
875
876 define Package/ruby-time/files
877 /usr/lib/ruby/$(PKG_ABI_VERSION)/time.rb
878 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/time-*.gemspec
879 endef
880
881 define Package/ruby-timeout/files
882 /usr/lib/ruby/$(PKG_ABI_VERSION)/timeout.rb
883 /usr/lib/ruby/$(PKG_ABI_VERSION)/timeout/
884 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/timeout-*
885 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/timeout-*.gemspec
886 endef
887
888 define Package/ruby-tempfile/files
889 /usr/lib/ruby/$(PKG_ABI_VERSION)/tempfile.rb
890 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tempfile-*.gemspec
891 endef
892
893 define Package/ruby-tmpdir/files
894 /usr/lib/ruby/$(PKG_ABI_VERSION)/tmpdir.rb
895 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tmpdir-*.gemspec
896 endef
897
898 define Package/ruby-tracer/files
899 /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer.rb
900 /usr/lib/ruby/$(PKG_ABI_VERSION)/tracer/
901 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tracer-*.gemspec
902 endef
903
904 define Package/ruby-tsort/files
905 /usr/lib/ruby/$(PKG_ABI_VERSION)/tsort.rb
906 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/tsort-*.gemspec
907 endef
908
909 define Package/ruby-typeprof/files
910 /usr/lib/ruby/$(PKG_ABI_VERSION)/typeprof.rb
911 /usr/lib/ruby/$(PKG_ABI_VERSION)/typeprof
912 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/typeprof-*/
913 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/typeprof-*.gemspec
914 endef
915 define Package/ruby-typeprof/files-excluded
916 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/typeprof-*/doc
917 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/typeprof-*/test
918 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/typeprof-*/sample
919 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/typeprof-*/*.md
920 endef
921 define Package/ruby-typeprof/install
922 $(INSTALL_DIR) $(1)/usr/bin
923 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/typeprof $(1)/usr/bin/
924 $(call RubyBuildPackage/install,typeprof,$(1))
925 endef
926
927 define Package/ruby-un/files
928 /usr/lib/ruby/$(PKG_ABI_VERSION)/un.rb
929 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/un-*.gemspec
930 endef
931
932 define Package/ruby-unicodenormalize/files
933 /usr/lib/ruby/$(PKG_ABI_VERSION)/unicode_normalize
934 endef
935
936 define Package/ruby-uri/files
937 /usr/lib/ruby/$(PKG_ABI_VERSION)/uri.rb
938 /usr/lib/ruby/$(PKG_ABI_VERSION)/uri
939 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/uri-*/
940 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/uri-*.gemspec
941 endef
942
943 define Package/ruby-weakref/files
944 /usr/lib/ruby/$(PKG_ABI_VERSION)/weakref.rb
945 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/weakref-*.gemspec
946 endef
947
948 define Package/ruby-yaml/files
949 /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml
950 /usr/lib/ruby/$(PKG_ABI_VERSION)/yaml.rb
951 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/gems/yaml-*/
952 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/yaml-*.gemspec
953 endef
954
955 define Package/ruby-zlib/files
956 /usr/lib/ruby/$(PKG_ABI_VERSION)/*/zlib.so
957 /usr/lib/ruby/gems/$(PKG_ABI_VERSION)/specifications/default/zlib-*.gemspec
958 endef
959
960 RUBY_FILES = $(strip $(call Package/ruby-$(1)/files))
961 RUBY_FILES_EXCLUDED = $(strip $(call Package/ruby-$(1)/files-excluded))
962
963 # 1: short name
964 # 2: install dir
965 define RubyBuildPackage/install
966 ( \
967 cd $(PKG_INSTALL_DIR) && \
968 $(TAR) -cf - \
969 $(if $(RUBY_FILES_EXCLUDED),--exclude-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES_EXCLUDED)))) \
970 --files-from <(ls -1d $(patsubst /%,%,$(RUBY_FILES))) \
971 ) | ( \
972 [ -n "$(2)" ] && cd $(2) && $(TAR) -xf - \
973 )
974 endef
975
976 # 1: short name
977 # 2: description
978 # 3: dependencies on other packages
979 define RubyBuildPackage
980 RUBY_STDLIB += $(1)
981
982 # Package definition
983 ifndef Package/ruby-$(1)
984 define Package/ruby-$(1)
985 $(call Package/ruby/Default)
986 TITLE:=Ruby $(2)
987 DEPENDS:=ruby $(3)
988 endef
989 endif
990
991 ifndef Package/ruby-$(1)/description
992 define Package/ruby-$(1)/description
993 This package contains the ruby $(2).
994
995 endef
996 endif
997
998 # Description
999 ifndef Package/ruby-$(1)/install
1000 ifndef Package/ruby-$(1)/files
1001 $$(error It must exists either a Package/ruby-$(1)/install or Package/ruby-$(1)/files)
1002 endif
1003
1004 define Package/ruby-$(1)/description +=
1005
1006 Provides:
1007 $(patsubst /%,
1008 - /%,$(RUBY_FILES))
1009
1010 endef
1011
1012 ifneq ($(RUBY_FILES_EXCLUDED),)
1013 define Package/ruby-$(1)/description +=
1014
1015 Except:
1016 $(patsubst /%,
1017 - /%,$(RUBY_FILES_EXCLUDED))
1018
1019 endef
1020 endif
1021
1022 Package/ruby-$(1)/install=$(call RubyBuildPackage/install,$(1),$$(1))
1023 endif
1024
1025 $$(eval $$(call BuildPackage,ruby-$(1)))
1026 endef
1027
1028 $(eval $(call BuildPackage,libruby))
1029 $(eval $(call BuildPackage,ruby))
1030 $(eval $(call BuildPackage,ruby-dev))
1031 $(eval $(call RubyBuildPackage,abbrev,Calculates the set of unambiguous abbreviations for a given set of strings,))
1032 $(eval $(call RubyBuildPackage,base64,Encode and decode base64,))
1033 $(eval $(call RubyBuildPackage,benchmark,Performance benchmarking library,))
1034 $(eval $(call RubyBuildPackage,bigdecimal,Arbitrary-precision decimal floating-point library,))
1035 $(eval $(call RubyBuildPackage,bundler,Manage dependencies,+ruby-erb +ruby-irb +ruby-open-uri +ruby-readline))
1036 $(eval $(call RubyBuildPackage,cgi,CGI support toolkit,+ruby-pstore +ruby-securerandom +ruby-shellwords +ruby-tempfile))
1037 $(eval $(call RubyBuildPackage,continuation,Similar to C setjmp/longjmp with extra states,))
1038 $(eval $(call RubyBuildPackage,coverage,Coverage measurement,))
1039 $(eval $(call RubyBuildPackage,csv,CSV Reading and Writing,+ruby-date +ruby-english +ruby-forwardable +ruby-stringio +ruby-strscan))
1040 $(eval $(call RubyBuildPackage,date,Comparable module for handling dates,))
1041 $(eval $(call RubyBuildPackage,dbm,Wrapper for the UNIX-style Database Manager Library,+libdb47))
1042 $(eval $(call RubyBuildPackage,debug,generic command line interface for ruby-debug,+ruby-continuation +ruby-pp +ruby-readline +ruby-tracer))
1043 $(eval $(call RubyBuildPackage,delegate,lib to delegate method calls to an object,))
1044 $(eval $(call RubyBuildPackage,did-you-mean,did you mean? experience,))
1045 $(eval $(call RubyBuildPackage,digest,Digest Library,+RUBY_DIGEST_USE_OPENSSL:libopenssl))
1046 $(eval $(call RubyBuildPackage,drb,distributed object system,+ruby-ipaddr +ruby-monitor +ruby-observer +ruby-singleton +ruby-tmpdir))
1047 $(eval $(call RubyBuildPackage,enc,character re-coding library charset (small subset),))
1048 $(eval $(call RubyBuildPackage,enc-extra,character re-coding library charset (extra subset),+ruby-enc))
1049 $(eval $(call RubyBuildPackage,english,Reference some global vars as english variables,))
1050 $(eval $(call RubyBuildPackage,erb,(embedded interpreter),+ruby-gems))
1051 $(eval $(call RubyBuildPackage,etc,Access info typically stored in /etc,))
1052 $(eval $(call RubyBuildPackage,expect,Expect-like for IO,))
1053 $(eval $(call RubyBuildPackage,fcntl,Loads constants defined in the OS fcntl.h C header file,))
1054 $(eval $(call RubyBuildPackage,fiber,Light weight cooperative concurrency,))
1055 $(eval $(call RubyBuildPackage,fiddle,Libffi wrapper for Ruby,+libffi))
1056 $(eval $(call RubyBuildPackage,fileutils,File utility methods for copying moving removing etc,+ruby-enc +ruby-etc +ruby-rbconfig +ruby-socket))
1057 $(eval $(call RubyBuildPackage,find,top-down traversal of a set of file paths,+ruby-enc))
1058 $(eval $(call RubyBuildPackage,forwardable,delegation of methods to a object,))
1059 $(eval $(call RubyBuildPackage,gdbm,Ruby extension for GNU dbm,+libgdbm))
1060 $(eval $(call RubyBuildPackage,gems,gems packet management,+ruby-base64 +ruby-cgi +ruby-json +ruby-net-http +ruby-open3 +ruby-pathname +ruby-pp +ruby-rake +ruby-resolv +ruby-yaml))
1061 $(eval $(call RubyBuildPackage,getoptlong,implementation of getoptLong,))
1062 $(eval $(call RubyBuildPackage,io-console,Console interface,))
1063 $(eval $(call RubyBuildPackage,io-nonblock,Non-blocking mode with IO class,))
1064 $(eval $(call RubyBuildPackage,io-wait,Waits until IO is readable or writable without blocking,))
1065 $(eval $(call RubyBuildPackage,ipaddr,Set of methods to manipulate an IP address,+ruby-socket))
1066 $(eval $(call RubyBuildPackage,irb,(interactive shell),+ruby-gems +ruby-reline +ruby-ripper +ruby-tracer))
1067 $(eval $(call RubyBuildPackage,json,JSON Implementation for Ruby,+ruby-date +ruby-ostruct))
1068 $(eval $(call RubyBuildPackage,logger,logger and syslog library,+ruby-monitor))
1069 $(eval $(call RubyBuildPackage,matrix,implementation of Matrix and Vector classes,))
1070 $(eval $(call RubyBuildPackage,minitest,Gem minitest,+ruby-gems +ruby-mutex_m))
1071 $(eval $(call RubyBuildPackage,mkmf,makefile library,+ruby-shellwords +ruby-tmpdir))
1072 $(eval $(call RubyBuildPackage,monitor,Object or module methods are executed with mutual exclusion,))
1073 $(eval $(call RubyBuildPackage,mutex_m,extend objects to be handled like a Mutex,))
1074 $(eval $(call RubyBuildPackage,net-ftp,FTP lib,+ruby-monitor +ruby-net-protocol +ruby-openssl +ruby-time))
1075 $(eval $(call RubyBuildPackage,net-http,HTTP lib,+ruby-net-protocol +ruby-securerandom +ruby-tempfile +ruby-uri +ruby-zlib))
1076 $(eval $(call RubyBuildPackage,net-imap,IMAP lib,+ruby-monitor +ruby-net-protocol +ruby-openssl +ruby-strscan))
1077 $(eval $(call RubyBuildPackage,net-pop,POP3 lib,+ruby-net-protocol +ruby-openssl))
1078 $(eval $(call RubyBuildPackage,net-protocol,Abstract for net-* clients,+ruby-socket +ruby-timeout))
1079 $(eval $(call RubyBuildPackage,net-smtp,SMTP lib,+ruby-net-protocol +ruby-openssl))
1080 $(eval $(call RubyBuildPackage,nkf,Network Kanji Filter,+ruby-enc))
1081 $(eval $(call RubyBuildPackage,objspace,Routines to interact with the garbage collection facility,+ruby-tempfile))
1082 $(eval $(call RubyBuildPackage,observer,Observer design pattern,))
1083 $(eval $(call RubyBuildPackage,open-uri,Wrapper for Net::HTTP Net::HTTPS and Net::,+ruby-net-ftp +ruby-net-http))
1084 $(eval $(call RubyBuildPackage,open3,popen with stderr,))
1085 $(eval $(call RubyBuildPackage,openssl,SSL TLS and general purpose cryptography,+ruby-digest +ruby-enc +ruby-io-nonblock +ruby-ipaddr +ruby-stringio +libopenssl))
1086 $(eval $(call RubyBuildPackage,optparse,command-line option analysis,+ruby-shellwords +ruby-time))
1087 $(eval $(call RubyBuildPackage,ostruct,build custom data structures,))
1088 $(eval $(call RubyBuildPackage,pathname,Pathname lib,+ruby-fileutils +ruby-find))
1089 $(eval $(call RubyBuildPackage,powerassert,Gem power_assert,+ruby-pp +ruby-ripper))
1090 $(eval $(call RubyBuildPackage,pp,Pretty print objects,+ruby-etc +ruby-prettyprint))
1091 $(eval $(call RubyBuildPackage,prettyprint,PrettyPrint library,))
1092 $(eval $(call RubyBuildPackage,prime,Prime numbers and factorization library,+ruby-forwardable +ruby-singleton))
1093 $(eval $(call RubyBuildPackage,pstore,file based persistence,+ruby-digest +ruby-enc))
1094 $(eval $(call RubyBuildPackage,psych,YAML parser and emitter,+ruby-bigdecimal +ruby-date +ruby-enc +ruby-forwardable +ruby-stringio +ruby-strscan +libyaml))
1095 $(eval $(call RubyBuildPackage,pty,Creates and manages pseudo terminals,))
1096 $(eval $(call RubyBuildPackage,racc,LALR parser generator,+ruby-forwardable +ruby-optparse +ruby-rbconfig +ruby-stringio))
1097 $(eval $(call RubyBuildPackage,rake,Rake (make replacement),+ruby-fileutils +ruby-monitor +ruby-optparse +ruby-ostruct +ruby-set +ruby-singleton))
1098 $(eval $(call RubyBuildPackage,rbconfig,RbConfig,))
1099 $(eval $(call RubyBuildPackage,rbs,RBS provides syntax and semantics definition for the Ruby Signature language,+ruby-gems +ruby-logger +ruby-racc +ruby-ripper))
1100 $(eval $(call RubyBuildPackage,rdoc,RDoc produces HTML and command-line documentation for Ruby projects,+ruby-abbrev +ruby-did-you-mean +ruby-erb +ruby-racc +ruby-ripper))
1101 $(eval $(call RubyBuildPackage,readline-ext,support for native GNU readline,+libncurses +libreadline))
1102 $(eval $(call RubyBuildPackage,readline,loads readline-ext(native) or reline(ruby),+ruby-reline))
1103 $(eval $(call RubyBuildPackage,reline,alternative to readline-ext in pure ruby,+ruby-fiddle +ruby-forwardable +ruby-io-console +ruby-tempfile +ruby-timeout))
1104 $(eval $(call RubyBuildPackage,resolv,DNS resolver library,+ruby-securerandom +ruby-timeout))
1105 $(eval $(call RubyBuildPackage,resolv-replace,Replace Socket DNS with Resolv,+ruby-resolv))
1106 $(eval $(call RubyBuildPackage,rexml,XML toolkit,+ruby-enc +ruby-forwardable +ruby-pp +ruby-set +ruby-stringio +ruby-strscan))
1107 $(eval $(call RubyBuildPackage,rinda,Linda paradigm implementation,+ruby-drb +ruby-forwardable))
1108 $(eval $(call RubyBuildPackage,ripper,script parser,))
1109 $(eval $(call RubyBuildPackage,rss,RSS toolkit,+ruby-english +ruby-nkf +ruby-open-uri +ruby-rexml))
1110 $(eval $(call RubyBuildPackage,securerandom,Secure random number generators,+ruby-openssl))
1111 $(eval $(call RubyBuildPackage,set,Set collection,+ruby-tsort))
1112 $(eval $(call RubyBuildPackage,shellwords,Manipulate strings as Bourne Shell,))
1113 $(eval $(call RubyBuildPackage,singleton,Singleton pattern,))
1114 $(eval $(call RubyBuildPackage,socket,socket support,+ruby-io-wait))
1115 $(eval $(call RubyBuildPackage,stringio,Pseudo `IO` class from/to `String`,))
1116 $(eval $(call RubyBuildPackage,strscan,Lexical scanning operations on a String,))
1117 $(eval $(call RubyBuildPackage,syslog,Syslog Lib,+ruby-logger))
1118 $(eval $(call RubyBuildPackage,tempfile,Manages temporary files,+ruby-delegate +ruby-tmpdir))
1119 $(eval $(call RubyBuildPackage,testunit,Gem test-unit,+ruby-csv +ruby-erb +ruby-powerassert +ruby-rexml))
1120 $(eval $(call RubyBuildPackage,time,Extends Time with additional methods for parsing and converting Times,+ruby-date))
1121 $(eval $(call RubyBuildPackage,timeout,Auto-terminate potentially long-running operations,))
1122 $(eval $(call RubyBuildPackage,tmpdir,Get temp dir path,+ruby-fileutils))
1123 $(eval $(call RubyBuildPackage,tracer,Outputs a source level execution trace of a Ruby program,))
1124 $(eval $(call RubyBuildPackage,tsort,Topological sorting using Tarjan s algorithm,))
1125 $(eval $(call RubyBuildPackage,typeprof,A type analysis tool for Ruby code based on abstract interpretation,+ruby-coverage +ruby-rbs))
1126 $(eval $(call RubyBuildPackage,unicodenormalize,String additions for Unicode normalization,+ruby-enc +ruby-enc-extra))
1127 $(eval $(call RubyBuildPackage,un,Utilities to replace common UNIX commands in Makefiles,+ruby-mkmf +ruby-optparse))
1128 $(eval $(call RubyBuildPackage,uri,library to handle URI,+ruby-enc))
1129 $(eval $(call RubyBuildPackage,weakref,Weak reference to be garbage collected,+ruby-delegate))
1130 $(eval $(call RubyBuildPackage,yaml,YAML toolkit,+ruby-dbm +ruby-pstore +ruby-psych))
1131 $(eval $(call RubyBuildPackage,zlib,compression/decompression library interface,))
1132 $(eval $(call BuildPackage,ruby-stdlib))
1133 $(eval $(call HostBuild))