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.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.ruby-lang.org
/pub
/ruby
/1.8/
17 PKG_MD5SUM
:=3fbb02294a8ca33d4684055adba5ed6f
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 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 #use Build/Configure/Default
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
45 define Package
/ruby
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ruby
$(1)/usr
/bin
/
50 $(eval
$(call BuildPackage
,ruby
))
52 $(eval
$(call RequireCommand
,/usr
/bin
/ruby
, \
53 Ruby requires ruby installed on the host-system. \