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
12 PKG_VERSION:=1.8.5-p12
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:=d7d12dd9124c9b7d55cdbbee313e3931
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)" \
46 define Package/ruby/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/
51 $(eval $(call BuildPackage,ruby))
53 $(eval $(call RequireCommand,/usr/bin/ruby, \
54 Ruby requires ruby installed on the host-system. \