2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.ruby-lang.org
/pub
/ruby
/1.8/
17 PKG_MD5SUM
:=e558a0e00ae318d43bf6ff9af452bad2
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Ruby object-oriented scripting language interpreter
30 Ruby is the interpreted scripting language for quick and
\\\
31 easy object-oriented programming. It has many features to
\\\
32 process text files and to do system management tasks
(as in
\\\
33 perl
). It is simple
, straight-forward
, and extensible.
34 URL
:=http
://www.ruby-lang.org
/
37 define Package
/libruby
40 TITLE
:=Libraries necessary to run Ruby
41 URL
:=http
://www.ruby-lang.org
/
48 ac_cv_func_setpgrp_void
=yes
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
55 define Package
/ruby
/install
56 $(INSTALL_DIR
) $(1)/usr
/bin
57 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ruby
$(1)/usr
/bin
/
60 define Package
/libruby
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libruby.so
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,ruby
))
66 $(eval
$(call BuildPackage
,libruby
))
68 $(eval
$(call RequireCommand
,ruby
, \
69 $(PKG_NAME
) requires ruby installed on the host-system. \