You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1340 lines
35 KiB

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