1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.ruby-lang.org
/pub
/ruby
/1.8/
16 PKG_MD5SUM
:=bd8c2e593e1fa4b01fd98eaf016329bb
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
27 TITLE
:=Ruby object-oriented scripting language interpreter
29 Ruby is the interpreted scripting language for quick and
\\\
30 easy object-oriented programming. It has many features to
\\\
31 process text files and to do system management tasks
(as in
\\\
32 perl
). It is simple
, straight-forward
, and extensible.
33 URL
:=http
://www.ruby-lang.org
/
36 #use Build/Configure/Default
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 define Package
/ruby
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/ruby
$(1)/usr
/bin
/
49 $(eval
$(call BuildPackage
,ruby
))
51 $(eval
$(call RequireCommand
,/usr
/bin
/ruby
, \
52 Ruby requires ruby installed on the host-system. \