summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca>2010-09-12 03:50:05 +0000
committertaca <taca>2010-09-12 03:50:05 +0000
commit4341fc375e4a58611c6b8d64a1a6ebbbea8b1722 (patch)
tree6e6b5c7d75328af77a376b1eb92a50b257c9d0ae
parentd01538992de9758973af90d069305f736573a0ba (diff)
downloadpkgsrc-4341fc375e4a58611c6b8d64a1a6ebbbea8b1722.tar.gz
Importing ruby19-base 1.9.2pl0.
This package is Ruby 1.9 based release. And this new release has several features and some incompatibility. Please refer changes from Ruby 1.8.7: http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_0/NEWS http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_0/NEWS *Note* NetBSD isn't "supported" but "perhaps" platform by Ruby. Please refer about it "Supported Platform" in http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9-2-is-released/.
-rw-r--r--lang/ruby19-base/ALTERNATIVES8
-rw-r--r--lang/ruby19-base/DEINSTALL12
-rw-r--r--lang/ruby19-base/DESCR19
-rw-r--r--lang/ruby19-base/INSTALL15
-rw-r--r--lang/ruby19-base/MESSAGE14
-rw-r--r--lang/ruby19-base/Makefile151
-rw-r--r--lang/ruby19-base/PLIST860
-rw-r--r--lang/ruby19-base/distinfo26
-rw-r--r--lang/ruby19-base/hacks.mk21
-rw-r--r--lang/ruby19-base/options.mk16
-rw-r--r--lang/ruby19-base/patches/patch-aa39
-rw-r--r--lang/ruby19-base/patches/patch-ab43
-rw-r--r--lang/ruby19-base/patches/patch-ac43
-rw-r--r--lang/ruby19-base/patches/patch-ad19
-rw-r--r--lang/ruby19-base/patches/patch-ae35
-rw-r--r--lang/ruby19-base/patches/patch-af15
-rw-r--r--lang/ruby19-base/patches/patch-ag38
-rw-r--r--lang/ruby19-base/patches/patch-ah18
-rw-r--r--lang/ruby19-base/patches/patch-ai27
-rw-r--r--lang/ruby19-base/patches/patch-aj21
-rw-r--r--lang/ruby19-base/patches/patch-ak15
-rw-r--r--lang/ruby19-base/patches/patch-al49
-rw-r--r--lang/ruby19-base/patches/patch-am24
-rw-r--r--lang/ruby19-base/patches/patch-an14
-rw-r--r--lang/ruby19-base/patches/patch-ao49
-rw-r--r--lang/ruby19-base/patches/patch-ap19
-rw-r--r--lang/ruby19-base/patches/patch-aq31
-rw-r--r--lang/ruby19-base/patches/patch-ar27
-rw-r--r--lang/ruby19-base/patches/patch-as39
-rw-r--r--lang/ruby19-base/patches/patch-at16
-rw-r--r--lang/ruby19-base/patches/patch-au37
31 files changed, 1760 insertions, 0 deletions
diff --git a/lang/ruby19-base/ALTERNATIVES b/lang/ruby19-base/ALTERNATIVES
new file mode 100644
index 00000000000..f91622b5407
--- /dev/null
+++ b/lang/ruby19-base/ALTERNATIVES
@@ -0,0 +1,8 @@
+bin/erb @PREFIX@/bin/erb@RUBY_VER@
+bin/gem @PREFIX@/bin/gem@RUBY_VER@
+bin/irb @PREFIX@/bin/irb@RUBY_VER@
+bin/rake @PREFIX@/bin/rake@RUBY_VER@
+bin/rdoc @PREFIX@/bin/rdoc@RUBY_VER@
+bin/ri @PREFIX@/bin/ri@RUBY_VER@
+bin/ruby @PREFIX@/bin/@RUBY_NAME@
+bin/testrb @PREFIX@/bin/testrb@RUBY_VER@
diff --git a/lang/ruby19-base/DEINSTALL b/lang/ruby19-base/DEINSTALL
new file mode 100644
index 00000000000..a122542c6f3
--- /dev/null
+++ b/lang/ruby19-base/DEINSTALL
@@ -0,0 +1,12 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+PREFIX="@PREFIX@"
+RUBY_GEM_BASE="${PREFIX}/@RUBY_GEM_BASE@"
+RUBY_SITERIDIR="${PREFIX}/@RUBY_SITERIDIR@"
+
+case ${STAGE} in
+DEINSTALL)
+ rm -f ${RUBY_SITERIDIR}/created.rid
+ ;;
+esac
+exit
diff --git a/lang/ruby19-base/DESCR b/lang/ruby19-base/DESCR
new file mode 100644
index 00000000000..cfec9ce4aa8
--- /dev/null
+++ b/lang/ruby19-base/DESCR
@@ -0,0 +1,19 @@
+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.
+
+Features of Ruby are shown below.
+
+ + Simple Syntax
+ + *Normal* Object-Oriented features (ex. class, method calls)
+ + *Advanced* Object-Oriented features (ex. Mix-in, Singleton-method)
+ + Operator Overloading
+ + Exception Handling
+ + Iterators and Closures
+ + Garbage Collection
+ + Dynamic Loading of Object files (on some architecture)
+ + Highly Portable (works on many UNIX machines, and on DOS,
+ Windows, Mac, BeOS etc.)
+
+This package is Ruby 1.9 based release.
diff --git a/lang/ruby19-base/INSTALL b/lang/ruby19-base/INSTALL
new file mode 100644
index 00000000000..45776aca658
--- /dev/null
+++ b/lang/ruby19-base/INSTALL
@@ -0,0 +1,15 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+DATE="@DATE@"
+PREFIX="@PREFIX@"
+RUBY_SITERIDIR="${PREFIX}/@RUBY_SITERIDIR@"
+rid="${RUBY_SITERIDIR}/created.rid"
+
+case ${STAGE} in
+POST-INSTALL)
+ if [ -d ${RUBY_SITERIDIR} ]; then
+ ${DATE} > ${rid}
+ fi
+ ;;
+esac
+exit
diff --git a/lang/ruby19-base/MESSAGE b/lang/ruby19-base/MESSAGE
new file mode 100644
index 00000000000..1c38ec23c6c
--- /dev/null
+++ b/lang/ruby19-base/MESSAGE
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Note that this is a minimal package.
+
+The original Ruby ${RUBY_VERSION} distribution includes more extension
+libraries, some of which are provided as separate packages:
+
+ databases/ruby-gdbm: GDBM module
+ devel/ruby-curses: Curses module
+ devel/ruby-readline: readline module
+ x11/ruby-tk: Tk modules
+
+===========================================================================
diff --git a/lang/ruby19-base/Makefile b/lang/ruby19-base/Makefile
new file mode 100644
index 00000000000..13d062da71a
--- /dev/null
+++ b/lang/ruby19-base/Makefile
@@ -0,0 +1,151 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/12 03:50:05 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_SUFFIX}
+CATEGORIES= lang ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+#PKGREVISION=
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby 1.9 based release minimum package
+LICENSE= gnu-gpl-v2 OR ruby-license
+
+RUBY_VERSION= ${RUBY19_VERSION}
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+USE_TOOLS+= pax yacc
+GNU_CONFIGURE= yes
+TEST_TARGET= test
+CONFIGURE_ARGS+= --enable-shared
+WRKSRC= ${RUBY_WRKSRC}
+
+OWN_DIRS= ${RUBY_LIB_BASE}
+MAKE_DIRS= ${RUBY_SITEARCHLIB} ${RUBY_VENDORARCHLIB}
+
+#
+# Don't refrect pkgsrc's INSTALL macro since Ruby expect it could
+# execute by unprivileged user.
+#
+CONFIGURE_ENV+= INSTALL="${INSTALL} ${COPY}" \
+ INSTALL_DATA= INSTALL_PROGRAM= INSTALL_SCRIPT=
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+LIBS.SunOS+= -B static -lsunmath -B dynamic -lm
+LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib
+CONFIGURE_ENV+= LDSHARED="${CC} -G"
+.else
+LIBS.SunOS+= -lm
+.endif
+
+# Ruby build process depends on config.status's content
+CONFIG_STATUS_OVERRIDE= # empty
+
+MAKE_DIRS+= ${RUBY_SITERIDIR}
+FILES_SUBST+= DATE=${DATE:Q}
+
+REQD_DIRS+= ${GEM_HOME}
+REQD_DIRS+= ${GEM_HOME}/cache
+REQD_DIRS+= ${GEM_HOME}/doc
+REQD_DIRS+= ${GEM_HOME}/gems
+
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= pre-install
+SUBST_FILES.conf= lib/rubygems/config_file.rb
+SUBST_SED.conf= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
+SUBST_MESSAGE.conf= Fixing configuration files.
+
+.include "options.mk"
+
+.include "../../lang/ruby/rubyversion.mk"
+
+.if !empty(RUBY_SUFFIX)
+CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX}
+CONFIGURE_ARGS+= --with-soname=${RUBY_NAME}
+CONFIGURE_ARGS+= --with-sitedir=${PREFIX}/${RUBY_SITELIB_BASE}
+CONFIGURE_ARGS+= --with-vendordir=${PREFIX}/${RUBY_VENDORLIB_BASE}
+CONFIGURE_ARGS+= --with-ruby-version=minor
+.endif
+
+#
+# IRIX work around which should be fixed.
+#
+PLIST_VARS+= io
+.if ${OPSYS} != "IRIX"
+PLIST.io= yes
+.endif
+
+#
+# Work around for getucontext(3)
+#
+.if ${OPSYS} == "DragonFly" && ${OS_VERSION} == "1.8.0"
+CONFIGURE_ENV+= ac_cv_header_ucontext_h=no
+.endif
+
+#
+# work around for getaddrinfo(3)
+#
+.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --enable-wide-getaddrinfo
+.endif
+
+DOCS= COPYING COPYING.ja ChangeLog NEWS README \
+ README.EXT README.EXT.ja README.ja ToDo \
+ doc/ChangeLog-1.8.0 doc/ChangeLog-YARV doc/NEWS-1.8.7 \
+ doc/forwardable.rd doc/forwardable.rd.ja \
+ doc/irb/irb-tools.rd.ja doc/irb/irb.rd doc/irb/irb.rd.ja \
+ doc/shell.rd doc/shell.rd.ja
+EXT_DOCS= bigdecimal/bigdecimal_en.html bigdecimal/bigdecimal_ja.html \
+ syslog/syslog.txt
+
+BIGDECIMAL_EXAMPLES= linear.rb nlsolve.rb pi.rb
+OPENSSL_EXAMPLES= c_rehash.rb cert2text.rb certstore.rb cipher.rb \
+ crlstore.rb echo_cli.rb echo_svr.rb gen_csr.rb \
+ smime_read.rb smime_write.rb wget.rb
+
+REPLACE_RUBY_DIRS= bin ext lib sample
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${RUBY_ARCHINC} ${RUBY_ARCHLIB} \
+ ${RUBY_DOC}/irb ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty
+EMPTY_DIRS= generator/template markup/simple_markup
+
+pre-configure:
+ ${RM} -f ${WRKSRC}/ext/curses/extconf.rb
+ ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb
+ ${RM} -f ${WRKSRC}/ext/readline/extconf.rb
+ ${RM} -f ${WRKSRC}/ext/tk/extconf.rb
+
+pre-install:
+ cd ${WRKSRC}/lib; \
+ ${FIND} . \( -name '*.orig' -o -name '*.orig_dist' \) \
+ -exec ${RM} -f {} \;
+.for f in ${EMPTY_DIRS}
+ ${RMDIR} ${WRKSRC}/lib/rdoc/${f} 2>/dev/null || ${TRUE}
+.endfor
+
+post-install:
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/${f:C/^doc\///}
+.endfor
+.for f in ${EXT_DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}
+.endfor
+ cd ${WRKSRC}/ext/ripper; ${PAX} -rw README ${DESTDIR}${PREFIX}/${RUBY_DOC}/ripper
+ cd ${WRKSRC}/ext/stringio; ${PAX} -rw README ${DESTDIR}${PREFIX}/${RUBY_DOC}/stringio
+ cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG}
+.for f in ${BIGDECIMAL_EXAMPLES}
+ ${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \
+ ${DESTDIR}${PREFIX}/${RUBY_EG}/bigdecimal
+.endfor
+.for f in ${OPENSSL_EXAMPLES}
+ ${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \
+ ${DESTDIR}${PREFIX}/${RUBY_EG}/openssl
+.endfor
+ ${RUBY_GENERATE_PLIST}
+
+.include "../../lang/ruby/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/ruby19-base/PLIST b/lang/ruby19-base/PLIST
new file mode 100644
index 00000000000..3063a0217b6
--- /dev/null
+++ b/lang/ruby19-base/PLIST
@@ -0,0 +1,860 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/12 03:50:05 taca Exp $
+bin/erb${RUBY_VER}
+bin/gem${RUBY_VER}
+bin/irb${RUBY_VER}
+bin/rake${RUBY_VER}
+bin/rdoc${RUBY_VER}
+bin/ri${RUBY_VER}
+bin/${RUBY_NAME}
+bin/testrb${RUBY_VER}
+${RUBY_ARCHINC}/ruby/config.h
+${RUBY_INC}/ruby.h
+${RUBY_INC}/ruby/backward/rubyio.h
+${RUBY_INC}/ruby/backward/rubysig.h
+${RUBY_INC}/ruby/backward/st.h
+${RUBY_INC}/ruby/backward/util.h
+${RUBY_INC}/ruby/defines.h
+${RUBY_INC}/ruby/digest.h
+${RUBY_INC}/ruby/dl.h
+${RUBY_INC}/ruby/encoding.h
+${RUBY_INC}/ruby/intern.h
+${RUBY_INC}/ruby/io.h
+${RUBY_INC}/ruby/missing.h
+${RUBY_INC}/ruby/oniguruma.h
+${RUBY_INC}/ruby/re.h
+${RUBY_INC}/ruby/regex.h
+${RUBY_INC}/ruby/ruby.h
+${RUBY_INC}/ruby/st.h
+${RUBY_INC}/ruby/util.h
+${RUBY_INC}/ruby/version.h
+${RUBY_INC}/ruby/vm.h
+lib/libruby${RUBY_VER}-static.a
+lib/libruby${RUBY_VER}.${RUBY_DLEXT}
+${RUBY_NOSHLIBMAJOR}lib/libruby${RUBY_VER}.so.${RUBY_SHLIBMAJOR}
+lib/libruby${RUBY_VER}.${RUBY_DLEXT}.${RUBY_SHLIBVER}
+${RUBY_LIB}/English.rb
+${RUBY_LIB}/abbrev.rb
+${RUBY_LIB}/base64.rb
+${RUBY_LIB}/benchmark.rb
+${RUBY_LIB}/bigdecimal/jacobian.rb
+${RUBY_LIB}/bigdecimal/ludcmp.rb
+${RUBY_LIB}/bigdecimal/math.rb
+${RUBY_LIB}/bigdecimal/newton.rb
+${RUBY_LIB}/bigdecimal/util.rb
+${RUBY_LIB}/cgi.rb
+${RUBY_LIB}/cgi/cookie.rb
+${RUBY_LIB}/cgi/core.rb
+${RUBY_LIB}/cgi/html.rb
+${RUBY_LIB}/cgi/session.rb
+${RUBY_LIB}/cgi/session/pstore.rb
+${RUBY_LIB}/cgi/util.rb
+${RUBY_LIB}/cmath.rb
+${RUBY_LIB}/complex.rb
+${RUBY_LIB}/csv.rb
+${RUBY_LIB}/date.rb
+${RUBY_LIB}/date/delta.rb
+${RUBY_LIB}/date/delta/parser.rb
+${RUBY_LIB}/date/delta/parser.ry
+${RUBY_LIB}/date/format.rb
+${RUBY_LIB}/debug.rb
+${RUBY_LIB}/delegate.rb
+${RUBY_LIB}/digest.rb
+${RUBY_LIB}/digest/hmac.rb
+${RUBY_LIB}/digest/sha2.rb
+${RUBY_LIB}/dl.rb
+${RUBY_LIB}/dl/callback.rb
+${RUBY_LIB}/dl/cparser.rb
+${RUBY_LIB}/dl/func.rb
+${RUBY_LIB}/dl/import.rb
+${RUBY_LIB}/dl/pack.rb
+${RUBY_LIB}/dl/stack.rb
+${RUBY_LIB}/dl/struct.rb
+${RUBY_LIB}/dl/types.rb
+${RUBY_LIB}/dl/value.rb
+${RUBY_LIB}/drb.rb
+${RUBY_LIB}/drb/acl.rb
+${RUBY_LIB}/drb/drb.rb
+${RUBY_LIB}/drb/eq.rb
+${RUBY_LIB}/drb/extserv.rb
+${RUBY_LIB}/drb/extservm.rb
+${RUBY_LIB}/drb/gw.rb
+${RUBY_LIB}/drb/invokemethod.rb
+${RUBY_LIB}/drb/observer.rb
+${RUBY_LIB}/drb/ssl.rb
+${RUBY_LIB}/drb/timeridconv.rb
+${RUBY_LIB}/drb/unix.rb
+${RUBY_LIB}/e2mmap.rb
+${RUBY_LIB}/erb.rb
+${RUBY_LIB}/expect.rb
+${RUBY_LIB}/fileutils.rb
+${RUBY_LIB}/find.rb
+${RUBY_LIB}/forwardable.rb
+${RUBY_LIB}/getoptlong.rb
+${RUBY_LIB}/gserver.rb
+${RUBY_LIB}/ipaddr.rb
+${RUBY_LIB}/irb.rb
+${RUBY_LIB}/irb/cmd/chws.rb
+${RUBY_LIB}/irb/cmd/fork.rb
+${RUBY_LIB}/irb/cmd/help.rb
+${RUBY_LIB}/irb/cmd/load.rb
+${RUBY_LIB}/irb/cmd/nop.rb
+${RUBY_LIB}/irb/cmd/pushws.rb
+${RUBY_LIB}/irb/cmd/subirb.rb
+${RUBY_LIB}/irb/completion.rb
+${RUBY_LIB}/irb/context.rb
+${RUBY_LIB}/irb/ext/change-ws.rb
+${RUBY_LIB}/irb/ext/history.rb
+${RUBY_LIB}/irb/ext/loader.rb
+${RUBY_LIB}/irb/ext/math-mode.rb
+${RUBY_LIB}/irb/ext/multi-irb.rb
+${RUBY_LIB}/irb/ext/save-history.rb
+${RUBY_LIB}/irb/ext/tracer.rb
+${RUBY_LIB}/irb/ext/use-loader.rb
+${RUBY_LIB}/irb/ext/workspaces.rb
+${RUBY_LIB}/irb/extend-command.rb
+${RUBY_LIB}/irb/frame.rb
+${RUBY_LIB}/irb/help.rb
+${RUBY_LIB}/irb/init.rb
+${RUBY_LIB}/irb/input-method.rb
+${RUBY_LIB}/irb/inspector.rb
+${RUBY_LIB}/irb/lc/error.rb
+${RUBY_LIB}/irb/lc/help-message
+${RUBY_LIB}/irb/lc/ja/encoding_aliases.rb
+${RUBY_LIB}/irb/lc/ja/error.rb
+${RUBY_LIB}/irb/lc/ja/help-message
+${RUBY_LIB}/irb/locale.rb
+${RUBY_LIB}/irb/magic-file.rb
+${RUBY_LIB}/irb/notifier.rb
+${RUBY_LIB}/irb/output-method.rb
+${RUBY_LIB}/irb/ruby-lex.rb
+${RUBY_LIB}/irb/ruby-token.rb
+${RUBY_LIB}/irb/slex.rb
+${RUBY_LIB}/irb/src_encoding.rb
+${RUBY_LIB}/irb/version.rb
+${RUBY_LIB}/irb/workspace.rb
+${RUBY_LIB}/irb/ws-for-case-2.rb
+${RUBY_LIB}/irb/xmp.rb
+${RUBY_LIB}/json.rb
+${RUBY_LIB}/json/add/core.rb
+${RUBY_LIB}/json/add/rails.rb
+${RUBY_LIB}/json/common.rb
+${RUBY_LIB}/json/editor.rb
+${RUBY_LIB}/json/ext.rb
+${RUBY_LIB}/json/version.rb
+${RUBY_LIB}/kconv.rb
+${RUBY_LIB}/logger.rb
+${RUBY_LIB}/mathn.rb
+${RUBY_LIB}/matrix.rb
+${RUBY_LIB}/minitest/autorun.rb
+${RUBY_LIB}/minitest/mock.rb
+${RUBY_LIB}/minitest/spec.rb
+${RUBY_LIB}/minitest/unit.rb
+${RUBY_LIB}/mkmf.rb
+${RUBY_LIB}/monitor.rb
+${RUBY_LIB}/mutex_m.rb
+${RUBY_LIB}/net/ftp.rb
+${RUBY_LIB}/net/http.rb
+${RUBY_LIB}/net/https.rb
+${RUBY_LIB}/net/imap.rb
+${RUBY_LIB}/net/pop.rb
+${RUBY_LIB}/net/protocol.rb
+${RUBY_LIB}/net/smtp.rb
+${RUBY_LIB}/net/telnet.rb
+${RUBY_LIB}/observer.rb
+${RUBY_LIB}/open-uri.rb
+${RUBY_LIB}/open3.rb
+${RUBY_LIB}/openssl.rb
+${RUBY_LIB}/openssl/bn.rb
+${RUBY_LIB}/openssl/buffering.rb
+${RUBY_LIB}/openssl/cipher.rb
+${RUBY_LIB}/openssl/digest.rb
+${RUBY_LIB}/openssl/ssl-internal.rb
+${RUBY_LIB}/openssl/ssl.rb
+${RUBY_LIB}/openssl/x509-internal.rb
+${RUBY_LIB}/openssl/x509.rb
+${RUBY_LIB}/optparse.rb
+${RUBY_LIB}/optparse/date.rb
+${RUBY_LIB}/optparse/shellwords.rb
+${RUBY_LIB}/optparse/time.rb
+${RUBY_LIB}/optparse/uri.rb
+${RUBY_LIB}/optparse/version.rb
+${RUBY_LIB}/ostruct.rb
+${RUBY_LIB}/pathname.rb
+${RUBY_LIB}/pp.rb
+${RUBY_LIB}/prettyprint.rb
+${RUBY_LIB}/prime.rb
+${RUBY_LIB}/profile.rb
+${RUBY_LIB}/profiler.rb
+${RUBY_LIB}/pstore.rb
+${RUBY_LIB}/racc/parser.rb
+${RUBY_LIB}/rake.rb
+${RUBY_LIB}/rake/classic_namespace.rb
+${RUBY_LIB}/rake/clean.rb
+${RUBY_LIB}/rake/contrib/compositepublisher.rb
+${RUBY_LIB}/rake/contrib/ftptools.rb
+${RUBY_LIB}/rake/contrib/publisher.rb
+${RUBY_LIB}/rake/contrib/rubyforgepublisher.rb
+${RUBY_LIB}/rake/contrib/sshpublisher.rb
+${RUBY_LIB}/rake/gempackagetask.rb
+${RUBY_LIB}/rake/loaders/makefile.rb
+${RUBY_LIB}/rake/packagetask.rb
+${RUBY_LIB}/rake/rake_test_loader.rb
+${RUBY_LIB}/rake/rdoctask.rb
+${RUBY_LIB}/rake/runtest.rb
+${RUBY_LIB}/rake/tasklib.rb
+${RUBY_LIB}/rake/testtask.rb
+${RUBY_LIB}/rake/win32.rb
+${RUBY_LIB}/rational.rb
+${RUBY_LIB}/rbconfig/datadir.rb
+${RUBY_LIB}/rdoc.rb
+${RUBY_LIB}/rdoc/alias.rb
+${RUBY_LIB}/rdoc/anon_class.rb
+${RUBY_LIB}/rdoc/any_method.rb
+${RUBY_LIB}/rdoc/attr.rb
+${RUBY_LIB}/rdoc/class_module.rb
+${RUBY_LIB}/rdoc/code_object.rb
+${RUBY_LIB}/rdoc/code_objects.rb
+${RUBY_LIB}/rdoc/constant.rb
+${RUBY_LIB}/rdoc/context.rb
+${RUBY_LIB}/rdoc/generator.rb
+${RUBY_LIB}/rdoc/generator/darkfish.rb
+${RUBY_LIB}/rdoc/generator/markup.rb
+${RUBY_LIB}/rdoc/generator/ri.rb
+${RUBY_LIB}/rdoc/generator/template/darkfish/classpage.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/filepage.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/brick.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/brick_link.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/bug.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/bullet_black.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/date.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/find.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/loadingAnimation.gif
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/macFFBgHack.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/package.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/page_green.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/page_white_text.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/page_white_width.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/plugin.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/ruby.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/tag_green.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/wrench.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/wrench_orange.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/zoom.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/index.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/js/darkfish.js
+${RUBY_LIB}/rdoc/generator/template/darkfish/js/jquery.js
+${RUBY_LIB}/rdoc/generator/template/darkfish/js/quicksearch.js
+${RUBY_LIB}/rdoc/generator/template/darkfish/js/thickbox-compressed.js
+${RUBY_LIB}/rdoc/generator/template/darkfish/rdoc.css
+${RUBY_LIB}/rdoc/ghost_method.rb
+${RUBY_LIB}/rdoc/include.rb
+${RUBY_LIB}/rdoc/known_classes.rb
+${RUBY_LIB}/rdoc/markup.rb
+${RUBY_LIB}/rdoc/markup/attribute_manager.rb
+${RUBY_LIB}/rdoc/markup/blank_line.rb
+${RUBY_LIB}/rdoc/markup/document.rb
+${RUBY_LIB}/rdoc/markup/formatter.rb
+${RUBY_LIB}/rdoc/markup/formatter_test_case.rb
+${RUBY_LIB}/rdoc/markup/heading.rb
+${RUBY_LIB}/rdoc/markup/inline.rb
+${RUBY_LIB}/rdoc/markup/list.rb
+${RUBY_LIB}/rdoc/markup/list_item.rb
+${RUBY_LIB}/rdoc/markup/paragraph.rb
+${RUBY_LIB}/rdoc/markup/parser.rb
+${RUBY_LIB}/rdoc/markup/preprocess.rb
+${RUBY_LIB}/rdoc/markup/raw.rb
+${RUBY_LIB}/rdoc/markup/rule.rb
+${RUBY_LIB}/rdoc/markup/to_ansi.rb
+${RUBY_LIB}/rdoc/markup/to_bs.rb
+${RUBY_LIB}/rdoc/markup/to_html.rb
+${RUBY_LIB}/rdoc/markup/to_html_crossref.rb
+${RUBY_LIB}/rdoc/markup/to_rdoc.rb
+${RUBY_LIB}/rdoc/markup/to_test.rb
+${RUBY_LIB}/rdoc/markup/verbatim.rb
+${RUBY_LIB}/rdoc/meta_method.rb
+${RUBY_LIB}/rdoc/normal_class.rb
+${RUBY_LIB}/rdoc/normal_module.rb
+${RUBY_LIB}/rdoc/options.rb
+${RUBY_LIB}/rdoc/parser.rb
+${RUBY_LIB}/rdoc/parser/c.rb
+${RUBY_LIB}/rdoc/parser/perl.rb
+${RUBY_LIB}/rdoc/parser/ruby.rb
+${RUBY_LIB}/rdoc/parser/ruby_tools.rb
+${RUBY_LIB}/rdoc/parser/simple.rb
+${RUBY_LIB}/rdoc/rdoc.rb
+${RUBY_LIB}/rdoc/require.rb
+${RUBY_LIB}/rdoc/ri.rb
+${RUBY_LIB}/rdoc/ri/driver.rb
+${RUBY_LIB}/rdoc/ri/formatter.rb
+${RUBY_LIB}/rdoc/ri/paths.rb
+${RUBY_LIB}/rdoc/ri/store.rb
+${RUBY_LIB}/rdoc/ruby_lex.rb
+${RUBY_LIB}/rdoc/ruby_token.rb
+${RUBY_LIB}/rdoc/single_class.rb
+${RUBY_LIB}/rdoc/stats.rb
+${RUBY_LIB}/rdoc/task.rb
+${RUBY_LIB}/rdoc/text.rb
+${RUBY_LIB}/rdoc/tokenstream.rb
+${RUBY_LIB}/rdoc/top_level.rb
+${RUBY_LIB}/resolv-replace.rb
+${RUBY_LIB}/resolv.rb
+${RUBY_LIB}/rexml/attlistdecl.rb
+${RUBY_LIB}/rexml/attribute.rb
+${RUBY_LIB}/rexml/cdata.rb
+${RUBY_LIB}/rexml/child.rb
+${RUBY_LIB}/rexml/comment.rb
+${RUBY_LIB}/rexml/doctype.rb
+${RUBY_LIB}/rexml/document.rb
+${RUBY_LIB}/rexml/dtd/attlistdecl.rb
+${RUBY_LIB}/rexml/dtd/dtd.rb
+${RUBY_LIB}/rexml/dtd/elementdecl.rb
+${RUBY_LIB}/rexml/dtd/entitydecl.rb
+${RUBY_LIB}/rexml/dtd/notationdecl.rb
+${RUBY_LIB}/rexml/element.rb
+${RUBY_LIB}/rexml/encoding.rb
+${RUBY_LIB}/rexml/encodings/CP-1252.rb
+${RUBY_LIB}/rexml/encodings/EUC-JP.rb
+${RUBY_LIB}/rexml/encodings/ICONV.rb
+${RUBY_LIB}/rexml/encodings/ISO-8859-1.rb
+${RUBY_LIB}/rexml/encodings/ISO-8859-15.rb
+${RUBY_LIB}/rexml/encodings/SHIFT-JIS.rb
+${RUBY_LIB}/rexml/encodings/SHIFT_JIS.rb
+${RUBY_LIB}/rexml/encodings/UNILE.rb
+${RUBY_LIB}/rexml/encodings/US-ASCII.rb
+${RUBY_LIB}/rexml/encodings/UTF-16.rb
+${RUBY_LIB}/rexml/encodings/UTF-8.rb
+${RUBY_LIB}/rexml/entity.rb
+${RUBY_LIB}/rexml/formatters/default.rb
+${RUBY_LIB}/rexml/formatters/pretty.rb
+${RUBY_LIB}/rexml/formatters/transitive.rb
+${RUBY_LIB}/rexml/functions.rb
+${RUBY_LIB}/rexml/instruction.rb
+${RUBY_LIB}/rexml/light/node.rb
+${RUBY_LIB}/rexml/namespace.rb
+${RUBY_LIB}/rexml/node.rb
+${RUBY_LIB}/rexml/output.rb
+${RUBY_LIB}/rexml/parent.rb
+${RUBY_LIB}/rexml/parseexception.rb
+${RUBY_LIB}/rexml/parsers/baseparser.rb
+${RUBY_LIB}/rexml/parsers/lightparser.rb
+${RUBY_LIB}/rexml/parsers/pullparser.rb
+${RUBY_LIB}/rexml/parsers/sax2parser.rb
+${RUBY_LIB}/rexml/parsers/streamparser.rb
+${RUBY_LIB}/rexml/parsers/treeparser.rb
+${RUBY_LIB}/rexml/parsers/ultralightparser.rb
+${RUBY_LIB}/rexml/parsers/xpathparser.rb
+${RUBY_LIB}/rexml/quickpath.rb
+${RUBY_LIB}/rexml/rexml.rb
+${RUBY_LIB}/rexml/sax2listener.rb
+${RUBY_LIB}/rexml/source.rb
+${RUBY_LIB}/rexml/streamlistener.rb
+${RUBY_LIB}/rexml/syncenumerator.rb
+${RUBY_LIB}/rexml/text.rb
+${RUBY_LIB}/rexml/undefinednamespaceexception.rb
+${RUBY_LIB}/rexml/validation/relaxng.rb
+${RUBY_LIB}/rexml/validation/validation.rb
+${RUBY_LIB}/rexml/validation/validationexception.rb
+${RUBY_LIB}/rexml/xmldecl.rb
+${RUBY_LIB}/rexml/xmltokens.rb
+${RUBY_LIB}/rexml/xpath.rb
+${RUBY_LIB}/rexml/xpath_parser.rb
+${RUBY_LIB}/rinda/rinda.rb
+${RUBY_LIB}/rinda/ring.rb
+${RUBY_LIB}/rinda/tuplespace.rb
+${RUBY_LIB}/ripper.rb
+${RUBY_LIB}/ripper/core.rb
+${RUBY_LIB}/ripper/filter.rb
+${RUBY_LIB}/ripper/lexer.rb
+${RUBY_LIB}/ripper/sexp.rb
+${RUBY_LIB}/rss.rb
+${RUBY_LIB}/rss/0.9.rb
+${RUBY_LIB}/rss/1.0.rb
+${RUBY_LIB}/rss/2.0.rb
+${RUBY_LIB}/rss/atom.rb
+${RUBY_LIB}/rss/content.rb
+${RUBY_LIB}/rss/content/1.0.rb
+${RUBY_LIB}/rss/content/2.0.rb
+${RUBY_LIB}/rss/converter.rb
+${RUBY_LIB}/rss/dublincore.rb
+${RUBY_LIB}/rss/dublincore/1.0.rb
+${RUBY_LIB}/rss/dublincore/2.0.rb
+${RUBY_LIB}/rss/dublincore/atom.rb
+${RUBY_LIB}/rss/image.rb
+${RUBY_LIB}/rss/itunes.rb
+${RUBY_LIB}/rss/maker.rb
+${RUBY_LIB}/rss/maker/0.9.rb
+${RUBY_LIB}/rss/maker/1.0.rb
+${RUBY_LIB}/rss/maker/2.0.rb
+${RUBY_LIB}/rss/maker/atom.rb
+${RUBY_LIB}/rss/maker/base.rb
+${RUBY_LIB}/rss/maker/content.rb
+${RUBY_LIB}/rss/maker/dublincore.rb
+${RUBY_LIB}/rss/maker/entry.rb
+${RUBY_LIB}/rss/maker/feed.rb
+${RUBY_LIB}/rss/maker/image.rb
+${RUBY_LIB}/rss/maker/itunes.rb
+${RUBY_LIB}/rss/maker/slash.rb
+${RUBY_LIB}/rss/maker/syndication.rb
+${RUBY_LIB}/rss/maker/taxonomy.rb
+${RUBY_LIB}/rss/maker/trackback.rb
+${RUBY_LIB}/rss/parser.rb
+${RUBY_LIB}/rss/rexmlparser.rb
+${RUBY_LIB}/rss/rss.rb
+${RUBY_LIB}/rss/slash.rb
+${RUBY_LIB}/rss/syndication.rb
+${RUBY_LIB}/rss/taxonomy.rb
+${RUBY_LIB}/rss/trackback.rb
+${RUBY_LIB}/rss/utils.rb
+${RUBY_LIB}/rss/xml-stylesheet.rb
+${RUBY_LIB}/rss/xml.rb
+${RUBY_LIB}/rss/xmlparser.rb
+${RUBY_LIB}/rss/xmlscanner.rb
+${RUBY_LIB}/rubygems.rb
+${RUBY_LIB}/rubygems/builder.rb
+${RUBY_LIB}/rubygems/command.rb
+${RUBY_LIB}/rubygems/command_manager.rb
+${RUBY_LIB}/rubygems/commands/build_command.rb
+${RUBY_LIB}/rubygems/commands/cert_command.rb
+${RUBY_LIB}/rubygems/commands/check_command.rb
+${RUBY_LIB}/rubygems/commands/cleanup_command.rb
+${RUBY_LIB}/rubygems/commands/contents_command.rb
+${RUBY_LIB}/rubygems/commands/dependency_command.rb
+${RUBY_LIB}/rubygems/commands/environment_command.rb
+${RUBY_LIB}/rubygems/commands/fetch_command.rb
+${RUBY_LIB}/rubygems/commands/generate_index_command.rb
+${RUBY_LIB}/rubygems/commands/help_command.rb
+${RUBY_LIB}/rubygems/commands/install_command.rb
+${RUBY_LIB}/rubygems/commands/list_command.rb
+${RUBY_LIB}/rubygems/commands/lock_command.rb
+${RUBY_LIB}/rubygems/commands/mirror_command.rb
+${RUBY_LIB}/rubygems/commands/outdated_command.rb
+${RUBY_LIB}/rubygems/commands/owner_command.rb
+${RUBY_LIB}/rubygems/commands/pristine_command.rb
+${RUBY_LIB}/rubygems/commands/push_command.rb
+${RUBY_LIB}/rubygems/commands/query_command.rb
+${RUBY_LIB}/rubygems/commands/rdoc_command.rb
+${RUBY_LIB}/rubygems/commands/search_command.rb
+${RUBY_LIB}/rubygems/commands/server_command.rb
+${RUBY_LIB}/rubygems/commands/setup_command.rb
+${RUBY_LIB}/rubygems/commands/sources_command.rb
+${RUBY_LIB}/rubygems/commands/specification_command.rb
+${RUBY_LIB}/rubygems/commands/stale_command.rb
+${RUBY_LIB}/rubygems/commands/uninstall_command.rb
+${RUBY_LIB}/rubygems/commands/unpack_command.rb
+${RUBY_LIB}/rubygems/commands/update_command.rb
+${RUBY_LIB}/rubygems/commands/which_command.rb
+${RUBY_LIB}/rubygems/config_file.rb
+${RUBY_LIB}/rubygems/custom_require.rb
+${RUBY_LIB}/rubygems/defaults.rb
+${RUBY_LIB}/rubygems/dependency.rb
+${RUBY_LIB}/rubygems/dependency_installer.rb
+${RUBY_LIB}/rubygems/dependency_list.rb
+${RUBY_LIB}/rubygems/doc_manager.rb
+${RUBY_LIB}/rubygems/errors.rb
+${RUBY_LIB}/rubygems/exceptions.rb
+${RUBY_LIB}/rubygems/ext.rb
+${RUBY_LIB}/rubygems/ext/builder.rb
+${RUBY_LIB}/rubygems/ext/configure_builder.rb
+${RUBY_LIB}/rubygems/ext/ext_conf_builder.rb
+${RUBY_LIB}/rubygems/ext/rake_builder.rb
+${RUBY_LIB}/rubygems/format.rb
+${RUBY_LIB}/rubygems/gem_openssl.rb
+${RUBY_LIB}/rubygems/gem_path_searcher.rb
+${RUBY_LIB}/rubygems/gem_runner.rb
+${RUBY_LIB}/rubygems/gemcutter_utilities.rb
+${RUBY_LIB}/rubygems/indexer.rb
+${RUBY_LIB}/rubygems/install_update_options.rb
+${RUBY_LIB}/rubygems/installer.rb
+${RUBY_LIB}/rubygems/local_remote_options.rb
+${RUBY_LIB}/rubygems/old_format.rb
+${RUBY_LIB}/rubygems/package.rb
+${RUBY_LIB}/rubygems/package/f_sync_dir.rb
+${RUBY_LIB}/rubygems/package/tar_header.rb
+${RUBY_LIB}/rubygems/package/tar_input.rb
+${RUBY_LIB}/rubygems/package/tar_output.rb
+${RUBY_LIB}/rubygems/package/tar_reader.rb
+${RUBY_LIB}/rubygems/package/tar_reader/entry.rb
+${RUBY_LIB}/rubygems/package/tar_writer.rb
+${RUBY_LIB}/rubygems/package_task.rb
+${RUBY_LIB}/rubygems/platform.rb
+${RUBY_LIB}/rubygems/remote_fetcher.rb
+${RUBY_LIB}/rubygems/require_paths_builder.rb
+${RUBY_LIB}/rubygems/requirement.rb
+${RUBY_LIB}/rubygems/security.rb
+${RUBY_LIB}/rubygems/server.rb
+${RUBY_LIB}/rubygems/source_index.rb
+${RUBY_LIB}/rubygems/source_info_cache.rb
+${RUBY_LIB}/rubygems/source_info_cache_entry.rb
+${RUBY_LIB}/rubygems/spec_fetcher.rb
+${RUBY_LIB}/rubygems/specification.rb
+${RUBY_LIB}/rubygems/test_utilities.rb
+${RUBY_LIB}/rubygems/text.rb
+${RUBY_LIB}/rubygems/uninstaller.rb
+${RUBY_LIB}/rubygems/user_interaction.rb
+${RUBY_LIB}/rubygems/validator.rb
+${RUBY_LIB}/rubygems/version.rb
+${RUBY_LIB}/rubygems/version_option.rb
+${RUBY_LIB}/scanf.rb
+${RUBY_LIB}/securerandom.rb
+${RUBY_LIB}/set.rb
+${RUBY_LIB}/shell.rb
+${RUBY_LIB}/shell/builtin-command.rb
+${RUBY_LIB}/shell/command-processor.rb
+${RUBY_LIB}/shell/error.rb
+${RUBY_LIB}/shell/filter.rb
+${RUBY_LIB}/shell/process-controller.rb
+${RUBY_LIB}/shell/system-command.rb
+${RUBY_LIB}/shell/version.rb
+${RUBY_LIB}/shellwords.rb
+${RUBY_LIB}/singleton.rb
+${RUBY_LIB}/socket.rb
+${RUBY_LIB}/syck.rb
+${RUBY_LIB}/syck/baseemitter.rb
+${RUBY_LIB}/syck/basenode.rb
+${RUBY_LIB}/syck/constants.rb
+${RUBY_LIB}/syck/encoding.rb
+${RUBY_LIB}/syck/error.rb
+${RUBY_LIB}/syck/loader.rb
+${RUBY_LIB}/syck/rubytypes.rb
+${RUBY_LIB}/syck/stream.rb
+${RUBY_LIB}/syck/stringio.rb
+${RUBY_LIB}/syck/syck.rb
+${RUBY_LIB}/syck/tag.rb
+${RUBY_LIB}/syck/types.rb
+${RUBY_LIB}/syck/yamlnode.rb
+${RUBY_LIB}/syck/ypath.rb
+${RUBY_LIB}/sync.rb
+${RUBY_LIB}/tempfile.rb
+${RUBY_LIB}/test/unit.rb
+${RUBY_LIB}/test/unit/assertions.rb
+${RUBY_LIB}/test/unit/testcase.rb
+${RUBY_LIB}/thread.rb
+${RUBY_LIB}/thwait.rb
+${RUBY_LIB}/time.rb
+${RUBY_LIB}/timeout.rb
+${RUBY_LIB}/tmpdir.rb
+${RUBY_LIB}/tracer.rb
+${RUBY_LIB}/tsort.rb
+${RUBY_LIB}/ubygems.rb
+${RUBY_LIB}/un.rb
+${RUBY_LIB}/uri.rb
+${RUBY_LIB}/uri/common.rb
+${RUBY_LIB}/uri/ftp.rb
+${RUBY_LIB}/uri/generic.rb
+${RUBY_LIB}/uri/http.rb
+${RUBY_LIB}/uri/https.rb
+${RUBY_LIB}/uri/ldap.rb
+${RUBY_LIB}/uri/ldaps.rb
+${RUBY_LIB}/uri/mailto.rb
+${RUBY_LIB}/weakref.rb
+${RUBY_LIB}/webrick.rb
+${RUBY_LIB}/webrick/accesslog.rb
+${RUBY_LIB}/webrick/cgi.rb
+${RUBY_LIB}/webrick/compat.rb
+${RUBY_LIB}/webrick/config.rb
+${RUBY_LIB}/webrick/cookie.rb
+${RUBY_LIB}/webrick/htmlutils.rb
+${RUBY_LIB}/webrick/httpauth.rb
+${RUBY_LIB}/webrick/httpauth/authenticator.rb
+${RUBY_LIB}/webrick/httpauth/basicauth.rb
+${RUBY_LIB}/webrick/httpauth/digestauth.rb
+${RUBY_LIB}/webrick/httpauth/htdigest.rb
+${RUBY_LIB}/webrick/httpauth/htgroup.rb
+${RUBY_LIB}/webrick/httpauth/htpasswd.rb
+${RUBY_LIB}/webrick/httpauth/userdb.rb
+${RUBY_LIB}/webrick/httpproxy.rb
+${RUBY_LIB}/webrick/httprequest.rb
+${RUBY_LIB}/webrick/httpresponse.rb
+${RUBY_LIB}/webrick/https.rb
+${RUBY_LIB}/webrick/httpserver.rb
+${RUBY_LIB}/webrick/httpservlet.rb
+${RUBY_LIB}/webrick/httpservlet/abstract.rb
+${RUBY_LIB}/webrick/httpservlet/cgi_runner.rb
+${RUBY_LIB}/webrick/httpservlet/cgihandler.rb
+${RUBY_LIB}/webrick/httpservlet/erbhandler.rb
+${RUBY_LIB}/webrick/httpservlet/filehandler.rb
+${RUBY_LIB}/webrick/httpservlet/prochandler.rb
+${RUBY_LIB}/webrick/httpstatus.rb
+${RUBY_LIB}/webrick/httputils.rb
+${RUBY_LIB}/webrick/httpversion.rb
+${RUBY_LIB}/webrick/log.rb
+${RUBY_LIB}/webrick/server.rb
+${RUBY_LIB}/webrick/ssl.rb
+${RUBY_LIB}/webrick/utils.rb
+${RUBY_LIB}/webrick/version.rb
+${RUBY_LIB}/xmlrpc/base64.rb
+${RUBY_LIB}/xmlrpc/client.rb
+${RUBY_LIB}/xmlrpc/config.rb
+${RUBY_LIB}/xmlrpc/create.rb
+${RUBY_LIB}/xmlrpc/datetime.rb
+${RUBY_LIB}/xmlrpc/httpserver.rb
+${RUBY_LIB}/xmlrpc/marshal.rb
+${RUBY_LIB}/xmlrpc/parser.rb
+${RUBY_LIB}/xmlrpc/server.rb
+${RUBY_LIB}/xmlrpc/utils.rb
+${RUBY_LIB}/yaml.rb
+${RUBY_LIB}/yaml/dbm.rb
+${RUBY_LIB}/yaml/store.rb
+${RUBY_LIB}/yaml/syck.rb
+${RUBY_ARCHLIB}/bigdecimal.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/continuation.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/coverage.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/dbm.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest/bubblebabble.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest/md5.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest/rmd160.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest/sha1.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/digest/sha2.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/dl.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/dl/callback.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/big5.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/cp949.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/emacs_mule.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/encdb.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/euc_jp.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/euc_kr.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/euc_tw.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/gb18030.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/gb2312.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/gbk.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_1.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_10.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_11.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_13.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_14.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_15.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_16.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_2.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_3.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_4.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_5.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_6.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_7.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_8.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/iso_8859_9.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/koi8_r.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/koi8_u.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/shift_jis.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/big5.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/chinese.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/emoji.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/emoji_iso2022_kddi.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/emoji_sjis_docomo.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/emoji_sjis_kddi.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/emoji_sjis_softbank.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/escape.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/gb18030.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/gbk.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/iso2022.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/japanese.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/japanese_euc.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/japanese_sjis.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/korean.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/single_byte.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/transdb.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/utf8_mac.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/trans/utf_16_32.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/utf_16be.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/utf_16le.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/utf_32be.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/utf_32le.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/enc/windows_1251.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/etc.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/fcntl.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/fiber.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/iconv.${RUBY_DLEXT}
+${PLIST.io}${RUBY_ARCHLIB}/io/nonblock.${RUBY_DLEXT}
+${PLIST.io}${RUBY_ARCHLIB}/io/wait.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/json/ext/generator.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/json/ext/parser.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/mathn/complex.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/mathn/rational.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/nkf.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/objspace.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/openssl.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/pty.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/racc/cparse.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/rbconfig.rb
+${RUBY_ARCHLIB}/ripper.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/sdbm.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/socket.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/stringio.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/strscan.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/syck.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/syslog.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/zlib.${RUBY_DLEXT}
+${GEM_HOME}/specifications/minitest.gemspec
+${GEM_HOME}/specifications/rake.gemspec
+${GEM_HOME}/specifications/rdoc.gemspec
+man/man1/erb${RUBY_VER}.1
+man/man1/irb${RUBY_VER}.1
+man/man1/rake${RUBY_VER}.1
+man/man1/ri${RUBY_VER}.1
+man/man1/${RUBY_NAME}.1
+${RUBY_DOC}/COPYING
+${RUBY_DOC}/COPYING.ja
+${RUBY_DOC}/ChangeLog
+${RUBY_DOC}/ChangeLog-1.8.0
+${RUBY_DOC}/ChangeLog-YARV
+${RUBY_DOC}/NEWS
+${RUBY_DOC}/NEWS-1.8.7
+${RUBY_DOC}/README
+${RUBY_DOC}/README.EXT
+${RUBY_DOC}/README.EXT.ja
+${RUBY_DOC}/README.ja
+${RUBY_DOC}/ToDo
+${RUBY_DOC}/bigdecimal_en.html
+${RUBY_DOC}/bigdecimal_ja.html
+${RUBY_DOC}/forwardable.rd
+${RUBY_DOC}/forwardable.rd.ja
+${RUBY_DOC}/irb/irb-tools.rd.ja
+${RUBY_DOC}/irb/irb.rd
+${RUBY_DOC}/irb/irb.rd.ja
+${RUBY_DOC}/ripper/README
+${RUBY_DOC}/shell.rd
+${RUBY_DOC}/shell.rd.ja
+${RUBY_DOC}/stringio/README
+${RUBY_DOC}/syslog.txt
+${RUBY_EG}/README
+${RUBY_EG}/bigdecimal/linear.rb
+${RUBY_EG}/bigdecimal/nlsolve.rb
+${RUBY_EG}/bigdecimal/pi.rb
+${RUBY_EG}/biorhythm.rb
+${RUBY_EG}/cal.rb
+${RUBY_EG}/cbreak.rb
+${RUBY_EG}/clnt.rb
+${RUBY_EG}/coverage.rb
+${RUBY_EG}/dir.rb
+${RUBY_EG}/drb/README.rd
+${RUBY_EG}/drb/README.rd.ja
+${RUBY_EG}/drb/darray.rb
+${RUBY_EG}/drb/darrayc.rb
+${RUBY_EG}/drb/dbiff.rb
+${RUBY_EG}/drb/dcdbiff.rb
+${RUBY_EG}/drb/dchatc.rb
+${RUBY_EG}/drb/dchats.rb
+${RUBY_EG}/drb/dhasen.rb
+${RUBY_EG}/drb/dhasenc.rb
+${RUBY_EG}/drb/dlogc.rb
+${RUBY_EG}/drb/dlogd.rb
+${RUBY_EG}/drb/dqin.rb
+${RUBY_EG}/drb/dqlib.rb
+${RUBY_EG}/drb/dqout.rb
+${RUBY_EG}/drb/dqueue.rb
+${RUBY_EG}/drb/drbc.rb
+${RUBY_EG}/drb/drbch.rb
+${RUBY_EG}/drb/drbm.rb
+${RUBY_EG}/drb/drbmc.rb
+${RUBY_EG}/drb/drbs-acl.rb
+${RUBY_EG}/drb/drbs.rb
+${RUBY_EG}/drb/drbssl_c.rb
+${RUBY_EG}/drb/drbssl_s.rb
+${RUBY_EG}/drb/extserv_test.rb
+${RUBY_EG}/drb/gw_ct.rb
+${RUBY_EG}/drb/gw_cu.rb
+${RUBY_EG}/drb/gw_s.rb
+${RUBY_EG}/drb/holderc.rb
+${RUBY_EG}/drb/holders.rb
+${RUBY_EG}/drb/http0.rb
+${RUBY_EG}/drb/http0serv.rb
+${RUBY_EG}/drb/name.rb
+${RUBY_EG}/drb/namec.rb
+${RUBY_EG}/drb/old_tuplespace.rb
+${RUBY_EG}/drb/rinda_ts.rb
+${RUBY_EG}/drb/rindac.rb
+${RUBY_EG}/drb/rindas.rb
+${RUBY_EG}/drb/ring_echo.rb
+${RUBY_EG}/drb/ring_inspect.rb
+${RUBY_EG}/drb/ring_place.rb
+${RUBY_EG}/drb/simpletuple.rb
+${RUBY_EG}/drb/speedc.rb
+${RUBY_EG}/drb/speeds.rb
+${RUBY_EG}/dualstack-fetch.rb
+${RUBY_EG}/dualstack-httpd.rb
+${RUBY_EG}/eval.rb
+${RUBY_EG}/export.rb
+${RUBY_EG}/exyacc.rb
+${RUBY_EG}/fact.rb
+${RUBY_EG}/fib.awk
+${RUBY_EG}/fib.pl
+${RUBY_EG}/fib.py
+${RUBY_EG}/fib.rb
+${RUBY_EG}/fib.scm
+${RUBY_EG}/freq.rb
+${RUBY_EG}/from.rb
+${RUBY_EG}/fullpath.rb
+${RUBY_EG}/less.rb
+${RUBY_EG}/list.rb
+${RUBY_EG}/list2.rb
+${RUBY_EG}/list3.rb
+${RUBY_EG}/logger/app.rb
+${RUBY_EG}/logger/log.rb
+${RUBY_EG}/logger/shifting.rb
+${RUBY_EG}/mine.rb
+${RUBY_EG}/mkproto.rb
+${RUBY_EG}/mpart.rb
+${RUBY_EG}/observ.rb
+${RUBY_EG}/occur.pl
+${RUBY_EG}/occur.rb
+${RUBY_EG}/occur2.rb
+${RUBY_EG}/openssl/c_rehash.rb
+${RUBY_EG}/openssl/cert2text.rb
+${RUBY_EG}/openssl/certstore.rb
+${RUBY_EG}/openssl/cipher.rb
+${RUBY_EG}/openssl/crlstore.rb
+${RUBY_EG}/openssl/echo_cli.rb
+${RUBY_EG}/openssl/echo_svr.rb
+${RUBY_EG}/openssl/gen_csr.rb
+${RUBY_EG}/openssl/smime_read.rb
+${RUBY_EG}/openssl/smime_write.rb
+${RUBY_EG}/openssl/wget.rb
+${RUBY_EG}/optparse/opttest.rb
+${RUBY_EG}/optparse/subcommand.rb
+${RUBY_EG}/philos.rb
+${RUBY_EG}/pi.rb
+${RUBY_EG}/pty/expect_sample.rb
+${RUBY_EG}/pty/script.rb
+${RUBY_EG}/pty/shl.rb
+${RUBY_EG}/rcs.awk
+${RUBY_EG}/rcs.dat
+${RUBY_EG}/rcs.rb
+${RUBY_EG}/rdoc/markup/rdoc2latex.rb
+${RUBY_EG}/rdoc/markup/sample.rb
+${RUBY_EG}/ripper/ruby2html.rb
+${RUBY_EG}/ripper/strip-comment.rb
+${RUBY_EG}/rss/blend.rb
+${RUBY_EG}/rss/convert.rb
+${RUBY_EG}/rss/list_description.rb
+${RUBY_EG}/rss/re_read.rb
+${RUBY_EG}/rss/rss_recent.rb
+${RUBY_EG}/sieve.rb
+${RUBY_EG}/svr.rb
+${RUBY_EG}/test.rb
+${RUBY_EG}/testunit/adder.rb
+${RUBY_EG}/testunit/subtracter.rb
+${RUBY_EG}/testunit/tc_adder.rb
+${RUBY_EG}/testunit/tc_subtracter.rb
+${RUBY_EG}/testunit/ts_examples.rb
+${RUBY_EG}/time.rb
+${RUBY_EG}/timeout.rb
+${RUBY_EG}/trojan.rb
+${RUBY_EG}/tsvr.rb
+${RUBY_EG}/uumerge.rb
+${RUBY_EG}/webrick/demo-app.rb
+${RUBY_EG}/webrick/demo-multipart.cgi
+${RUBY_EG}/webrick/demo-servlet.rb
+${RUBY_EG}/webrick/demo-urlencoded.cgi
+${RUBY_EG}/webrick/hello.cgi
+${RUBY_EG}/webrick/hello.rb
+${RUBY_EG}/webrick/httpd.rb
+${RUBY_EG}/webrick/httpproxy.rb
+${RUBY_EG}/webrick/httpsd.rb
+@pkgdir ${RUBY_SITEARCHLIB}
+@pkgdir ${RUBY_VENDORARCHLIB}
+@pkgdir ${RUBY_GEM_HOME}/cache
+@pkgdir ${RUBY_GEM_HOME}/doc
+@pkgdir ${RUBY_GEM_HOME}/gems
+@pkgdir ${RUBY_SITERIDIR}
diff --git a/lang/ruby19-base/distinfo b/lang/ruby19-base/distinfo
new file mode 100644
index 00000000000..54e4baa2d83
--- /dev/null
+++ b/lang/ruby19-base/distinfo
@@ -0,0 +1,26 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/12 03:50:05 taca Exp $
+
+SHA1 (ruby-1.9.2-p0.tar.bz2) = c0fc7e1047f1eac7e554e9818513593b0d398698
+RMD160 (ruby-1.9.2-p0.tar.bz2) = dc15937c884b0f93863e9871304bae95e1233e15
+Size (ruby-1.9.2-p0.tar.bz2) = 8495472 bytes
+SHA1 (patch-aa) = 9e1d3cdbe76fc9bcc72e7de6dfc4ce5344d4510d
+SHA1 (patch-ab) = e76b1fbb42a3a332e65b51a2ed4aab7024fcfc1e
+SHA1 (patch-ac) = c076c99eb886842dc5ac546e1105b7ef2a3edd68
+SHA1 (patch-ad) = 872b9457ff410ccae7e8929fe994a0d1d4d80bb1
+SHA1 (patch-ae) = 5fffd09450e9f6fc4c47d3bdacaf2f4acb48f5b1
+SHA1 (patch-af) = 5a1024b66537e6dacefdc8a3aaa3d6c38c9ae171
+SHA1 (patch-ag) = b99faa57872a04da29433ce122d94204932a10e0
+SHA1 (patch-ah) = 33f95f111266ae5bf6f527ccbcd124ce25859890
+SHA1 (patch-ai) = 3e4073e5e11739c0ba3e1c65f89dee169cac11cf
+SHA1 (patch-aj) = 245221025da25b6aa28d527672ca4bf0610b92dd
+SHA1 (patch-ak) = ac49cec94313d22058183f1a3af520591433b726
+SHA1 (patch-al) = c4f44e897e525c13a0276a3743fd203e290f6f97
+SHA1 (patch-am) = 2136ab402ae94805c1585677eaa8cc6a83696374
+SHA1 (patch-an) = ee50704eb4967b5df48fb3b6dfa4148f7c40dbba
+SHA1 (patch-ao) = 32ba4bd0eccd849f7294bc60a66d181966e472b9
+SHA1 (patch-ap) = 1fdb7563c1ee43466f47a2a98bbdc6a242a84f0f
+SHA1 (patch-aq) = 740e5231beaa1e42f464f2ec7b52c3ed69bb5f39
+SHA1 (patch-ar) = 8a4b8ae18f9bdafc1bfbbd9ec62d18caf890571e
+SHA1 (patch-as) = 468683d6ac7a7330a2b2bcb19bc55cbf800781c6
+SHA1 (patch-at) = 532eebfda565d78b9d7ab572b7d8539933e431a3
+SHA1 (patch-au) = 45073c6d3461ee181e89228beb088d161af3d735
diff --git a/lang/ruby19-base/hacks.mk b/lang/ruby19-base/hacks.mk
new file mode 100644
index 00000000000..1da0245a259
--- /dev/null
+++ b/lang/ruby19-base/hacks.mk
@@ -0,0 +1,21 @@
+# $NetBSD: hacks.mk,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+.if !defined(RUBY19_BASE_HACKS_MK)
+RUBY19_BASE_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### [ Sun Jun 5 10:05:39 CEST 2005 : seb ]
+### On NetBSD/sparc64, gcc optimisation, at least for version 3.3.3,
+### produces segmentation faulting miniruby binary.
+### Also note that `-O' level optimisation produces a miniruby
+### binary that loops while running the installation scripts.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
+. if !empty(CC_VERSION:Mgcc-3.3.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rm:-O[0-9]*
+. endif
+.endif
+
+.endif # RUBY19_BASE_HACKS_MK
diff --git a/lang/ruby19-base/options.mk b/lang/ruby19-base/options.mk
new file mode 100644
index 00000000000..419c6dedbce
--- /dev/null
+++ b/lang/ruby19-base/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ruby
+PKG_SUPPORTED_OPTIONS= ruby-build-ri-db
+PKG_SUGGESTED_OPTIONS= ruby-build-ri-db
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mruby-build-ri-db)
+BUILD_TARGET= all rdoc
+CONFIGURE_ARGS+= --enable-install-doc
+#PRIVILEGED_STAGES+= clean
+RUBY_DYNAMIC_DIRS+= ${RUBY_SYSRIDIR}
+# Use huge memory.
+UNLIMIT_RESOURCES+= datasize
+.endif
diff --git a/lang/ruby19-base/patches/patch-aa b/lang/ruby19-base/patches/patch-aa
new file mode 100644
index 00000000000..959b4d2f081
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-aa
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Adding Interix support.
+
+--- configure.in.orig 2010-08-14 08:11:59.000000000 +0000
++++ configure.in
+@@ -958,6 +958,8 @@ main()
+ ],
+ [superux*], [ ac_cv_func_setitimer=no
+ ],
++[interix*], [ LIBS="-lm $LIBS"
++ ac_cv_func_getpgrp_void=yes],
+ [ LIBS="-lm $LIBS"])
+ AC_CHECK_LIB(crypt, crypt)
+ AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
+@@ -1809,7 +1811,9 @@ if test "$with_dln_a_out" != yes; then
+ rb_cv_dlopen=yes],
+ [interix*], [ : ${LDSHARED='$(CC) -shared'}
+ XLDFLAGS="$XLDFLAGS -Wl,-E"
++ DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))'
+ LIBPATHFLAG=" -L%1\$-s"
++ RPATHFLAG=' -Wl,-R%1$-s'
+ rb_cv_dlopen=yes],
+ [freebsd*|dragonfly*], [
+ : ${LDSHARED='$(CC) -shared'}
+@@ -2164,7 +2168,12 @@ if test "$enable_shared" = 'yes'; then
+ LIBRUBY_ALIASES='lib$(RUBY_BASE_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_INSTALL_NAME).dylib'
+ ],
+ [interix*], [
+- LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
++ SOLIBS='$(LIBS)'
++ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
++ # link explicitly to 0x48000000
++ LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552'
++ LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)'
++ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so'
+ ])
+ fi
+ if test "$enable_rpath" = yes; then
diff --git a/lang/ruby19-base/patches/patch-ab b/lang/ruby19-base/patches/patch-ab
new file mode 100644
index 00000000000..418063223e7
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ab
@@ -0,0 +1,43 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Adding Interix support.
+
+--- configure.orig 2010-08-18 05:56:27.000000000 +0000
++++ configure
+@@ -9296,6 +9296,9 @@ esac
+ superux*) :
+ ac_cv_func_setitimer=no
+ ;; #(
++ interix*) LIBS="-lm $LIBS"
++ ac_cv_func_getpgrp_void=yes
++ ;; #(
+ *) :
+ LIBS="-lm $LIBS" ;;
+ esac
+@@ -14926,8 +14929,12 @@ esac ;; #(
+ rb_cv_dlopen=yes ;; #(
+ interix*) :
+ : ${LDSHARED='$(CC) -shared'}
++ LDFLAGS="$LDFLAGS -Wl,-E"
+ XLDFLAGS="$XLDFLAGS -Wl,-E"
++ # use special random-slot linkage in 0x[56]XXXXXXX
+ LIBPATHFLAG=" -L%1\$-s"
++ DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))'
++ RPATHFLAG=' -Wl,-R%1$-s'
+ rb_cv_dlopen=yes ;; #(
+ freebsd*|dragonfly*) :
+
+@@ -15424,7 +15431,12 @@ esac
+ ;; #(
+ interix*) :
+
+- LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
++ SOLIBS='$(LIBS)'
++ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
++ # link explicitly to 0x48000000
++ LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552'
++ LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)'
++ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so'
+ ;; #(
+ *) :
+ ;;
diff --git a/lang/ruby19-base/patches/patch-ac b/lang/ruby19-base/patches/patch-ac
new file mode 100644
index 00000000000..86c068ec7d2
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ac
@@ -0,0 +1,43 @@
+$NetBSD: patch-ac,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Accept db3, db4 or db5 as include/library.
+
+--- ext/dbm/extconf.rb.orig 2009-10-02 10:45:39.000000000 +0000
++++ ext/dbm/extconf.rb
+@@ -5,13 +5,16 @@ dir_config("dbm")
+ if dblib = with_config("dbm-type", nil)
+ dblib = dblib.split(/[ ,]+/)
+ else
+- dblib = %w(db db2 db1 dbm gdbm gdbm_compat qdbm)
++ dblib = %w(db db2 db1 db5 db4 db3 dbm gdbm gdbm_compat qdbm)
+ end
+
+ headers = {
+ "db" => ["db.h"],
+ "db1" => ["db1/ndbm.h", "db1.h", "ndbm.h"],
+ "db2" => ["db2/db.h", "db2.h", "db.h"],
++ "db3" => ["db3/db.h", "db3.h", "db.h"],
++ "db4" => ["db4/db.h", "db4.h", "db.h"],
++ "db5" => ["db5/db.h", "db5.h", "db.h"],
+ "dbm" => ["ndbm.h"],
+ "gdbm" => ["gdbm-ndbm.h", "ndbm.h"],
+ "gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h"],
+@@ -24,7 +27,7 @@ def headers.db_check(db)
+ hsearch = nil
+
+ case db
+- when /^db2?$/
++ when /^db[2-5]?$/
+ db_prefix = "__db_n"
+ hsearch = "-DDB_DBM_HSEARCH "
+ when "gdbm"
+@@ -36,7 +39,8 @@ def headers.db_check(db)
+ db_prefix ||= ""
+
+ if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and
+- hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)}
++ hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)} or
++ hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", ["db.h", h], hsearch)}
+ have_func(db_prefix+"dbm_clearerr") unless have_gdbm
+ $defs << hsearch if hsearch
+ $defs << '-DDBM_HDR="<'+hdr+'>"'
diff --git a/lang/ruby19-base/patches/patch-ad b/lang/ruby19-base/patches/patch-ad
new file mode 100644
index 00000000000..0d5c39ddc66
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ad
@@ -0,0 +1,19 @@
+$NetBSD: patch-ad,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Use proper OpenSSL's API.
+
+--- ext/openssl/ossl_ssl.c.orig 2010-05-23 12:18:51.000000000 +0000
++++ ext/openssl/ossl_ssl.c
+@@ -700,10 +700,10 @@ ossl_sslctx_get_ciphers(VALUE self)
+ if (!ciphers)
+ return rb_ary_new();
+
+- num = sk_num((STACK*)ciphers);
++ num = sk_SSL_CIPHER_num(ciphers);
+ ary = rb_ary_new2(num);
+ for(i = 0; i < num; i++){
+- cipher = (SSL_CIPHER*)sk_value((STACK*)ciphers, i);
++ cipher = sk_SSL_CIPHER_value(ciphers, i);
+ rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
+ }
+ return ary;
diff --git a/lang/ruby19-base/patches/patch-ae b/lang/ruby19-base/patches/patch-ae
new file mode 100644
index 00000000000..5225790d570
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ae
@@ -0,0 +1,35 @@
+$NetBSD: patch-ae,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems.rb.orig 2010-08-26 08:25:09.000000000 +0000
++++ lib/rubygems.rb
+@@ -353,7 +353,10 @@ module Gem
+ ##
+ # The path where gem executables are to be installed.
+
+- def self.bindir(install_dir=Gem.dir)
++ def self.bindir(install_dir=Gem.dir, install_root=nil)
++ unless install_root.nil?
++ install_dir = install_dir.sub(install_root, "")
++ end
+ return File.join(install_dir, 'bin') unless
+ install_dir.to_s == Gem.default_dir
+ Gem.default_bindir
+@@ -576,7 +579,7 @@ module Gem
+ ##
+ # The index to insert activated gem paths into the $LOAD_PATH.
+ #
+- # Defaults to the site lib directory unless gem_prelude.rb has loaded paths,
++ # Defaults to the vendor lib directory unless gem_prelude.rb has loaded paths,
+ # then it inserts the activated gem's paths before the gem_prelude.rb paths
+ # so you can override the gem_prelude.rb default $LOAD_PATH paths.
+
+@@ -687,6 +690,7 @@ module Gem
+ prefix = File.dirname dir
+
+ if prefix == File.expand_path(ConfigMap[:sitelibdir]) or
++ prefix == File.expand_path(ConfigMap[:vendorlibdir]) or
+ prefix == File.expand_path(ConfigMap[:libdir]) or
+ 'lib' != File.basename(dir) then
+ nil
diff --git a/lang/ruby19-base/patches/patch-af b/lang/ruby19-base/patches/patch-af
new file mode 100644
index 00000000000..8afbfe9cc76
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-af
@@ -0,0 +1,15 @@
+$NetBSD: patch-af,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Prevent access to HOME when --install-root is used.
+
+--- lib/rubygems/commands/install_command.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/commands/install_command.rb
+@@ -146,7 +146,7 @@ to write the specification by hand. For
+ Gem::DocManager.new(gem, options[:rdoc_args]).generate_ri
+ end
+
+- Gem::DocManager.update_ri_cache
++ Gem::DocManager.update_ri_cache(options[:install_root])
+ end
+
+ if options[:generate_rdoc] then
diff --git a/lang/ruby19-base/patches/patch-ag b/lang/ruby19-base/patches/patch-ag
new file mode 100644
index 00000000000..b2064bf89bb
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ag
@@ -0,0 +1,38 @@
+$NetBSD: patch-ag,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Make sure to setup under DESTDIR.
+
+--- lib/rubygems/commands/setup_command.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/commands/setup_command.rb
+@@ -118,7 +118,7 @@ By default, this RubyGems will install g
+
+ uninstall_old_gemcutter
+
+- install_rdoc
++ install_rdoc install_destdir
+
+ say
+ if @verbose then
+@@ -229,16 +229,20 @@ TEXT
+ end
+ end
+
+- def install_rdoc
++ def install_rdoc(install_destdir)
+ gem_doc_dir = File.join Gem.dir, 'doc'
+ rubygems_name = "rubygems-#{Gem::VERSION}"
+ rubygems_doc_dir = File.join gem_doc_dir, rubygems_name
+
++ unless install_destdir.empty?
++ FileUtils.mkdir_p gem_doc_dir unless File.exist?(gem_doc_dir)
++ end
++
+ if File.writable? gem_doc_dir and
+ (not File.exist? rubygems_doc_dir or
+ File.writable? rubygems_doc_dir) then
+ say "Removing old RubyGems RDoc and ri" if @verbose
+- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
++ Dir[File.join(gem_doc_dir, 'rubygems-[0-9]*')].each do |dir|
+ rm_rf dir
+ end
+
diff --git a/lang/ruby19-base/patches/patch-ah b/lang/ruby19-base/patches/patch-ah
new file mode 100644
index 00000000000..b6098ec551e
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ah
@@ -0,0 +1,18 @@
+$NetBSD: patch-ah,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/commands/uninstall_command.rb.orig 2009-10-02 10:45:39.000000000 +0000
++++ lib/rubygems/commands/uninstall_command.rb
+@@ -21,6 +21,11 @@ class Gem::Commands::UninstallCommand <
+ options[:all] = value
+ end
+
++ add_option('-B', '--install-root DIR',
++ 'Root directory for gem files') do |value, options|
++ options[:install_root] = File.expand_path(value)
++ end
++
+ add_option('-I', '--[no-]ignore-dependencies',
+ 'Ignore dependency requirements while',
+ 'uninstalling') do |value, options|
diff --git a/lang/ruby19-base/patches/patch-ai b/lang/ruby19-base/patches/patch-ai
new file mode 100644
index 00000000000..2911cf309c9
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ai
@@ -0,0 +1,27 @@
+$NetBSD: patch-ai,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/commands/unpack_command.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/commands/unpack_command.rb
+@@ -12,6 +12,10 @@ class Gem::Commands::UnpackCommand < Gem
+ :version => Gem::Requirement.default,
+ :target => Dir.pwd
+
++ add_option('--install-root DIR', 'Root directory for gem files on extract') do |value, options|
++ options[:install_root] = value
++ end
++
+ add_option('--target=DIR',
+ 'target directory for unpacking') do |value, options|
+ options[:target] = value
+@@ -56,7 +60,8 @@ class Gem::Commands::UnpackCommand < Gem
+ basename = File.basename path, '.gem'
+ target_dir = File.expand_path basename, options[:target]
+ FileUtils.mkdir_p target_dir
+- Gem::Installer.new(path, :unpack => true).unpack target_dir
++ Gem::Installer.new(path, :unpack => true,
++ :install_root => options[:install_root]).unpack target_dir
+ say "Unpacked gem: '#{target_dir}'"
+ else
+ alert_error "Gem '#{name}' not installed."
diff --git a/lang/ruby19-base/patches/patch-aj b/lang/ruby19-base/patches/patch-aj
new file mode 100644
index 00000000000..1564d4a6a10
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-aj
@@ -0,0 +1,21 @@
+$NetBSD: patch-aj,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Don't hard code config file's path for gem.
+
+--- lib/rubygems/config_file.rb.orig 2010-06-08 13:14:51.000000000 +0000
++++ lib/rubygems/config_file.rb
+@@ -45,13 +45,7 @@ class Gem::ConfigFile
+
+ PLATFORM_DEFAULTS = {}
+
+- system_config_path =
+- begin
+- require 'etc.so'
+- Etc.sysconfdir
+- rescue LoadError
+- '/etc'
+- end
++ system_config_path = '@PKG_SYSCONFDIR@'
+
+ SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
+
diff --git a/lang/ruby19-base/patches/patch-ak b/lang/ruby19-base/patches/patch-ak
new file mode 100644
index 00000000000..29be73ed757
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ak
@@ -0,0 +1,15 @@
+$NetBSD: patch-ak,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Use vendordir instead of sitedir.
+
+--- lib/rubygems/defaults.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/defaults.rb
+@@ -18,7 +18,7 @@ module Gem
+
+ def self.default_dir
+ if defined? RUBY_FRAMEWORK_VERSION then
+- File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
++ File.join File.dirname(ConfigMap[:vendordir]), 'Gems',
+ ConfigMap[:ruby_version]
+ elsif ConfigMap[:rubylibprefix] then
+ File.join(ConfigMap[:rubylibprefix], 'gems',
diff --git a/lang/ruby19-base/patches/patch-al b/lang/ruby19-base/patches/patch-al
new file mode 100644
index 00000000000..e690a9a0444
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-al
@@ -0,0 +1,49 @@
+$NetBSD: patch-al,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/dependency_installer.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/dependency_installer.rb
+@@ -38,6 +38,7 @@ class Gem::DependencyInstaller
+ # :format_executable:: See Gem::Installer#initialize.
+ # :ignore_dependencies:: Don't install any dependencies.
+ # :install_dir:: See Gem::Installer#install.
++ # :install_root: See Gem::Installer#install.
+ # :prerelease:: Allow prerelease versions. See #install.
+ # :security_policy:: See Gem::Installer::new and Gem::Security.
+ # :user_install:: See Gem::Installer.new
+@@ -45,7 +46,11 @@ class Gem::DependencyInstaller
+
+ def initialize(options = {})
+ if options[:install_dir] then
+- spec_dir = options[:install_dir], 'specifications'
++ if options[:install_root].nil? or options[:install_root] == "" then
++ spec_dir = options[:install_dir], 'specifications'
++ else
++ spec_dir = options[:install_root], options[:install_dir], 'specifications'
++ end
+ @source_index = Gem::SourceIndex.from_gems_in spec_dir
+ else
+ @source_index = Gem.source_index
+@@ -68,7 +73,12 @@ class Gem::DependencyInstaller
+ @installed_gems = []
+
+ @install_dir = options[:install_dir] || Gem.dir
+- @cache_dir = options[:cache_dir] || @install_dir
++ @install_root = options[:install_root]
++ install_dir = @install_dir
++ unless @install_root.nil? or @install_root == ""
++ install_dir = File.join(@install_root, @install_dir)
++ end
++ @cache_dir = options[:cache_dir] || install_dir
+
+ # Set with any errors that SpecFetcher finds while search through
+ # gemspecs for a dep
+@@ -269,6 +279,7 @@ class Gem::DependencyInstaller
+ :format_executable => @format_executable,
+ :ignore_dependencies => @ignore_dependencies,
+ :install_dir => @install_dir,
++ :install_root => @install_root,
+ :security_policy => @security_policy,
+ :source_index => @source_index,
+ :user_install => @user_install,
diff --git a/lang/ruby19-base/patches/patch-am b/lang/ruby19-base/patches/patch-am
new file mode 100644
index 00000000000..3300f5369a7
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-am
@@ -0,0 +1,24 @@
+$NetBSD: patch-am,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Prevent access to HOME when --install-root is used.
+
+--- lib/rubygems/doc_manager.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/doc_manager.rb
+@@ -61,7 +61,7 @@ class Gem::DocManager
+ ##
+ # Updates the RI cache for RDoc 2 if it is installed
+
+- def self.update_ri_cache
++ def self.update_ri_cache(install_root = nil)
+ load_rdoc rescue return
+
+ return unless defined? RDoc::VERSION # RDoc 1 does not have VERSION
+@@ -72,7 +72,7 @@ class Gem::DocManager
+ :use_cache => true,
+ :use_system => true,
+ :use_site => true,
+- :use_home => true,
++ :use_home => (install_root == nil)? true: false,
+ :use_gems => true,
+ :formatter => RDoc::RI::Formatter,
+ }
diff --git a/lang/ruby19-base/patches/patch-an b/lang/ruby19-base/patches/patch-an
new file mode 100644
index 00000000000..e5b26858142
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-an
@@ -0,0 +1,14 @@
+$NetBSD: patch-an,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+* Make sure to load YAML before use it. When should YAML be loaded?
+
+--- lib/rubygems/specification.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/specification.rb
+@@ -476,6 +476,7 @@ class Gem::Specification
+ # 'input' can be anything that YAML.load() accepts: String or IO.
+
+ def self.from_yaml(input)
++ require 'yaml'
+ input = normalize_yaml_input input
+ spec = YAML.load input
+
diff --git a/lang/ruby19-base/patches/patch-ao b/lang/ruby19-base/patches/patch-ao
new file mode 100644
index 00000000000..925f8594b60
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ao
@@ -0,0 +1,49 @@
+$NetBSD: patch-ao,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/installer.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/installer.rb
+@@ -84,6 +84,9 @@ class Gem::Installer
+ # for a signed-gems-only policy.
+ # :ignore_dependencies:: Don't raise if a dependency is missing.
+ # :install_dir:: The directory to install the gem into.
++ # :install_root:: The directory to use as a buildroot for "destdir"-style
++ # installation. All paths during installation are relative
++ # to the buildroot.
+ # :format_executable:: Format the executable the same as the ruby executable.
+ # If your ruby is ruby18, foo_exec will be installed as
+ # foo_exec18.
+@@ -99,6 +102,7 @@ class Gem::Installer
+ :exec_format => false,
+ :force => false,
+ :install_dir => Gem.dir,
++ :install_root => nil,
+ :source_index => Gem.source_index,
+ }.merge options
+
+@@ -110,6 +114,11 @@ class Gem::Installer
+ @format_executable = options[:format_executable]
+ @security_policy = options[:security_policy]
+ @wrappers = options[:wrappers]
++ install_root = options[:install_root]
++ unless install_root.nil? or install_root == ""
++ @install_root = File.expand_path install_root
++ @gem_home = File.join(@install_root, @gem_home)
++ end
+ @bin_dir = options[:bin_dir]
+ @development = options[:development]
+ @source_index = options[:source_index]
+@@ -289,7 +298,11 @@ class Gem::Installer
+ # If the user has asked for the gem to be installed in a directory that is
+ # the system gem directory, then use the system bin directory, else create
+ # (or use) a new bin dir under the gem_home.
+- bindir = @bin_dir ? @bin_dir : Gem.bindir(@gem_home)
++ bindir = @bin_dir ? @bin_dir : (Gem.bindir @gem_home, @install_root)
++
++ unless @install_root.nil? or @install_root == ""
++ bindir = File.join(@install_root, bindir)
++ end
+
+ Dir.mkdir bindir unless File.exist? bindir
+ raise Gem::FilePermissionError.new(bindir) unless File.writable? bindir
diff --git a/lang/ruby19-base/patches/patch-ap b/lang/ruby19-base/patches/patch-ap
new file mode 100644
index 00000000000..f34bde72ace
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ap
@@ -0,0 +1,19 @@
+$NetBSD: patch-ap,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/install_update_options.rb.orig 2010-06-11 14:02:18.000000000 +0000
++++ lib/rubygems/install_update_options.rb
+@@ -22,6 +22,12 @@ module Gem::InstallUpdateOptions
+ value
+ end
+
++ add_option(:"Install/Update", '-B', '--install-root DIR',
++ 'Root directory for gem files on install') do |value, options|
++ options[:install_root] = File.expand_path(value)
++ Gem.ensure_gem_subdirectories File.join options[:install_root], Gem.dir
++ end
++
+ add_option(:"Install/Update", '-i', '--install-dir DIR',
+ 'Gem repository directory to get installed',
+ 'gems') do |value, options|
diff --git a/lang/ruby19-base/patches/patch-aq b/lang/ruby19-base/patches/patch-aq
new file mode 100644
index 00000000000..c0efb41eb7e
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-aq
@@ -0,0 +1,31 @@
+$NetBSD: patch-aq,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/uninstaller.rb.orig 2010-02-22 02:52:35.000000000 +0000
++++ lib/rubygems/uninstaller.rb
+@@ -50,6 +50,11 @@ class Gem::Uninstaller
+ @force_all = options[:all]
+ @force_ignore = options[:ignore]
+ @bin_dir = options[:bin_dir]
++ install_root = options[:install_root]
++ unless install_root.nil? or install_root == ""
++ @install_root = File.expand_path install_root
++ @gem_home = File.join(@install_root, @gem_home)
++ end
+
+ # only add user directory if install_dir is not set
+ @user_install = false
+@@ -124,7 +129,11 @@ class Gem::Uninstaller
+ return if spec.nil?
+
+ unless spec.executables.empty? then
+- bindir = @bin_dir ? @bin_dir : Gem.bindir(spec.installation_path)
++ bindir = @bin_dir ? @bin_dir : (Gem.bindir @gem_home, @install_root)
++
++ unless @install_root.nil? or @install_root == ""
++ bindir = File.join(@install_root, bindir)
++ end
+
+ list = @source_index.find_name(spec.name).delete_if { |s|
+ s.version == spec.version
diff --git a/lang/ruby19-base/patches/patch-ar b/lang/ruby19-base/patches/patch-ar
new file mode 100644
index 00000000000..1f117308841
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-ar
@@ -0,0 +1,27 @@
+$NetBSD: patch-ar,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Use vendordir instead of sitedir.
+
+--- test/rubygems/test_gem.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ test/rubygems/test_gem.rb
+@@ -427,17 +427,17 @@ class TestGem < RubyGemTestCase
+ end
+
+ def test_self_prefix_sitelibdir
+- orig_sitelibdir = Gem::ConfigMap[:sitelibdir]
++ orig_sitelibdir = Gem::ConfigMap[:vendorlibdir]
+
+ file_name = File.expand_path __FILE__
+ prefix = File.dirname File.dirname(file_name)
+ prefix = File.dirname prefix if File.basename(prefix) == 'test'
+
+- Gem::ConfigMap[:sitelibdir] = prefix
++ Gem::ConfigMap[:vendorlibdir] = prefix
+
+ assert_nil Gem.prefix
+ ensure
+- Gem::ConfigMap[:sitelibdir] = orig_sitelibdir
++ Gem::ConfigMap[:vendorlibdir] = orig_sitelibdir
+ end
+
+ def test_self_refresh
diff --git a/lang/ruby19-base/patches/patch-as b/lang/ruby19-base/patches/patch-as
new file mode 100644
index 00000000000..5e023ec0f18
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-as
@@ -0,0 +1,39 @@
+$NetBSD: patch-as,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Handle 64bit size of time_t.
+
+--- thread_pthread.c.orig 2010-07-22 13:13:57.000000000 +0000
++++ thread_pthread.c
+@@ -17,6 +17,12 @@
+ #include <sys/resource.h>
+ #endif
+
++#if SIZEOF_TIME_T == 8
++#define FMT_TIME_T "lld"
++#else
++#define FMT_TIME_T "ld"
++#endif
++
+ static void native_mutex_lock(pthread_mutex_t *lock);
+ static void native_mutex_unlock(pthread_mutex_t *lock);
+ static int native_mutex_trylock(pthread_mutex_t *lock);
+@@ -620,7 +626,7 @@ native_sleep(rb_thread_t *th, struct tim
+ }
+ }
+
+- thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1);
++ thread_debug("native_sleep %" FMT_TIME_T "\n", tv ? tv->tv_sec : -1);
+ GVL_UNLOCK_BEGIN();
+ {
+ pthread_mutex_lock(&th->interrupt_lock);
+@@ -642,8 +648,8 @@ native_sleep(rb_thread_t *th, struct tim
+ }
+ else {
+ int r;
+- thread_debug("native_sleep: pthread_cond_timedwait start (%ld, %ld)\n",
+- (unsigned long)ts.tv_sec, ts.tv_nsec);
++ thread_debug("native_sleep: pthread_cond_timedwait start (%"
++ FMT_TIME_T ", %ld)\n", ts.tv_sec, ts.tv_nsec);
+ r = pthread_cond_timedwait(&th->native_thread_data.sleep_cond,
+ &th->interrupt_lock, &ts);
+ if (r && r != ETIMEDOUT) rb_bug_errno("pthread_cond_timedwait", r);
diff --git a/lang/ruby19-base/patches/patch-at b/lang/ruby19-base/patches/patch-at
new file mode 100644
index 00000000000..66aaebc94d8
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-at
@@ -0,0 +1,16 @@
+$NetBSD: patch-at,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Avoid ugly warning.
+
+--- vsnprintf.c.orig 2010-04-28 01:27:37.000000000 +0000
++++ vsnprintf.c
+@@ -203,7 +203,9 @@ typedef struct __sFILE {
+ #define __sfeof(p) (((p)->_flags & __SEOF) != 0)
+ #define __sferror(p) (((p)->_flags & __SERR) != 0)
+ #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
++#ifndef __sfileno
+ #define __sfileno(p) ((p)->_file)
++#endif
+
+ #undef feof
+ #undef ferror
diff --git a/lang/ruby19-base/patches/patch-au b/lang/ruby19-base/patches/patch-au
new file mode 100644
index 00000000000..9e1d0d1bd4c
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-au
@@ -0,0 +1,37 @@
+$NetBSD: patch-au,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+Defer loading readline, when it is really needed.
+Some unknown reason:
+
+1. build devel/ruby-readline with editline(3).
+2. Execute a ruby script loading readline in background from shell.
+3. When the script output something to stdout, it got SIGTSTP and suspends.
+
+There is no such problem when build devel/ruby-readline with GNU's readline.
+
+--- lib/rdoc/ri/driver.rb.orig 2010-07-01 02:05:35.000000000 +0000
++++ lib/rdoc/ri/driver.rb
+@@ -1,11 +1,6 @@
+ require 'abbrev'
+ require 'optparse'
+
+-begin
+- require 'readline'
+-rescue LoadError
+-end
+-
+ require 'rdoc/ri'
+ require 'rdoc/ri/paths'
+ require 'rdoc/markup'
+@@ -809,6 +804,11 @@ Options may also be set in the 'RI' envi
+ # Runs ri interactively using Readline if it is available.
+
+ def interactive
++ begin
++ require 'readline'
++ rescue LoadError
++ end
++
+ puts "\nEnter the method name you want to look up."
+
+ if defined? Readline then