From 968aec402d2b80cd6b8a959257970fe6e9d38270 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Tue, 22 Jan 2008 14:21:57 +0000 Subject: Adding a fully working copy of Ruby. git-svn-id: http://svn.telesphoreo.org/trunk@18 514c082c-b64e-11dc-b46d-3d985efe055d --- data/ruby/_metadata/version | 2 +- data/ruby/make.sh | 8 ++++-- data/ruby/ruby-1.8.6-p111.tar.gz | Bin 0 -> 4547579 bytes data/ruby/ruby-1.9.0-0.tar.gz | Bin 5923616 -> 0 bytes data/ruby/stackend.diff | 12 ++++++++ data/ruby/tools.diff | 28 +++++++++++++------ data/rubygems/_metadata/description | 2 ++ data/rubygems/_metadata/license | 53 ++++++++++++++++++++++++++++++++++++ data/rubygems/_metadata/maintainer | 1 + data/rubygems/_metadata/priority | 1 + data/rubygems/_metadata/ruby.dep | 1 + data/rubygems/_metadata/section | 1 + data/rubygems/_metadata/version | 1 + data/rubygems/make.sh | 7 +++++ data/rubygems/rubygems-1.0.1.tgz | Bin 0 -> 246165 bytes 15 files changed, 106 insertions(+), 11 deletions(-) create mode 100644 data/ruby/ruby-1.8.6-p111.tar.gz delete mode 100644 data/ruby/ruby-1.9.0-0.tar.gz create mode 100644 data/ruby/stackend.diff create mode 100644 data/rubygems/_metadata/description create mode 100644 data/rubygems/_metadata/license create mode 120000 data/rubygems/_metadata/maintainer create mode 100644 data/rubygems/_metadata/priority create mode 120000 data/rubygems/_metadata/ruby.dep create mode 100644 data/rubygems/_metadata/section create mode 100644 data/rubygems/_metadata/version create mode 100644 data/rubygems/make.sh create mode 100644 data/rubygems/rubygems-1.0.1.tgz diff --git a/data/ruby/_metadata/version b/data/ruby/_metadata/version index 1b2c3b824..6aa428f33 100644 --- a/data/ruby/_metadata/version +++ b/data/ruby/_metadata/version @@ -1 +1 @@ -1.9.0-0 +1.8.6-p111 diff --git a/data/ruby/make.sh b/data/ruby/make.sh index 6618a55da..9815e2cf9 100644 --- a/data/ruby/make.sh +++ b/data/ruby/make.sh @@ -2,7 +2,11 @@ pkg:extract cd * pkg:patch autoconf -pkg:configure ac_cv_func_setpgrp_void=yes rb_cv_stack_grow_dir=-1 --disable-rpath --enable-shared +pkg:configure ac_cv_func_setpgrp_void=yes rb_cv_binary_elf=no rb_cv_stack_grow_dir=-1 rb_cv_bsd_signal=yes ac_cv_type_getgroups=gid_t ac_cv_c_stack_direction=1 ac_cv_func_memcmp_working=yes --enable-wide-getaddrinfo make +cd ext/iconv +touch iconv.c +make LOCAL_LIBS=-liconv +cd ../.. pkg:install -pkg: rm -rf /usr/share +pkg: rm -f /usr/lib/libruby-static.a diff --git a/data/ruby/ruby-1.8.6-p111.tar.gz b/data/ruby/ruby-1.8.6-p111.tar.gz new file mode 100644 index 000000000..a5e774698 Binary files /dev/null and b/data/ruby/ruby-1.8.6-p111.tar.gz differ diff --git a/data/ruby/ruby-1.9.0-0.tar.gz b/data/ruby/ruby-1.9.0-0.tar.gz deleted file mode 100644 index 8e2896f19..000000000 Binary files a/data/ruby/ruby-1.9.0-0.tar.gz and /dev/null differ diff --git a/data/ruby/stackend.diff b/data/ruby/stackend.diff new file mode 100644 index 000000000..2bbb5fe40 --- /dev/null +++ b/data/ruby/stackend.diff @@ -0,0 +1,12 @@ +diff -ru ruby-1.8.6-p111/gc.c ruby-1.8.6-p111+iPhone/gc.c +--- ruby-1.8.6-p111/gc.c 2007-03-03 07:30:46.000000000 +0000 ++++ ruby-1.8.6-p111+iPhone/gc.c 2008-01-14 10:08:59.000000000 +0000 +@@ -1365,7 +1367,7 @@ + setjmp(save_regs_gc_mark); + mark_locations_array((VALUE*)save_regs_gc_mark, sizeof(save_regs_gc_mark) / sizeof(VALUE *)); + #if STACK_GROW_DIRECTION < 0 +- rb_gc_mark_locations((VALUE*)STACK_END, rb_gc_stack_start); ++ rb_gc_mark_locations((VALUE*)((uintptr_t)STACK_END & ~0xf), rb_gc_stack_start); + #elif STACK_GROW_DIRECTION > 0 + rb_gc_mark_locations(rb_gc_stack_start, (VALUE*)STACK_END + 1); + #else diff --git a/data/ruby/tools.diff b/data/ruby/tools.diff index 5dc451bb1..e2e6723bf 100644 --- a/data/ruby/tools.diff +++ b/data/ruby/tools.diff @@ -1,7 +1,7 @@ -diff -r -u ruby-1.9.0-0/configure.in ruby-1.9.0-0+iPhone/configure.in ---- ruby-1.9.0-0/configure.in 2007-12-25 13:55:45.000000000 +0000 -+++ ruby-1.9.0-0+iPhone/configure.in 2008-01-01 22:44:55.000000000 +0000 -@@ -1124,7 +1124,7 @@ +diff -ru ruby-1.8.6-p111/configure.in ruby-1.8.6-p111+iPhone/configure.in +--- ruby-1.8.6-p111/configure.in 2007-09-07 07:38:51.000000000 +0000 ++++ ruby-1.8.6-p111+iPhone/configure.in 2008-01-14 07:16:01.000000000 +0000 +@@ -1052,7 +1052,7 @@ rhapsody*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'} : ${LDFLAGS=""} rb_cv_dlopen=yes ;; @@ -10,16 +10,28 @@ diff -r -u ruby-1.9.0-0/configure.in ruby-1.9.0-0+iPhone/configure.in : ${LDFLAGS=""} : ${LIBPATHENV=DYLD_LIBRARY_PATH} rb_cv_dlopen=yes ;; -@@ -1270,7 +1270,7 @@ +@@ -1172,15 +1172,15 @@ + + case "$target_os" in + linux* | gnu* | k*bsd*-gnu) +- STRIP='strip -S -x';; ++ STRIP=${STRIP}' -S -x';; + nextstep*) +- STRIP='strip -A -n';; ++ STRIP=${STRIP}' -A -n';; + openstep*) +- STRIP='strip -A -n';; ++ STRIP=${STRIP}' -A -n';; rhapsody*) - STRIP='strip -A -n';; +- STRIP='strip -A -n';; ++ STRIP=${STRIP}' -A -n';; darwin*) - STRIP='strip -A -n';; -+ STRIP='arm-apple-darwin-strip -A -n';; ++ STRIP=${STRIP}' -A -n';; esac EXTSTATIC= -@@ -1462,7 +1462,7 @@ +@@ -1372,7 +1372,7 @@ ;; darwin*) LIBRUBY_SO='lib$(RUBY_SO_NAME).$(MAJOR).$(MINOR).$(TEENY).dylib' diff --git a/data/rubygems/_metadata/description b/data/rubygems/_metadata/description new file mode 100644 index 000000000..005d9a0c9 --- /dev/null +++ b/data/rubygems/_metadata/description @@ -0,0 +1,2 @@ +this package isn't described yet +This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later. diff --git a/data/rubygems/_metadata/license b/data/rubygems/_metadata/license new file mode 100644 index 000000000..db88c5e11 --- /dev/null +++ b/data/rubygems/_metadata/license @@ -0,0 +1,53 @@ +RubyGems is copyrighted free software by Chad Fowler, Rich Kilmer, Jim +Weirich and others. You can redistribute it and/or modify it under +either the terms of the GPL (see the GPL.txt file), or the conditions +below: + + 1. You may make and give away verbatim copies of the source form of the + software without restriction, provided that you duplicate all of the + original copyright notices and associated disclaimers. + + 2. You may modify your copy of the software in any way, provided that + you do at least ONE of the following: + + a) place your modifications in the Public Domain or otherwise + make them Freely Available, such as by posting said + modifications to Usenet or an equivalent medium, or by allowing + the author to include your modifications in the software. + + b) use the modified software only within your corporation or + organization. + + c) rename any non-standard executables so the names do not conflict + with standard executables, which must also be provided. + + d) make other distribution arrangements with the author. + + 3. You may distribute the software in object code or executable + form, provided that you do at least ONE of the following: + + a) distribute the executables and library files of the software, + together with instructions (in the manual page or equivalent) + on where to get the original distribution. + + b) accompany the distribution with the machine-readable source of + the software. + + c) give non-standard executables non-standard names, with + instructions on where to get the original software distribution. + + d) make other distribution arrangements with the author. + + 4. You may modify and include the part of the software into any other + software (possibly commercial). + + 5. The scripts and library files supplied as input to or produced as + output from the software do not automatically fall under the + copyright of the software, but belong to whomever generated them, + and may be sold commercially, and may be aggregated with this + software. + + 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. diff --git a/data/rubygems/_metadata/maintainer b/data/rubygems/_metadata/maintainer new file mode 120000 index 000000000..0fa66e077 --- /dev/null +++ b/data/rubygems/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/saurik \ No newline at end of file diff --git a/data/rubygems/_metadata/priority b/data/rubygems/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/rubygems/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/rubygems/_metadata/ruby.dep b/data/rubygems/_metadata/ruby.dep new file mode 120000 index 000000000..3fd972c1c --- /dev/null +++ b/data/rubygems/_metadata/ruby.dep @@ -0,0 +1 @@ +../../ruby \ No newline at end of file diff --git a/data/rubygems/_metadata/section b/data/rubygems/_metadata/section new file mode 100644 index 000000000..463a353df --- /dev/null +++ b/data/rubygems/_metadata/section @@ -0,0 +1 @@ +programming diff --git a/data/rubygems/_metadata/version b/data/rubygems/_metadata/version new file mode 100644 index 000000000..7dea76edb --- /dev/null +++ b/data/rubygems/_metadata/version @@ -0,0 +1 @@ +1.0.1 diff --git a/data/rubygems/make.sh b/data/rubygems/make.sh new file mode 100644 index 000000000..a8de2a0bc --- /dev/null +++ b/data/rubygems/make.sh @@ -0,0 +1,7 @@ +shopt -s extglob +pkg:extract +cd * +ruby setup.rb --prefix="${PKG_DEST}/usr" +pkg: sed -i -e 's/^#!.*/#!\/usr\/bin\/ruby/' /usr/bin/gem /usr/bin/update_rubygems +pkg: mkdir -p /usr/lib/ruby/site_ruby/1.8 +mv "${PKG_DEST}"/usr/lib/!(ruby) "${PKG_DEST}"/usr/lib/ruby/site_ruby/1.8 diff --git a/data/rubygems/rubygems-1.0.1.tgz b/data/rubygems/rubygems-1.0.1.tgz new file mode 100644 index 000000000..6e831cad5 Binary files /dev/null and b/data/rubygems/rubygems-1.0.1.tgz differ -- cgit v1.2.3