ruby: adds help text for pkgs
[feed/packages.git] / lang / ruby / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # To Do:
8 # - dirs not removed when uninstalling!
9 # -- sort pkgs locations
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=ruby
13 PKG_VERSION:=2.1.3
14 PKG_RELEASE:=2
15
16 PKG_LIBVER:=2.1
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19 PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/
20 PKG_MD5SUM:=02b7da3bb06037c777ca52e1194efccb
21 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
22 PKG_LICENSE:=BSD-2-Clause
23 PKG_LICENSE_FILE:=COPYING
24
25 PKG_BUILD_DEPENDS:=ruby/host
26 PKG_INSTALL:=1
27 PKG_BUILD_PARALLEL:=1
28 PKG_FIXUP:=autoreconf
29
30 include $(INCLUDE_DIR)/host-build.mk
31 include $(INCLUDE_DIR)/package.mk
32 include $(INCLUDE_DIR)/nls.mk
33
34 define Package/ruby/Default
35 SUBMENU:=Ruby
36 SECTION:=lang
37 CATEGORY:=Languages
38 TITLE:=Ruby scripting language
39 URL:=http://www.ruby-lang.org/
40 endef
41
42 define Package/ruby/Default/description
43 Ruby is the interpreted scripting language for quick and easy
44 object-oriented programming. It has many features to process text files
45 and to do system management tasks (as in perl). It is simple,
46 straight-forward, and extensible.
47
48 endef
49
50 define Package/ruby
51 $(call Package/ruby/Default)
52 TITLE+= (interpreter)
53 DEPENDS:=+libruby
54 endef
55
56 define Package/ruby/description
57 $(call Package/ruby/Default/description)
58 endef
59
60 define Package/libruby
61 $(call Package/ruby/Default)
62 SUBMENU:=
63 SECTION:=libs
64 CATEGORY:=Libraries
65 TITLE+= (shared library)
66 DEPENDS+= +libpthread +librt +libgmp
67 endef
68
69 define Package/ruby-misc
70 $(call Package/ruby/Default)
71 TITLE:=Ruby standard libraries subset (miscelaneous files)
72 DEPENDS:=ruby
73 endef
74
75 define Package/ruby-misc/description
76 This package contains miscellaneous files from stdlib
77 not splitted in other ruby packages like stringio:
78 - English.rb
79 - abbrev.rb
80 - base64.rb
81 - continuation.so
82 - coverage.so
83 - delegate.rb
84 - e2mmap.rb
85 - etc.so
86 - expect.rb
87 - fcntl.so
88 - fiber.so
89 - getoptlong.rb
90 - open3.rb
91 - ostruct.rb
92 - pty.so
93 - scanf.rb
94 - securerandom.rb
95 - set.rb
96 - shellwords.rb
97 - stringio.so
98 - strscan.so
99 - tsort.rb
100 - weakref.rb
101
102 endef
103
104 define Package/ruby-stdlib
105 $(call Package/ruby/Default)
106 TITLE:=Ruby standard libraries (metadata for all stdlib subsets)
107 DEPENDS:=ruby +ruby-misc +ruby-bigdecimal +ruby-cgi +ruby-csv +ruby-datetime +ruby-dbm +ruby-debuglib\
108 +ruby-digest +ruby-dl +ruby-drb +ruby-enc +ruby-enc-extra +ruby-erb +ruby-gdbm +ruby-gems \
109 +ruby-json +ruby-io-console +ruby-irb +ruby-fiddle +ruby-filelib +ruby-logger +ruby-math \
110 +ruby-minitest +ruby-mkmf +ruby-multithread +ruby-nkf +ruby-net +ruby-openssl +ruby-optparse \
111 +ruby-patterns +ruby-prettyprint +ruby-pstore +ruby-psych +ruby-racc +ruby-rake +ruby-rbconfig \
112 +ruby-rdoc +ruby-readline +ruby-rexml +ruby-rinda +ruby-ripper +ruby-rss +ruby-sdbm +ruby-shell \
113 +ruby-socket +ruby-testunit +ruby-uri +ruby-webrick +ruby-xmlrpc +ruby-yaml +ruby-zlib
114 endef
115
116 define Package/ruby-stdlib/description
117 This metapackage currently install all ruby-* packages,
118 providing a complete Ruby Standard Library.
119
120 endef
121
122 define Package/ruby-bigdecimal
123 $(call Package/ruby/Default)
124 TITLE:=Arbitrary-precision decimal floating-point library for Ruby
125 DEPENDS:=ruby
126 endef
127
128 define Package/ruby-bigdecimal/description
129 Provides bigdecimal* files
130 endef
131
132 define Package/ruby-cgi
133 $(call Package/ruby/Default)
134 TITLE:=Ruby CGI support toolkit
135 DEPENDS:=ruby +ruby-filelib +ruby-pstore
136 endef
137
138 define Package/ruby-bigdecimal/description
139 Provides bigdecimal* files
140
141 endef
142
143 define Package/ruby-csv
144 $(call Package/ruby/Default)
145 TITLE+=CSV library
146 DEPENDS:=ruby +ruby-patterns +ruby-datetime +ruby-enc
147 endef
148
149 define Package/ruby-csv/description
150 Provides csv.rb file
151
152 endef
153
154 define Package/ruby-datetime
155 $(call Package/ruby/Default)
156 TITLE+= date library
157 DEPENDS:=ruby
158 endef
159
160 define Package/ruby-datetime/description
161 Provides date.rb and time.rb
162
163 endef
164
165 define Package/ruby-dbm
166 $(call Package/ruby/Default)
167 TITLE:=Ruby support for dbm
168 DEPENDS:=ruby +libdb47
169 endef
170
171 define Package/ruby-dbm/description
172 The DBM class provides a wrapper to a Unix-style dbm or Database Manager library.
173 This package provides dbm.so file.
174
175 endef
176
177 define Package/ruby-debuglib
178 $(call Package/ruby/Default)
179 TITLE+= debug library
180 DEPENDS:=ruby +ruby-multithread +ruby-prettyprint
181 endef
182
183 define Package/ruby-debuglib/description
184 Provides files for debugging:
185 - benchmark.rb
186 - debug.rb
187 - objspace.so
188 - profile.rb
189 - profiler.rb
190 - tracer.rb
191
192 endef
193
194 define Package/ruby-digest
195 $(call Package/ruby/Default)
196 TITLE:=Ruby Digest Library
197 DEPENDS:=ruby +RUBY_DIGEST_USE_OPENSSL:libopenssl
198 endef
199
200 define Package/ruby-digest/description
201 Provides digest* files. Can be configured to use OpenSSL or
202 bundled hash functions.
203
204 endef
205
206 define Package/ruby-digest/config
207
208 config RUBY_DIGEST_USE_OPENSSL
209 bool "Use OpenSSL functions for ruby digest hash functions"
210 depends on PACKAGE_ruby-digest
211 help
212 Ruby can use OpenSSL hash functions or compile alternative implementations. Using
213 OpenSSL saves about 30KBytes (less when compressed) but requires OpenSSL (that
214 is way bigger than that). However, if OpenSSL is already needed by another usage,
215 as ruby-openssl or any other non ruby package, it is better to mark this option.
216 default n
217
218 endef
219
220 define Package/ruby-drb
221 $(call Package/ruby/Default)
222 TITLE:=Ruby distributed object system
223 DEPENDS:=ruby +ruby-filelib +ruby-patterns +ruby-socket
224 endef
225
226 define Package/ruby-drb/description
227 Provides drb* files
228
229 endef
230
231 define Package/ruby-dl
232 $(call Package/ruby/Default)
233 TITLE+= (dynamic linker support)
234 DEPENDS:=ruby +ruby-fiddle +ruby-multithread
235 endef
236
237 define Package/ruby-dl/description
238 Provides dl* files. This is deprecated, use fiddle.
239
240 endef
241
242 define Package/ruby-enc
243 $(call Package/ruby/Default)
244 TITLE:=Ruby character re-coding library charset (small subset)
245 DEPENDS:=ruby
246 endef
247
248 define Package/ruby-enc/description
249 Provides ruby encoding library for encodings used directly by
250 libraries in Ruby Standard Library:
251 - enc/encdb.so
252 - enc/euc_jp.so
253 - enc/iso_8859_1.so
254 - enc/utf_16be.so
255 - enc/utf_16le.so
256 - enc/utf_32be.so
257 - enc/utf_32le.so
258 FYI: ASCII-8BIT, UTF-7, UTF-8 and US-ASCII are already in Core.
259
260 endef
261
262 define Package/ruby-enc-extra
263 $(call Package/ruby/Default)
264 TITLE:=Ruby character re-coding library charset (extra subset)
265 DEPENDS:=ruby +ruby-enc
266 endef
267
268 define Package/ruby-enc-extra/description
269 Provides extra encodings not provided by ruby-enc:
270 - enc/big5.so
271 - enc/cp949.so
272 - enc/emacs_mule.so
273 - enc/euc_kr.so
274 - enc/euc_tw.so
275 - enc/gb18030.so
276 - enc/gb2312.so
277 - enc/gbk.so
278 - enc/iso_8859_10.so
279 - enc/iso_8859_11.so
280 - enc/iso_8859_13.so
281 - enc/iso_8859_14.so
282 - enc/iso_8859_15.so
283 - enc/iso_8859_16.so
284 - enc/iso_8859_2.so
285 - enc/iso_8859_3.so
286 - enc/iso_8859_4.so
287 - enc/iso_8859_5.so
288 - enc/iso_8859_6.so
289 - enc/iso_8859_7.so
290 - enc/iso_8859_8.so
291 - enc/iso_8859_9.so
292 - enc/koi8_r.so
293 - enc/koi8_u.so
294 - enc/shift_jis.so
295 - enc/trans/big5.so
296 - enc/trans/chinese.so
297 - enc/trans/emoji.so
298 - enc/trans/emoji_iso2022_kddi.so
299 - enc/trans/emoji_sjis_docomo.so
300 - enc/trans/emoji_sjis_kddi.so
301 - enc/trans/emoji_sjis_softbank.so
302 - enc/trans/escape.so
303 - enc/trans/gb18030.so
304 - enc/trans/gbk.so
305 - enc/trans/iso2022.so
306 - enc/trans/japanese.so
307 - enc/trans/japanese_euc.so
308 - enc/trans/japanese_sjis.so
309 - enc/trans/korean.so
310 - enc/trans/single_byte.so
311 - enc/trans/transdb.so
312 - enc/trans/utf8_mac.so
313 - enc/trans/utf_16_32.so
314 - enc/windows_1251.so
315 - enc/windows_31j.so
316
317 endef
318
319 define Package/ruby-erb
320 $(call Package/ruby/Default)
321 TITLE+= (embedded interpreter)
322 DEPENDS:=ruby +ruby-cgi
323 endef
324
325 define Package/ruby-erb/description
326 Provides erb* files
327
328 endef
329
330 define Package/ruby-fiddle
331 $(call Package/ruby/Default)
332 TITLE:=A libffi wrapper for Ruby
333 DEPENDS:=ruby +libffi
334 endef
335
336 define Package/ruby-fiddle/description
337 Provides fiddle* files
338
339 endef
340
341 define Package/ruby-filelib
342 $(call Package/ruby/Default)
343 TITLE+= File utils library
344 DEPENDS:=ruby +ruby-multithread +ruby-enc
345 endef
346
347 define Package/ruby-filelib/description
348 Provides filesystem interaction files, including
349 path and temp:
350 - fileutils.rb
351 - find.rb
352 - pathname.rb
353 - pathname.so
354 - tempfile.rb
355 - tmpdir.rb
356
357 endef
358
359 define Package/ruby-gdbm
360 $(call Package/ruby/Default)
361 TITLE:=Ruby support for gdbm
362 DEPENDS:=ruby +libgdbm
363 endef
364
365 define Package/ruby-gdbm/description
366 Provides gdbm* files
367
368 endef
369
370 define Package/ruby-gems
371 $(call Package/ruby/Default)
372 TITLE:=Ruby gems packet management
373 DEPENDS:=ruby +ruby-net +ruby-rdoc +ruby-zlib
374 endef
375
376 define Package/ruby-gems/description
377 Provides rubygems for gems usage, download and installation
378
379 endef
380
381 define Package/ruby-io-console
382 $(call Package/ruby/Default)
383 TITLE+= Console interface
384 DEPENDS:=ruby
385 endef
386
387 define Package/ruby-io-console/description
388 Provides io-console* files
389
390 endef
391
392 define Package/ruby-irb
393 $(call Package/ruby/Default)
394 TITLE+= (interactive shell)
395 DEPENDS:=ruby +ruby-debuglib +ruby-filelib +ruby-math
396 endef
397
398 define Package/ruby-irb/description
399 Provides irb* files
400
401 endef
402
403 define Package/ruby-json
404 $(call Package/ruby/Default)
405 TITLE:=Ruby support for JSON
406 DEPENDS:=ruby +ruby-datetime +ruby-misc
407 endef
408
409 define Package/ruby-json/description
410 Provides json* files
411
412 endef
413
414 define Package/ruby-logger
415 $(call Package/ruby/Default)
416 TITLE+= logger and syslog library
417 DEPENDS:=ruby +ruby-multithread
418 endef
419
420 define Package/ruby-logger/description
421 Provides log library, including syslog:
422 - logger.rb
423 - syslog.so
424 - syslog/logger.rb
425
426 endef
427
428 define Package/ruby-math
429 $(call Package/ruby/Default)
430 TITLE+= math library
431 DEPENDS:=ruby +ruby-patterns
432 endef
433
434 define Package/ruby-math/description
435 Provides math related files:
436 - cmath.rb
437 - complex.rb
438 - mathn.rb
439 - mathn/complex.so
440 - mathn/rational.so
441 - matrix.rb
442 - matrix/eigenvalue_decomposition.rb
443 - matrix/lup_decomposition.rb
444 - prime.rb
445 - rational.rb
446
447 endef
448
449 define Package/ruby-minitest
450 $(call Package/ruby/Default)
451 TITLE+= minitest bundled with Ruby
452 DEPENDS:=ruby +ruby-filelib +ruby-optparse +ruby-prettyprint +ruby-rbconfig
453 endef
454
455 define Package/ruby-minitest/description
456 Provides minitest* files
457
458 endef
459
460 define Package/ruby-multithread
461 $(call Package/ruby/Default)
462 TITLE+= multithread library
463 DEPENDS:=ruby +ruby-misc
464 endef
465
466 define Package/ruby-multithread/description
467 Provides files for multithread usage:
468 - io/nonblock.so
469 - io/wait.so
470 - thread.so (FYI, Thread is a core class)
471 - monitor.rb
472 - mutex_m.rb
473 - sync.rb
474 - thwait.rb
475 - timeout.rb
476
477 endef
478
479 define Package/ruby-mkmf
480 $(call Package/ruby/Default)
481 TITLE+= makefile library
482 DEPENDS:=ruby +ruby-filelib +ruby-optparse +ruby-rbconfig
483 endef
484
485 define Package/ruby-mkmf/description
486 Provides mkmf* files
487
488 endef
489
490 define Package/ruby-net
491 $(call Package/ruby/Default)
492 TITLE:=Ruby Network Protocols Library
493 DEPENDS:=ruby +ruby-datetime +ruby-digest +ruby-filelib +ruby-uri
494 endef
495
496 define Package/ruby-net/description
497 Provides net* files
498
499 endef
500
501 define Package/ruby-nkf
502 $(call Package/ruby/Default)
503 TITLE:=Ruby Network Kanji Filter
504 DEPENDS:=ruby +ruby-enc
505 endef
506
507 define Package/ruby-nkf/description
508 Provides nkf* files
509
510 endef
511
512 define Package/ruby-openssl
513 $(call Package/ruby/Default)
514 TITLE:=Ruby support for openssl
515 DEPENDS:=ruby +ruby-enc +libopenssl +ruby-misc
516 endef
517
518 define Package/ruby-openssl/description
519 Provides openssl* files
520
521 endef
522
523 define Package/ruby-optparse
524 $(call Package/ruby/Default)
525 TITLE:=Ruby command-line option analysis
526 DEPENDS:=ruby +ruby-misc
527 endef
528
529 define Package/ruby-optparse/description
530 Provides optparse* files
531
532 endef
533
534 define Package/ruby-patterns
535 $(call Package/ruby/Default)
536 TITLE:=Ruby design patterns implementation
537 DEPENDS:=ruby +ruby-multithread
538 endef
539
540 define Package/ruby-patterns/description
541 Provides design patterns helpers files:
542 - forwardable.rb
543 - observer.rb
544 - singleton.rb
545
546 endef
547
548 define Package/ruby-prettyprint
549 $(call Package/ruby/Default)
550 TITLE:=Ruby PrettyPrint librart
551 DEPENDS:=ruby +ruby-misc
552 endef
553
554 define Package/ruby-prettyprint/description
555 Provides Pretty Print library:
556 - pp.rb
557 - prettyprint.rb
558
559 endef
560
561 define Package/ruby-pstore
562 $(call Package/ruby/Default)
563 TITLE+=file based persistence
564 DEPENDS:=ruby +ruby-digest +ruby-enc
565 endef
566
567 define Package/ruby-pstore/description
568 Provides pstore.rb file
569
570 endef
571
572 define Package/ruby-psych
573 $(call Package/ruby/Default)
574 TITLE+=YAML parser and emitter
575 DEPENDS:=ruby +ruby-bigdecimal +ruby-datetime +ruby-misc +ruby-enc
576 endef
577
578 define Package/ruby-psych/description
579 Provides psych* files
580
581 endef
582
583 define Package/ruby-racc
584 $(call Package/ruby/Default)
585 TITLE:=LALR parser generator in Ruby
586 DEPENDS:=ruby
587 endef
588
589 define Package/ruby-racc/description
590 Provides racc* files
591
592 endef
593
594 define Package/ruby-rake
595 $(call Package/ruby/Default)
596 TITLE+=Ruby Rake (make replacement)
597 DEPENDS:=ruby +ruby-datetime +ruby-filelib +ruby-optparse +ruby-patterns +ruby-rbconfig
598 endef
599
600 define Package/ruby-rake/description
601 Provides rake* files
602
603 endef
604
605 define Package/ruby-rbconfig
606 $(call Package/ruby/Default)
607 TITLE+=Ruby RbConfig
608 DEPENDS:=ruby
609 endef
610
611 define Package/ruby-rbconfig/description
612 Provides rbconfig file
613
614 endef
615
616 define Package/ruby-rdoc
617 $(call Package/ruby/Default)
618 TITLE+= (documentation generator)
619 DEPENDS:=ruby +ruby-erb +ruby-irb +ruby-json +ruby-racc +ruby-rake +ruby-yaml
620 endef
621
622 define Package/ruby-rdoc/description
623 Provides rdoc* and ri files
624
625 endef
626
627 define Package/ruby-readline
628 $(call Package/ruby/Default)
629 TITLE:=Ruby support for readline
630 DEPENDS:=ruby +libncurses +libreadline
631 endef
632
633 define Package/ruby-readline/description
634 Provides readline* files
635
636 endef
637
638 define Package/ruby-rexml
639 $(call Package/ruby/Default)
640 TITLE:=Ruby XML toolkit
641 DEPENDS:=ruby +ruby-patterns +ruby-enc
642 endef
643
644 define Package/ruby-rexml/description
645 Provides rexml* files
646
647 endef
648
649 define Package/ruby-rinda
650 $(call Package/ruby/Default)
651 TITLE:=Ruby Linda paradigm implementation
652 DEPENDS:=ruby +ruby-drb
653 endef
654
655 define Package/ruby-rinda/description
656 Provides rinda* files
657
658 endef
659
660 define Package/ruby-ripper
661 $(call Package/ruby/Default)
662 TITLE:=Ruby script parser
663 DEPENDS:=ruby
664 endef
665
666 define Package/ruby-ripper/description
667 Provides ripper* files
668
669 endef
670
671 define Package/ruby-rss
672 $(call Package/ruby/Default)
673 TITLE:=Ruby RSS toolkit
674 DEPENDS:=ruby +ruby-net +ruby-nkf +ruby-rexml
675 endef
676
677 define Package/ruby-rss/description
678 Provides rss* files
679
680 endef
681
682 define Package/ruby-sdbm
683 $(call Package/ruby/Default)
684 TITLE:=Ruby simple file-based key-value dbm implementation
685 DEPENDS:=ruby
686 endef
687
688 define Package/ruby-sdbm/description
689 Provides sdbm* files
690
691 endef
692
693 define Package/ruby-shell
694 $(call Package/ruby/Default)
695 TITLE:=Ruby idiomatic Ruby interface
696 DEPENDS:=ruby +ruby-patterns
697 endef
698
699 define Package/ruby-shell/description
700 Provides shell* files
701
702 endef
703
704 define Package/ruby-socket
705 $(call Package/ruby/Default)
706 TITLE+= socket support
707 DEPENDS:=ruby +ruby-multithread
708 endef
709
710 define Package/ruby-socket/description
711 Provides socket-related files:
712 - gserver.rb
713 - ipaddr.rb
714 - resolv-replace.rb
715 - resolv.rb
716 - socket.rb
717 - socket.so
718
719 endef
720
721 define Package/ruby-testunit
722 $(call Package/ruby/Default)
723 TITLE:=Ruby Test Unit toolkit
724 DEPENDS:=ruby +ruby-minitest
725 endef
726
727 define Package/ruby-testunit/description
728 Provides test/unit* files
729
730 endef
731
732 define Package/ruby-uri
733 $(call Package/ruby/Default)
734 TITLE:=Ruby library to handle URI
735 DEPENDS:=ruby +ruby-socket +ruby-enc
736 endef
737
738 define Package/ruby-uri/description
739 Provides uri* files
740
741 endef
742
743 define Package/ruby-webrick
744 $(call Package/ruby/Default)
745 TITLE:=Ruby Web server toolkit
746 DEPENDS:=ruby +ruby-erb +ruby-net +ruby-patterns +ruby-rbconfig
747 endef
748
749 define Package/ruby-webrick/description
750 Provides webrick* files
751
752 endef
753
754 define Package/ruby-xmlrpc
755 $(call Package/ruby/Default)
756 TITLE:=Ruby XML-RPC toolkit
757 DEPENDS:=ruby +ruby-rexml +ruby-webrick
758 endef
759
760 define Package/ruby-xmlrpc/description
761 Provides xmlrpc* files
762
763 endef
764
765 define Package/ruby-yaml
766 $(call Package/ruby/Default)
767 TITLE:=Ruby YAML toolkit
768 DEPENDS:=ruby +ruby-dbm +ruby-pstore +ruby-psych
769 endef
770
771 define Package/ruby-yaml/description
772 Provides yaml* files
773
774 endef
775
776 define Package/ruby-zlib
777 $(call Package/ruby/Default)
778 TITLE:=Ruby support for zlib
779 DEPENDS:=ruby +zlib
780 endef
781
782 define Package/ruby-zlib/description
783 Provides zlib* files
784
785 endef
786
787 HOST_CONFIGURE_ARGS += \
788 --disable-install-doc \
789 --disable-install-rdoc \
790 --disable-install-capi \
791 --with-static-linked-ext \
792
793 CONFIGURE_ARGS += \
794 --enable-shared \
795 --enable-static \
796 --disable-rpath \
797 --enable-ipv6 \
798 --disable-install-doc \
799 --disable-install-capi \
800 --with-ruby-version=minor \
801 --with-iconv-dir=$(ICONV_PREFIX) \
802
803 ifndef CONFIG_RUBY_DIGEST_USE_OPENSSL
804 CONFIGURE_ARGS += \
805 --with-bundled-sha1\
806 --with-bundled-md5\
807 --with-bundled-rmd160\
808 --with-bundled-sha2 \
809
810 endif
811
812 TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
813
814 MAKE_FLAGS += \
815 DESTDIR="$(PKG_INSTALL_DIR)" \
816 SHELL="/bin/bash"
817
818 define Package/ruby/install
819 $(INSTALL_DIR) $(1)/usr/bin
820 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
821 $(INSTALL_DIR) $(1)/usr/lib/ruby/vendor_ruby/$(PKG_LIBVER)
822 $(INSTALL_DIR) $(1)/usr/lib/ruby/site_ruby/$(PKG_LIBVER)
823 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/lib/ruby/ruby$(PKG_LIBVER)-bin
824 $(INSTALL_BIN) ./files/ruby $(1)/usr/bin/ruby
825 sed -i -e "s%@RUBY_LIBPATH@%/usr/lib/ruby/$(PKG_LIBVER)%" $(1)/usr/bin/ruby
826 sed -i -e "s%@RUBY_BINPATH@%/usr/lib/ruby/ruby$(PKG_LIBVER)-bin%" $(1)/usr/bin/ruby
827 endef
828
829 define Package/libruby/install
830 $(INSTALL_DIR) $(1)/usr/lib
831 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so.* $(1)/usr/lib/
832 endef
833
834 define Package/ruby-stdlib/install
835 # nothing to do
836 endef
837
838 define Package/ruby-misc/install
839 $(INSTALL_DIR) $(1)/usr/lib
840 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
841 usr/lib/ruby/$(PKG_LIBVER)/English.rb \
842 usr/lib/ruby/$(PKG_LIBVER)/abbrev.rb \
843 usr/lib/ruby/$(PKG_LIBVER)/base64.rb \
844 usr/lib/ruby/$(PKG_LIBVER)/delegate.rb \
845 usr/lib/ruby/$(PKG_LIBVER)/e2mmap.rb \
846 usr/lib/ruby/$(PKG_LIBVER)/expect.rb \
847 usr/lib/ruby/$(PKG_LIBVER)/getoptlong.rb \
848 usr/lib/ruby/$(PKG_LIBVER)/open3.rb \
849 usr/lib/ruby/$(PKG_LIBVER)/ostruct.rb \
850 usr/lib/ruby/$(PKG_LIBVER)/scanf.rb \
851 usr/lib/ruby/$(PKG_LIBVER)/securerandom.rb \
852 usr/lib/ruby/$(PKG_LIBVER)/set.rb \
853 usr/lib/ruby/$(PKG_LIBVER)/shellwords.rb \
854 usr/lib/ruby/$(PKG_LIBVER)/tsort.rb \
855 usr/lib/ruby/$(PKG_LIBVER)/weakref.rb \
856 usr/lib/ruby/$(PKG_LIBVER)/*/continuation.so \
857 usr/lib/ruby/$(PKG_LIBVER)/*/coverage.so \
858 usr/lib/ruby/$(PKG_LIBVER)/*/etc.so \
859 usr/lib/ruby/$(PKG_LIBVER)/*/fcntl.so \
860 usr/lib/ruby/$(PKG_LIBVER)/*/fiber.so \
861 usr/lib/ruby/$(PKG_LIBVER)/*/pty.so \
862 usr/lib/ruby/$(PKG_LIBVER)/*/stringio.so \
863 usr/lib/ruby/$(PKG_LIBVER)/*/strscan.so \
864 ) | ( cd $(1); $(TAR) -xf - )
865 endef
866
867 define Package/ruby-bigdecimal/install
868 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
869 usr/lib/ruby/$(PKG_LIBVER)/*/bigdecimal.so \
870 usr/lib/ruby/$(PKG_LIBVER)/bigdecimal/ \
871 usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/bigdecimal-*.gemspec \
872 ) | ( cd $(1); $(TAR) -xf - )
873 endef
874
875 define Package/ruby-csv/install
876 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
877 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/csv.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
878 endef
879
880 define Package/ruby-cgi/install
881 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
882 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi $(1)/usr/lib/ruby/$(PKG_LIBVER)/
883 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/cgi.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
884 endef
885
886 define Package/ruby-datetime/install
887 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
888 usr/lib/ruby/$(PKG_LIBVER)/time.rb \
889 usr/lib/ruby/$(PKG_LIBVER)/date.rb \
890 usr/lib/ruby/$(PKG_LIBVER)/date/ \
891 usr/lib/ruby/$(PKG_LIBVER)/*/date_core.so \
892 ) | ( cd $(1); $(TAR) -xf - )
893 endef
894
895 define Package/ruby-dbm/install
896 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
897 usr/lib/ruby/$(PKG_LIBVER)/*/dbm.so \
898 ) | ( cd $(1); $(TAR) -xf - )
899 endef
900
901 define Package/ruby-debuglib/install
902 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
903 usr/lib/ruby/$(PKG_LIBVER)/profile.rb \
904 usr/lib/ruby/$(PKG_LIBVER)/profiler.rb \
905 usr/lib/ruby/$(PKG_LIBVER)/debug.rb \
906 usr/lib/ruby/$(PKG_LIBVER)/tracer.rb \
907 usr/lib/ruby/$(PKG_LIBVER)/benchmark.rb \
908 usr/lib/ruby/$(PKG_LIBVER)/*/objspace.so \
909 ) | ( cd $(1); $(TAR) -xf - )
910 endef
911
912 define Package/ruby-digest/install
913 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
914 usr/lib/ruby/$(PKG_LIBVER)/digest \
915 usr/lib/ruby/$(PKG_LIBVER)/digest.rb \
916 usr/lib/ruby/$(PKG_LIBVER)/*/digest.so \
917 usr/lib/ruby/$(PKG_LIBVER)/*/digest/* \
918 ) | ( cd $(1); $(TAR) -xf - )
919 endef
920
921 define Package/ruby-dl/install
922 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
923 usr/lib/ruby/$(PKG_LIBVER)/dl.rb \
924 usr/lib/ruby/$(PKG_LIBVER)/dl \
925 usr/lib/ruby/$(PKG_LIBVER)/*/dl.so \
926 usr/lib/ruby/$(PKG_LIBVER)/*/dl/ \
927 ) | ( cd $(1); $(TAR) -xf - )
928 endef
929
930 define Package/ruby-drb/install
931 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
932 usr/lib/ruby/$(PKG_LIBVER)/drb.rb \
933 usr/lib/ruby/$(PKG_LIBVER)/drb \
934 ) | ( cd $(1); $(TAR) -xf - )
935 endef
936
937 define Package/ruby-enc/install
938 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
939 usr/lib/ruby/$(PKG_LIBVER)/*/enc/encdb.so \
940 usr/lib/ruby/$(PKG_LIBVER)/*/enc/iso_8859_1.so \
941 usr/lib/ruby/$(PKG_LIBVER)/*/enc/utf_* \
942 usr/lib/ruby/$(PKG_LIBVER)/*/enc/euc_jp.so \
943 ) | ( cd $(1); $(TAR) -xf - )
944 endef
945
946 define Package/ruby-enc-extra/install
947 ( cd $(PKG_INSTALL_DIR); $(TAR) \
948 --exclude=usr/lib/ruby/$(PKG_LIBVER)/*/enc/encdb.so \
949 --exclude=usr/lib/ruby/$(PKG_LIBVER)/*/enc/iso_8859_1.so \
950 --exclude=usr/lib/ruby/$(PKG_LIBVER)/*/enc/utf_* \
951 --exclude=usr/lib/ruby/$(PKG_LIBVER)/*/enc/euc_jp.so \
952 -cf - \
953 usr/lib/ruby/$(PKG_LIBVER)/*/enc \
954 ) | ( cd $(1); $(TAR) -xf - )
955 endef
956
957 define Package/ruby-erb/install
958 $(INSTALL_DIR) $(1)/usr/bin
959 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/erb $(1)/usr/bin/
960 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)/
961 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/erb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
962 endef
963
964 define Package/ruby-fiddle/install
965 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
966 usr/lib/ruby/$(PKG_LIBVER)/fiddle.rb \
967 usr/lib/ruby/$(PKG_LIBVER)/fiddle/ \
968 usr/lib/ruby/$(PKG_LIBVER)/*/fiddle.so \
969 ) | ( cd $(1); $(TAR) -xf - )
970 endef
971
972 define Package/ruby-filelib/install
973 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
974 usr/lib/ruby/$(PKG_LIBVER)/tmpdir.rb \
975 usr/lib/ruby/$(PKG_LIBVER)/tempfile.rb \
976 usr/lib/ruby/$(PKG_LIBVER)/pathname.rb \
977 usr/lib/ruby/$(PKG_LIBVER)/*/pathname.so \
978 usr/lib/ruby/$(PKG_LIBVER)/find.rb \
979 usr/lib/ruby/$(PKG_LIBVER)/fileutils.rb \
980 ) | ( cd $(1); $(TAR) -xf - )
981 endef
982
983 define Package/ruby-gdbm/install
984 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
985 usr/lib/ruby/$(PKG_LIBVER)/*/gdbm.so \
986 ) | ( cd $(1); $(TAR) -xf - )
987 endef
988
989 define Package/ruby-gems/install
990 $(INSTALL_DIR) $(1)/usr/bin
991 $(CP) $(PKG_INSTALL_DIR)/usr/bin/gem $(1)/usr/bin/
992 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
993 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/ubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
994 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
995 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rubygems $(1)/usr/lib/ruby/$(PKG_LIBVER)/
996 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
997 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
998 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/doc
999 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/cache
1000 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/extensions
1001 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/build_info
1002 endef
1003
1004 define Package/ruby-io-console/install
1005 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1006 usr/lib/ruby/$(PKG_LIBVER)/*/io/console.so \
1007 usr/lib/ruby/$(PKG_LIBVER)/io/console/ \
1008 usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/io-console-*.gemspec \
1009 ) | ( cd $(1); $(TAR) -xf - )
1010 endef
1011
1012 define Package/ruby-irb/install
1013 $(INSTALL_DIR) $(1)/usr/bin
1014 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/irb $(1)/usr/bin/
1015 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1016 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1017 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/irb.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1018 endef
1019
1020 define Package/ruby-json/install
1021 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1022 usr/lib/ruby/$(PKG_LIBVER)/json.rb \
1023 usr/lib/ruby/$(PKG_LIBVER)/json \
1024 usr/lib/ruby/$(PKG_LIBVER)/*/json \
1025 usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/json-*.gemspec \
1026 ) | ( cd $(1); $(TAR) -xf - )
1027 rm -rf \
1028 $(1)/usr/lib/ruby/$(PKG_LIBVER)/psych/json
1029 endef
1030
1031 define Package/ruby-logger/install
1032 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1033 usr/lib/ruby/$(PKG_LIBVER)/logger.rb \
1034 usr/lib/ruby/$(PKG_LIBVER)/syslog/logger.rb \
1035 usr/lib/ruby/$(PKG_LIBVER)/*/syslog.so \
1036 ) | ( cd $(1); $(TAR) -xf - )
1037 endef
1038
1039 define Package/ruby-math/install
1040 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1041 usr/lib/ruby/$(PKG_LIBVER)/prime.rb \
1042 usr/lib/ruby/$(PKG_LIBVER)/mathn.rb \
1043 usr/lib/ruby/$(PKG_LIBVER)/cmath.rb \
1044 usr/lib/ruby/$(PKG_LIBVER)/complex.rb \
1045 usr/lib/ruby/$(PKG_LIBVER)/rational.rb \
1046 usr/lib/ruby/$(PKG_LIBVER)/*/mathn \
1047 usr/lib/ruby/$(PKG_LIBVER)/matrix.rb \
1048 usr/lib/ruby/$(PKG_LIBVER)/matrix \
1049 ) | ( cd $(1); $(TAR) -xf - )
1050 endef
1051
1052 define Package/ruby-minitest/install
1053 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1054 usr/lib/ruby/$(PKG_LIBVER)/minitest/ \
1055 usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/minitest-*.gemspec \
1056 ) | ( cd $(1); $(TAR) -xf - )
1057 endef
1058
1059 define Package/ruby-mkmf/install
1060 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1061 usr/lib/ruby/$(PKG_LIBVER)/mkmf.rb \
1062 usr/lib/ruby/$(PKG_LIBVER)/un.rb \
1063 ) | ( cd $(1); $(TAR) -xf - )
1064 endef
1065
1066 define Package/ruby-multithread/install
1067 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1068 usr/lib/ruby/$(PKG_LIBVER)/monitor.rb \
1069 usr/lib/ruby/$(PKG_LIBVER)/timeout.rb \
1070 usr/lib/ruby/$(PKG_LIBVER)/thwait.rb \
1071 usr/lib/ruby/$(PKG_LIBVER)/mutex_m.rb \
1072 usr/lib/ruby/$(PKG_LIBVER)/sync.rb \
1073 usr/lib/ruby/$(PKG_LIBVER)/*/thread.so \
1074 usr/lib/ruby/$(PKG_LIBVER)/*/io/wait.so \
1075 usr/lib/ruby/$(PKG_LIBVER)/*/io/nonblock.so \
1076 ) | ( cd $(1); $(TAR) -xf - )
1077 endef
1078
1079 define Package/ruby-net/install
1080 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1081 usr/lib/ruby/$(PKG_LIBVER)/open-uri.rb \
1082 usr/lib/ruby/$(PKG_LIBVER)/net/* \
1083 ) | ( cd $(1); $(TAR) -xf - )
1084 endef
1085
1086 define Package/ruby-nkf/install
1087 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1088 usr/lib/ruby/$(PKG_LIBVER)/kconv.rb \
1089 usr/lib/ruby/$(PKG_LIBVER)/*/nkf.so \
1090 ) | ( cd $(1); $(TAR) -xf - )
1091 endef
1092
1093 define Package/ruby-openssl/install
1094 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1095 usr/lib/ruby/$(PKG_LIBVER)/openssl \
1096 usr/lib/ruby/$(PKG_LIBVER)/openssl.rb \
1097 usr/lib/ruby/$(PKG_LIBVER)/*/openssl.so \
1098 ) | ( cd $(1); $(TAR) -xf - )
1099 endef
1100
1101 define Package/ruby-optparse/install
1102 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1103 usr/lib/ruby/$(PKG_LIBVER)/optparse.rb \
1104 usr/lib/ruby/$(PKG_LIBVER)/optparse \
1105 ) | ( cd $(1); $(TAR) -xf - )
1106 endef
1107
1108 define Package/ruby-patterns/install
1109 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1110 usr/lib/ruby/$(PKG_LIBVER)/observer.rb \
1111 usr/lib/ruby/$(PKG_LIBVER)/singleton.rb \
1112 usr/lib/ruby/$(PKG_LIBVER)/forwardable.rb \
1113 ) | ( cd $(1); $(TAR) -xf - )
1114 endef
1115
1116 define Package/ruby-prettyprint/install
1117 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1118 usr/lib/ruby/$(PKG_LIBVER)/pp.rb \
1119 usr/lib/ruby/$(PKG_LIBVER)/prettyprint.rb \
1120 ) | ( cd $(1); $(TAR) -xf - )
1121 endef
1122
1123 define Package/ruby-pstore/install
1124 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1125 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/pstore.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1126 endef
1127
1128 define Package/ruby-psych/install
1129 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1130 usr/lib/ruby/$(PKG_LIBVER)/psych \
1131 usr/lib/ruby/$(PKG_LIBVER)/psych.rb \
1132 usr/lib/ruby/$(PKG_LIBVER)/*/psych.so \
1133 usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/psych-*.gemspec \
1134 ) | ( cd $(1); $(TAR) -xf - )
1135 endef
1136
1137 define Package/ruby-rdoc/install
1138 $(INSTALL_DIR) $(1)/usr/bin
1139 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rdoc $(1)/usr/bin/
1140 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ri $(1)/usr/bin/
1141 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1142 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1143 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rdoc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1144 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1145 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1146 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/rdoc-*.gemspec \
1147 $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/
1148 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/rdoc-* \
1149 $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1150 endef
1151
1152 define Package/ruby-racc/install
1153 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1154 usr/lib/ruby/$(PKG_LIBVER)/racc \
1155 usr/lib/ruby/$(PKG_LIBVER)/*/racc/*.so \
1156 ) | ( cd $(1); $(TAR) -xf - )
1157 endef
1158
1159 define Package/ruby-rake/install
1160 $(INSTALL_DIR) $(1)/usr/bin
1161 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rake $(1)/usr/bin/
1162 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1163 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1164 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rake $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1165 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1166 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1167 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/rake-*.gemspec \
1168 $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/
1169 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/rake-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1170 endef
1171
1172 define Package/ruby-rbconfig/install
1173 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1174 usr/lib/ruby/$(PKG_LIBVER)/*/rbconfig.rb \
1175 usr/lib/ruby/$(PKG_LIBVER)/rbconfig/* \
1176 usr/lib/ruby/$(PKG_LIBVER)/*/rbconfig/*.so \
1177 ) | ( cd $(1); $(TAR) -xf - )
1178 endef
1179
1180 define Package/ruby-readline/install
1181 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1182 usr/lib/ruby/$(PKG_LIBVER)/*/readline.so \
1183 ) | ( cd $(1); $(TAR) -xf - )
1184 endef
1185
1186 define Package/ruby-rexml/install
1187 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1188 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rexml $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1189 endef
1190
1191 define Package/ruby-rinda/install
1192 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1193 usr/lib/ruby/$(PKG_LIBVER)/rinda \
1194 ) | ( cd $(1); $(TAR) -xf - )
1195 endef
1196
1197 define Package/ruby-ripper/install
1198 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1199 usr/lib/ruby/$(PKG_LIBVER)/ripper.rb \
1200 usr/lib/ruby/$(PKG_LIBVER)/ripper \
1201 usr/lib/ruby/$(PKG_LIBVER)/*/ripper.so \
1202 ) | ( cd $(1); $(TAR) -xf - )
1203 endef
1204
1205 define Package/ruby-rss/install
1206 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1207 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1208 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/rss.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1209 endef
1210
1211 define Package/ruby-sdbm/install
1212 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1213 usr/lib/ruby/$(PKG_LIBVER)/*/sdbm.so \
1214 ) | ( cd $(1); $(TAR) -xf - )
1215 endef
1216
1217 define Package/ruby-shell/install
1218 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1219 usr/lib/ruby/$(PKG_LIBVER)/shell.rb \
1220 usr/lib/ruby/$(PKG_LIBVER)/shell \
1221 ) | ( cd $(1); $(TAR) -xf - )
1222 endef
1223
1224 define Package/ruby-socket/install
1225 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1226 usr/lib/ruby/$(PKG_LIBVER)/gserver.rb \
1227 usr/lib/ruby/$(PKG_LIBVER)/ipaddr.rb \
1228 usr/lib/ruby/$(PKG_LIBVER)/resolv-replace.rb \
1229 usr/lib/ruby/$(PKG_LIBVER)/resolv.rb \
1230 usr/lib/ruby/$(PKG_LIBVER)/socket.rb \
1231 usr/lib/ruby/$(PKG_LIBVER)/*/socket.so \
1232 ) | ( cd $(1); $(TAR) -xf - )
1233 endef
1234
1235 define Package/ruby-testunit/install
1236 $(INSTALL_DIR) $(1)/usr/bin
1237 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/testrb $(1)/usr/bin/
1238 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1239 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/test $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1240 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default
1241 $(INSTALL_DIR) $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems
1242 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/test-unit-*.gemspec $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/specifications/default/
1243 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/test-unit-* $(1)/usr/lib/ruby/gems/$(PKG_LIBVER)/gems/
1244 endef
1245
1246 define Package/ruby-uri/install
1247 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1248 usr/lib/ruby/$(PKG_LIBVER)/uri.rb \
1249 usr/lib/ruby/$(PKG_LIBVER)/uri \
1250 ) | ( cd $(1); $(TAR) -xf - )
1251 endef
1252
1253 define Package/ruby-webrick/install
1254 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1255 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1256 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/webrick.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1257 endef
1258
1259 define Package/ruby-xmlrpc/install
1260 $(INSTALL_DIR) $(1)/usr/lib/ruby/$(PKG_LIBVER)
1261 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1262 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/$(PKG_LIBVER)/xmlrpc.rb $(1)/usr/lib/ruby/$(PKG_LIBVER)/
1263 endef
1264
1265 define Package/ruby-yaml/install
1266 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1267 usr/lib/ruby/$(PKG_LIBVER)/yaml \
1268 usr/lib/ruby/$(PKG_LIBVER)/yaml.rb \
1269 ) | ( cd $(1); $(TAR) -xf - )
1270 endef
1271
1272 define Package/ruby-zlib/install
1273 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1274 usr/lib/ruby/$(PKG_LIBVER)/*/zlib.so \
1275 ) | ( cd $(1); $(TAR) -xf - )
1276 endef
1277
1278 define Build/InstallDev
1279 ( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
1280 . \
1281 ) | ( cd $(1); $(TAR) -xf - )
1282 endef
1283
1284 $(eval $(call BuildPackage,ruby))
1285 $(eval $(call BuildPackage,libruby))
1286 $(eval $(call BuildPackage,ruby-stdlib))
1287 $(eval $(call BuildPackage,ruby-misc))
1288 $(eval $(call BuildPackage,ruby-bigdecimal))
1289 $(eval $(call BuildPackage,ruby-cgi))
1290 $(eval $(call BuildPackage,ruby-csv))
1291 $(eval $(call BuildPackage,ruby-datetime))
1292 $(eval $(call BuildPackage,ruby-dbm))
1293 $(eval $(call BuildPackage,ruby-debuglib))
1294 $(eval $(call BuildPackage,ruby-digest))
1295 $(eval $(call BuildPackage,ruby-dl))
1296 $(eval $(call BuildPackage,ruby-drb))
1297 $(eval $(call BuildPackage,ruby-enc))
1298 $(eval $(call BuildPackage,ruby-enc-extra))
1299 $(eval $(call BuildPackage,ruby-erb))
1300 $(eval $(call BuildPackage,ruby-gdbm))
1301 $(eval $(call BuildPackage,ruby-gems))
1302 $(eval $(call BuildPackage,ruby-json))
1303 $(eval $(call BuildPackage,ruby-io-console))
1304 $(eval $(call BuildPackage,ruby-irb))
1305 $(eval $(call BuildPackage,ruby-fiddle))
1306 $(eval $(call BuildPackage,ruby-filelib))
1307 $(eval $(call BuildPackage,ruby-logger))
1308 $(eval $(call BuildPackage,ruby-math))
1309 $(eval $(call BuildPackage,ruby-minitest))
1310 $(eval $(call BuildPackage,ruby-mkmf))
1311 $(eval $(call BuildPackage,ruby-multithread))
1312 $(eval $(call BuildPackage,ruby-nkf))
1313 $(eval $(call BuildPackage,ruby-net))
1314 $(eval $(call BuildPackage,ruby-openssl))
1315 $(eval $(call BuildPackage,ruby-optparse))
1316 $(eval $(call BuildPackage,ruby-patterns))
1317 $(eval $(call BuildPackage,ruby-prettyprint))
1318 $(eval $(call BuildPackage,ruby-pstore))
1319 $(eval $(call BuildPackage,ruby-psych))
1320 $(eval $(call BuildPackage,ruby-racc))
1321 $(eval $(call BuildPackage,ruby-rake))
1322 $(eval $(call BuildPackage,ruby-rbconfig))
1323 $(eval $(call BuildPackage,ruby-rdoc))
1324 $(eval $(call BuildPackage,ruby-readline))
1325 $(eval $(call BuildPackage,ruby-rexml))
1326 $(eval $(call BuildPackage,ruby-rinda))
1327 $(eval $(call BuildPackage,ruby-ripper))
1328 $(eval $(call BuildPackage,ruby-rss))
1329 $(eval $(call BuildPackage,ruby-sdbm))
1330 $(eval $(call BuildPackage,ruby-shell))
1331 $(eval $(call BuildPackage,ruby-socket))
1332 $(eval $(call BuildPackage,ruby-testunit))
1333 $(eval $(call BuildPackage,ruby-uri))
1334 $(eval $(call BuildPackage,ruby-webrick))
1335 $(eval $(call BuildPackage,ruby-xmlrpc))
1336 $(eval $(call BuildPackage,ruby-yaml))
1337 $(eval $(call BuildPackage,ruby-zlib))
1338 $(eval $(call HostBuild))