2007-01-10 00:53:05 +00:00
|
|
|
#
|
2007-01-09 23:35:16 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ruby
|
2007-07-16 13:15:11 +00:00
|
|
|
PKG_VERSION:=1.8.6
|
|
|
|
PKG_RELEASE:=2
|
2007-01-09 23:35:16 +00:00
|
|
|
|
2007-07-16 13:15:11 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-01-09 23:35:16 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.ruby-lang.org/pub/ruby/1.8/
|
2007-07-16 13:15:11 +00:00
|
|
|
PKG_MD5SUM:=e558a0e00ae318d43bf6ff9af452bad2
|
2007-01-09 23:35:16 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ruby
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2007-07-16 13:15:11 +00:00
|
|
|
DEPENDS:=+libruby
|
2007-01-09 23:35:16 +00:00
|
|
|
TITLE:=Ruby object-oriented scripting language interpreter
|
|
|
|
DESCRIPTION:=\
|
|
|
|
Ruby is the interpreted scripting language for quick and \\\
|
|
|
|
easy object-oriented programming. It has many features to \\\
|
|
|
|
process text files and to do system management tasks (as in \\\
|
|
|
|
perl). It is simple, straight-forward, and extensible.
|
|
|
|
URL:=http://www.ruby-lang.org/
|
|
|
|
endef
|
|
|
|
|
2007-07-16 13:15:11 +00:00
|
|
|
define Package/libruby
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Libraries necessary to run Ruby
|
|
|
|
URL:=http://www.ruby-lang.org/
|
2007-01-09 23:35:16 +00:00
|
|
|
endef
|
|
|
|
|
2007-07-16 13:15:11 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-ipv6 \
|
|
|
|
, \
|
|
|
|
ac_cv_func_setpgrp_void=yes
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
SHELL="/bin/bash" \
|
|
|
|
all install
|
|
|
|
|
2007-01-09 23:35:16 +00:00
|
|
|
define Package/ruby/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-07-16 13:15:11 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libruby/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libruby.so* $(1)/usr/lib/
|
2007-01-09 23:35:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ruby))
|
2007-07-16 13:15:11 +00:00
|
|
|
$(eval $(call BuildPackage,libruby))
|
2007-01-09 23:35:16 +00:00
|
|
|
|
2007-07-16 13:15:11 +00:00
|
|
|
$(eval $(call RequireCommand,ruby, \
|
2007-03-24 23:01:10 +00:00
|
|
|
$(PKG_NAME) requires ruby installed on the host-system. \
|
2007-01-09 23:35:16 +00:00
|
|
|
))
|