diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/ruby |
Initial import
Diffstat (limited to 'package/ruby')
-rw-r--r-- | package/ruby/Config.in | 7 | ||||
-rw-r--r-- | package/ruby/Makefile | 38 | ||||
-rw-r--r-- | package/ruby/ipkg/ruby.control | 4 | ||||
-rw-r--r-- | package/ruby/patches/100-makefile-in.patch | 11 | ||||
-rw-r--r-- | package/ruby/patches/patch-lib_fileutils_rb | 12 |
5 files changed, 72 insertions, 0 deletions
diff --git a/package/ruby/Config.in b/package/ruby/Config.in new file mode 100644 index 000000000..5fd97df7f --- /dev/null +++ b/package/ruby/Config.in @@ -0,0 +1,7 @@ +config ADK_PACKAGE_RUBY + prompt "ruby.............................. Asian Object-Oriented scripting language" + tristate + default n + help + Ruby1.8 is the interpreter for the ruby language. + diff --git a/package/ruby/Makefile b/package/ruby/Makefile new file mode 100644 index 000000000..f3dcde488 --- /dev/null +++ b/package/ruby/Makefile @@ -0,0 +1,38 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +# == Doc +# * http://wiki.rubygarden.org/Ruby/page/show/RubyOnUCLinux + +include ${TOPDIR}/rules.mk + +PKG_NAME:= ruby +PKG_VERSION:= 1.8.7 +PKG_RELEASE:= 1 +PKG_MD5SUM:= de906850f9a012c12ffc6e9f56fb1b66 +MASTER_SITES:= http://ftp.ruby-lang.org/pub/ruby/stable/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +# Enable some ruby extension / options +post-configure: + echo "option nodynamic" >> ${WRKBUILD}/ext/Setup + echo "socket" >> ${WRKBUILD}/ext/Setup + +# Remove the /usr/lib/libruby.so and keep the static (~1M) ? +post-install: + rm -rf ${WRKINST}/usr/lib/site_ruby + find ${WRKINST}/usr -name "*.h" -delete + cp -a ${WRKINST}/usr ${IDIR_RUBY} + +include ${TOPDIR}/mk/pkg-bottom.mk + diff --git a/package/ruby/ipkg/ruby.control b/package/ruby/ipkg/ruby.control new file mode 100644 index 000000000..090143e3d --- /dev/null +++ b/package/ruby/ipkg/ruby.control @@ -0,0 +1,4 @@ +Package: ruby +Priority: optional +Section: admin +Description: Ruby1.8 is the interpreter for the ruby language. diff --git a/package/ruby/patches/100-makefile-in.patch b/package/ruby/patches/100-makefile-in.patch new file mode 100644 index 000000000..ecfb49ed8 --- /dev/null +++ b/package/ruby/patches/100-makefile-in.patch @@ -0,0 +1,11 @@ +--- ruby-1.8.6.orig/Makefile.in 2007-02-13 00:01:19.000000000 +0100 ++++ ruby-1.8.6/Makefile.in 2007-05-21 22:12:54.000000000 +0200 +@@ -131,7 +131,7 @@ fake.rb: Makefile + if RUBY_PLATFORM =~ /mswin|bccwin|mingw/; \ + class File; \ + remove_const :ALT_SEPARATOR; \ +- ALT_SEPARATOR = "\\"; \ ++ ALT_SEPARATOR = "\\\\"; \ + end; \ + end; \ + ' > $@ diff --git a/package/ruby/patches/patch-lib_fileutils_rb b/package/ruby/patches/patch-lib_fileutils_rb new file mode 100644 index 000000000..767a389d9 --- /dev/null +++ b/package/ruby/patches/patch-lib_fileutils_rb @@ -0,0 +1,12 @@ +$Id$ +--- ruby-1.8.6.orig/lib/fileutils.rb 2007-03-04 16:03:11.000000000 +0100 ++++ ruby-1.8.6/lib/fileutils.rb 2007-05-21 22:14:04.000000000 +0200 +@@ -1026,7 +1026,7 @@ module FileUtils + list.each do |path| + created = nocreate + begin +- File.utime(t, t, path) ++ #File.utime(t, t, path) + rescue Errno::ENOENT + raise if created + File.open(path, 'a') { |