4aad8519a167344a84762b58f1b13b2979aeeb26
[openwrt/svn-archive/archive.git] / lang / ruby / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ruby
12 PKG_VERSION:=1.8.5-p12
13 PKG_RELEASE:=1
14
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
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ruby
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Ruby object-oriented scripting language interpreter
29 DESCRIPTION:=\
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/
35 endef
36
37 #use Build/Configure/Default
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 SHELL="/bin/bash" \
43 all install
44 endef
45
46 define Package/ruby/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,ruby))
52
53 $(eval $(call RequireCommand,/usr/bin/ruby, \
54 Ruby requires ruby installed on the host-system. \
55 ))