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