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