summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2013-07-21 02:32:58 +0000
committertaca <taca@pkgsrc.org>2013-07-21 02:32:58 +0000
commit8e38280f0f1c82e175f074296f0a226bd47fecfe (patch)
tree3c46b53b509f554db1e8f93e0411d1378867233f /lang
parent57a4edcc77ea05d1eea57020db2afc0f5aea7a62 (diff)
downloadpkgsrc-8e38280f0f1c82e175f074296f0a226bd47fecfe.tar.gz
Add ruby200-base-2.0.0p247.
This is latest stable release of Ruby and it basically compatible with Ruby 1.9.3. Please refer full changes to NEWS/ChangeLog files or official Web site. Here is language changes: * Added keyword arguments. * Added %i and %I for symbol list creation (similar to %w and %W). * Default source encoding is changed to UTF-8. (was US-ASCII) * No warning for unused variables starting with '_'
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby200-base/ALTERNATIVES6
-rw-r--r--lang/ruby200-base/DEINSTALL14
-rw-r--r--lang/ruby200-base/DESCR19
-rw-r--r--lang/ruby200-base/INSTALL14
-rw-r--r--lang/ruby200-base/MESSAGE15
-rw-r--r--lang/ruby200-base/Makefile180
-rw-r--r--lang/ruby200-base/PLIST1049
-rw-r--r--lang/ruby200-base/distinfo27
-rw-r--r--lang/ruby200-base/hacks.mk37
-rw-r--r--lang/ruby200-base/options.mk16
-rw-r--r--lang/ruby200-base/patches/patch-configure119
-rw-r--r--lang/ruby200-base/patches/patch-defs_default__gems14
-rw-r--r--lang/ruby200-base/patches/patch-ext_tk_extconf.rb15
-rw-r--r--lang/ruby200-base/patches/patch-lib_rdoc_ri_driver.rb37
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems.rb41
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_commands_setup__command.rb41
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_commands_uninstall__command.rb18
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_commands_unpack__command.rb27
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_config__file.rb40
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_defaults.rb15
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb53
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_ext_ext__conf__builder.rb14
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_install__update__options.rb19
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_installer.rb52
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_specification.rb71
-rw-r--r--lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb31
-rw-r--r--lang/ruby200-base/patches/patch-man_erb.124
-rw-r--r--lang/ruby200-base/patches/patch-man_irb.124
-rw-r--r--lang/ruby200-base/patches/patch-man_ri.124
-rw-r--r--lang/ruby200-base/patches/patch-man_ruby.124
-rw-r--r--lang/ruby200-base/patches/patch-test_rubygems_test__gem.rb22
-rw-r--r--lang/ruby200-base/patches/patch-tool_rbinstall.rb15
32 files changed, 2117 insertions, 0 deletions
diff --git a/lang/ruby200-base/ALTERNATIVES b/lang/ruby200-base/ALTERNATIVES
new file mode 100644
index 00000000000..4e5f1a23982
--- /dev/null
+++ b/lang/ruby200-base/ALTERNATIVES
@@ -0,0 +1,6 @@
+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/ruby @PREFIX@/bin/@RUBY_NAME@
+bin/testrb @PREFIX@/bin/testrb@RUBY_VER@
diff --git a/lang/ruby200-base/DEINSTALL b/lang/ruby200-base/DEINSTALL
new file mode 100644
index 00000000000..00702725f8e
--- /dev/null
+++ b/lang/ruby200-base/DEINSTALL
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+RUBY_GEM_BASE="${PREFIX}/@RUBY_GEM_BASE@"
+RUBY_SITERIDIR="${PREFIX}/@RUBY_SITERIDIR@"
+
+case ${STAGE} in
+DEINSTALL)
+ ${RM} -f ${RUBY_SITERIDIR}/created.rid
+ ;;
+POST-DEINSTALL)
+ ${RM} -rf ${GEM_HOME}
+ ${RMDIR} ${RUBY_GEM_BASE} 2>/dev/null || true
+ ;;
+esac
diff --git a/lang/ruby200-base/DESCR b/lang/ruby200-base/DESCR
new file mode 100644
index 00000000000..ac47ff44c66
--- /dev/null
+++ b/lang/ruby200-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 2.0.0 release minimum base package.
diff --git a/lang/ruby200-base/INSTALL b/lang/ruby200-base/INSTALL
new file mode 100644
index 00000000000..9f9c3b82245
--- /dev/null
+++ b/lang/ruby200-base/INSTALL
@@ -0,0 +1,14 @@
+# $NetBSD: INSTALL,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+DATE="@DATE@"
+RUBY_SITERIDIR="${PREFIX}/@RUBY_SITERIDIR@"
+rid="${RUBY_SITERIDIR}/created.rid"
+
+case ${STAGE} in
+POST-INSTALL)
+ if [ -d ${RUBY_SITERIDIR} ]; then
+ ${DATE} > ${rid}
+ fi
+ ;;
+esac
+
diff --git a/lang/ruby200-base/MESSAGE b/lang/ruby200-base/MESSAGE
new file mode 100644
index 00000000000..d52d77ebf69
--- /dev/null
+++ b/lang/ruby200-base/MESSAGE
@@ -0,0 +1,15 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+Note that this is a minimal package.
+
+The original ${RUBY_DISTNAME} 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-fiddle: Fiddle module
+ devel/ruby-readline: readline module
+ x11/ruby-tk: Tk modules
+
+===========================================================================
diff --git a/lang/ruby200-base/Makefile b/lang/ruby200-base/Makefile
new file mode 100644
index 00000000000..22b0589cb35
--- /dev/null
+++ b/lang/ruby200-base/Makefile
@@ -0,0 +1,180 @@
+# $NetBSD: Makefile,v 1.1 2013/07/21 02:32:58 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL}
+CATEGORIES= lang ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby ${RUBY_VERSION} release minimum base package
+LICENSE= ${RUBY_LICENSE}
+
+RUBY_VERSION_SUPPORTED= 200
+
+MAKE_JOBS_SAFE= no
+USE_LANGUAGES= c
+USE_TOOLS+= pax yacc
+GNU_CONFIGURE= yes
+TEST_TARGET= test
+CONFIGURE_ARGS+= --enable-shared
+WRKSRC= ${RUBY_WRKSRC}
+
+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
+
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ENV+= OBJCOPY=:
+CONFIGURE_ENV+= ac_cv_prog_PKG_CONFIG=""
+.endif
+
+.if ${OPSYS} == "MirBSD"
+# if present, an unsupported sysconf call is used
+CONFIGURE_ENV+= ac_cv_func_getgrnam_r=no
+.endif
+
+.if ${OPSYS} == "Cygwin"
+USE_TOOLS+= gmake
+MAKE_FILE= GNUmakefile
+.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}/cache
+REQD_DIRS+= ${GEM_HOME}/doc
+
+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-ruby-version=${RUBY_VERSION}
+CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc"
+.endif
+
+#
+# Win32 support (for Cygwin)
+#
+PLIST_VARS+= win32
+.if ${OPSYS} == "Cygwin"
+PLIST.win32= yes
+.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 Linux and Cygwin
+#
+.if ${OPSYS} == "Linux" || ${OPSYS} == "Cygwin"
+CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
+.endif
+
+DOCS= COPYING COPYING.ja ChangeLog NEWS README \
+ README.EXT README.EXT.ja README.ja \
+ doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 doc/ChangeLog-YARV \
+ doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 doc/NEWS-1.9.3 \
+ doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \
+ doc/irb/irb-tools.rd.ja doc/irb/irb.rd.ja \
+ doc/pty/README.expect.ja doc/pty/README.ja doc/shell.rd.ja
+EXT_DOCS= 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= bin/erb bin/gem bin/irb bin/rake bin/rdoc \
+ bin/ri bin/testrb
+REPLACE_RUBY_DIRS= ext lib sample
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 \
+ ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \
+ ${RUBY_DOC}/stringio \
+ ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty
+# ${RUBY_ARCHINC} ${RUBY_ARCHLIB}
+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/fiddle/extconf.rb
+ ${RM} -f ${WRKSRC}/ext/readline/extconf.rb
+ ${RM} -f ${WRKSRC}/ext/tk/extconf.rb
+
+pre-install:
+ cd ${WRKSRC}/bin; for f in *; do ${LN} -f $$f $${f}${RUBY_VER}; done
+ 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 "../../mk/bdb.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
+.include "../../lang/ruby/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/ruby200-base/PLIST b/lang/ruby200-base/PLIST
new file mode 100644
index 00000000000..57345a17963
--- /dev/null
+++ b/lang/ruby200-base/PLIST
@@ -0,0 +1,1049 @@
+@comment $NetBSD: PLIST,v 1.1 2013/07/21 02:32:58 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}
+${PLIST.win32}bin/rubyw${RUBY_VER}
+bin/testrb${RUBY_VER}
+${RUBY_INC}/ruby.h
+${RUBY_INC}/ruby/backward/classext.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/debug.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/subst.h
+${RUBY_INC}/ruby/thread.h
+${RUBY_INC}/ruby/util.h
+${RUBY_INC}/ruby/version.h
+${RUBY_INC}/ruby/vm.h
+${RUBY_ARCHINC}/ruby/config.h
+lib/libruby${RUBY_STATICLIB}
+lib/libruby${RUBY_VER}.${RUBY_SLEXT}
+${RUBY_SHLIBALIAS}
+lib/libruby${RUBY_SHLIB}
+lib/pkgconfig/ruby-${RUBY_VERSION}.pc
+${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/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
+${PLIST.io}${RUBY_LIB}/io/console/size.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/bigdecimal.rb
+${RUBY_LIB}/json/add/complex.rb
+${RUBY_LIB}/json/add/core.rb
+${RUBY_LIB}/json/add/date.rb
+${RUBY_LIB}/json/add/date_time.rb
+${RUBY_LIB}/json/add/exception.rb
+${RUBY_LIB}/json/add/ostruct.rb
+${RUBY_LIB}/json/add/range.rb
+${RUBY_LIB}/json/add/rational.rb
+${RUBY_LIB}/json/add/regexp.rb
+${RUBY_LIB}/json/add/struct.rb
+${RUBY_LIB}/json/add/symbol.rb
+${RUBY_LIB}/json/add/time.rb
+${RUBY_LIB}/json/common.rb
+${RUBY_LIB}/json/ext.rb
+${RUBY_LIB}/json/generic_object.rb
+${RUBY_LIB}/json/version.rb
+${RUBY_LIB}/kconv.rb
+${RUBY_LIB}/logger.rb
+${RUBY_LIB}/mathn.rb
+${RUBY_LIB}/matrix.rb
+${RUBY_LIB}/matrix/eigenvalue_decomposition.rb
+${RUBY_LIB}/matrix/lup_decomposition.rb
+${RUBY_LIB}/minitest/autorun.rb
+${RUBY_LIB}/minitest/benchmark.rb
+${RUBY_LIB}/minitest/hell.rb
+${RUBY_LIB}/minitest/mock.rb
+${RUBY_LIB}/minitest/parallel_each.rb
+${RUBY_LIB}/minitest/pride.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/http/backward.rb
+${RUBY_LIB}/net/http/exceptions.rb
+${RUBY_LIB}/net/http/generic_request.rb
+${RUBY_LIB}/net/http/header.rb
+${RUBY_LIB}/net/http/proxy_delta.rb
+${RUBY_LIB}/net/http/request.rb
+${RUBY_LIB}/net/http/requests.rb
+${RUBY_LIB}/net/http/response.rb
+${RUBY_LIB}/net/http/responses.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/config.rb
+${RUBY_LIB}/openssl/digest.rb
+${RUBY_LIB}/openssl/ssl.rb
+${RUBY_LIB}/openssl/x509.rb
+${RUBY_LIB}/optparse.rb
+${RUBY_LIB}/optparse/ac.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}/psych.rb
+${RUBY_LIB}/psych/coder.rb
+${RUBY_LIB}/psych/core_ext.rb
+${RUBY_LIB}/psych/deprecated.rb
+${RUBY_LIB}/psych/handler.rb
+${RUBY_LIB}/psych/handlers/document_stream.rb
+${RUBY_LIB}/psych/handlers/recorder.rb
+${RUBY_LIB}/psych/json/ruby_events.rb
+${RUBY_LIB}/psych/json/stream.rb
+${RUBY_LIB}/psych/json/tree_builder.rb
+${RUBY_LIB}/psych/json/yaml_events.rb
+${RUBY_LIB}/psych/nodes.rb
+${RUBY_LIB}/psych/nodes/alias.rb
+${RUBY_LIB}/psych/nodes/document.rb
+${RUBY_LIB}/psych/nodes/mapping.rb
+${RUBY_LIB}/psych/nodes/node.rb
+${RUBY_LIB}/psych/nodes/scalar.rb
+${RUBY_LIB}/psych/nodes/sequence.rb
+${RUBY_LIB}/psych/nodes/stream.rb
+${RUBY_LIB}/psych/omap.rb
+${RUBY_LIB}/psych/parser.rb
+${RUBY_LIB}/psych/scalar_scanner.rb
+${RUBY_LIB}/psych/set.rb
+${RUBY_LIB}/psych/stream.rb
+${RUBY_LIB}/psych/streaming.rb
+${RUBY_LIB}/psych/syntax_error.rb
+${RUBY_LIB}/psych/tree_builder.rb
+${RUBY_LIB}/psych/visitors.rb
+${RUBY_LIB}/psych/visitors/depth_first.rb
+${RUBY_LIB}/psych/visitors/emitter.rb
+${RUBY_LIB}/psych/visitors/json_tree.rb
+${RUBY_LIB}/psych/visitors/to_ruby.rb
+${RUBY_LIB}/psych/visitors/visitor.rb
+${RUBY_LIB}/psych/visitors/yaml_tree.rb
+${RUBY_LIB}/psych/y.rb
+${RUBY_LIB}/racc/parser.rb
+${RUBY_LIB}/rake.rb
+${RUBY_LIB}/rake/alt_system.rb
+${RUBY_LIB}/rake/application.rb
+${RUBY_LIB}/rake/backtrace.rb
+${RUBY_LIB}/rake/classic_namespace.rb
+${RUBY_LIB}/rake/clean.rb
+${RUBY_LIB}/rake/cloneable.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/contrib/sys.rb
+${RUBY_LIB}/rake/default_loader.rb
+${RUBY_LIB}/rake/dsl_definition.rb
+${RUBY_LIB}/rake/early_time.rb
+${RUBY_LIB}/rake/ext/core.rb
+${RUBY_LIB}/rake/ext/module.rb
+${RUBY_LIB}/rake/ext/string.rb
+${RUBY_LIB}/rake/ext/time.rb
+${RUBY_LIB}/rake/file_creation_task.rb
+${RUBY_LIB}/rake/file_list.rb
+${RUBY_LIB}/rake/file_task.rb
+${RUBY_LIB}/rake/file_utils.rb
+${RUBY_LIB}/rake/file_utils_ext.rb
+${RUBY_LIB}/rake/gempackagetask.rb
+${RUBY_LIB}/rake/invocation_chain.rb
+${RUBY_LIB}/rake/invocation_exception_mixin.rb
+${RUBY_LIB}/rake/lib/project.rake
+${RUBY_LIB}/rake/loaders/makefile.rb
+${RUBY_LIB}/rake/multi_task.rb
+${RUBY_LIB}/rake/name_space.rb
+${RUBY_LIB}/rake/packagetask.rb
+${RUBY_LIB}/rake/pathmap.rb
+${RUBY_LIB}/rake/phony.rb
+${RUBY_LIB}/rake/private_reader.rb
+${RUBY_LIB}/rake/promise.rb
+${RUBY_LIB}/rake/pseudo_status.rb
+${RUBY_LIB}/rake/rake_module.rb
+${RUBY_LIB}/rake/rake_test_loader.rb
+${RUBY_LIB}/rake/rdoctask.rb
+${RUBY_LIB}/rake/ruby182_test_unit_fix.rb
+${RUBY_LIB}/rake/rule_recursion_overflow_error.rb
+${RUBY_LIB}/rake/runtest.rb
+${RUBY_LIB}/rake/task.rb
+${RUBY_LIB}/rake/task_argument_error.rb
+${RUBY_LIB}/rake/task_arguments.rb
+${RUBY_LIB}/rake/task_manager.rb
+${RUBY_LIB}/rake/tasklib.rb
+${RUBY_LIB}/rake/testtask.rb
+${RUBY_LIB}/rake/thread_history_display.rb
+${RUBY_LIB}/rake/thread_pool.rb
+${RUBY_LIB}/rake/trace_output.rb
+${RUBY_LIB}/rake/version.rb
+${RUBY_LIB}/rake/win32.rb
+${RUBY_LIB}/rational.rb
+${RUBY_LIB}/rbconfig/datadir.rb
+${RUBY_LIB}/rbconfig/obsolete.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/comment.rb
+${RUBY_LIB}/rdoc/constant.rb
+${RUBY_LIB}/rdoc/context.rb
+${RUBY_LIB}/rdoc/context/section.rb
+${RUBY_LIB}/rdoc/cross_reference.rb
+${RUBY_LIB}/rdoc/encoding.rb
+${RUBY_LIB}/rdoc/erb_partial.rb
+${RUBY_LIB}/rdoc/erbio.rb
+${RUBY_LIB}/rdoc/extend.rb
+${RUBY_LIB}/rdoc/generator.rb
+${RUBY_LIB}/rdoc/generator/darkfish.rb
+${RUBY_LIB}/rdoc/generator/json_index.rb
+${RUBY_LIB}/rdoc/generator/markup.rb
+${RUBY_LIB}/rdoc/generator/ri.rb
+${RUBY_LIB}/rdoc/generator/template/darkfish/_footer.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_head.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_classes.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_extends.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_includes.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_installed.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_methods.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_pages.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_parent.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_search.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_sections.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/class.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/add.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/arrow_up.png
+${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/delete.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_blue.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/tag_green.png
+${RUBY_LIB}/rdoc/generator/template/darkfish/images/transparent.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/search.js
+${RUBY_LIB}/rdoc/generator/template/darkfish/page.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/rdoc.css
+${RUBY_LIB}/rdoc/generator/template/darkfish/servlet_not_found.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/servlet_root.rhtml
+${RUBY_LIB}/rdoc/generator/template/darkfish/table_of_contents.rhtml
+${RUBY_LIB}/rdoc/generator/template/json_index/js/navigation.js
+${RUBY_LIB}/rdoc/generator/template/json_index/js/searcher.js
+${RUBY_LIB}/rdoc/ghost_method.rb
+${RUBY_LIB}/rdoc/include.rb
+${RUBY_LIB}/rdoc/known_classes.rb
+${RUBY_LIB}/rdoc/markdown.rb
+${RUBY_LIB}/rdoc/markdown/entities.rb
+${RUBY_LIB}/rdoc/markdown/literals_1_9.rb
+${RUBY_LIB}/rdoc/markup.rb
+${RUBY_LIB}/rdoc/markup/attr_changer.rb
+${RUBY_LIB}/rdoc/markup/attr_span.rb
+${RUBY_LIB}/rdoc/markup/attribute_manager.rb
+${RUBY_LIB}/rdoc/markup/attributes.rb
+${RUBY_LIB}/rdoc/markup/blank_line.rb
+${RUBY_LIB}/rdoc/markup/block_quote.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/hard_break.rb
+${RUBY_LIB}/rdoc/markup/heading.rb
+${RUBY_LIB}/rdoc/markup/include.rb
+${RUBY_LIB}/rdoc/markup/indented_paragraph.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/pre_process.rb
+${RUBY_LIB}/rdoc/markup/raw.rb
+${RUBY_LIB}/rdoc/markup/rule.rb
+${RUBY_LIB}/rdoc/markup/special.rb
+${RUBY_LIB}/rdoc/markup/text_formatter_test_case.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_html_snippet.rb
+${RUBY_LIB}/rdoc/markup/to_joined_paragraph.rb
+${RUBY_LIB}/rdoc/markup/to_label.rb
+${RUBY_LIB}/rdoc/markup/to_markdown.rb
+${RUBY_LIB}/rdoc/markup/to_rdoc.rb
+${RUBY_LIB}/rdoc/markup/to_table_of_contents.rb
+${RUBY_LIB}/rdoc/markup/to_test.rb
+${RUBY_LIB}/rdoc/markup/to_tt_only.rb
+${RUBY_LIB}/rdoc/markup/verbatim.rb
+${RUBY_LIB}/rdoc/meta_method.rb
+${RUBY_LIB}/rdoc/method_attr.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/changelog.rb
+${RUBY_LIB}/rdoc/parser/markdown.rb
+${RUBY_LIB}/rdoc/parser/rd.rb
+${RUBY_LIB}/rdoc/parser/ruby.rb
+${RUBY_LIB}/rdoc/parser/ruby_tools.rb
+${RUBY_LIB}/rdoc/parser/simple.rb
+${RUBY_LIB}/rdoc/parser/text.rb
+${RUBY_LIB}/rdoc/rd.rb
+${RUBY_LIB}/rdoc/rd/block_parser.rb
+${RUBY_LIB}/rdoc/rd/inline.rb
+${RUBY_LIB}/rdoc/rd/inline_parser.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/rubygems_hook.rb
+${RUBY_LIB}/rdoc/servlet.rb
+${RUBY_LIB}/rdoc/single_class.rb
+${RUBY_LIB}/rdoc/stats.rb
+${RUBY_LIB}/rdoc/stats/normal.rb
+${RUBY_LIB}/rdoc/stats/quiet.rb
+${RUBY_LIB}/rdoc/stats/verbose.rb
+${RUBY_LIB}/rdoc/store.rb
+${RUBY_LIB}/rdoc/task.rb
+${RUBY_LIB}/rdoc/test_case.rb
+${RUBY_LIB}/rdoc/text.rb
+${RUBY_LIB}/rdoc/token_stream.rb
+${RUBY_LIB}/rdoc/tom_doc.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/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/available_set.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/commands/yank_command.rb
+${RUBY_LIB}/rubygems/compatibility.rb
+${RUBY_LIB}/rubygems/config_file.rb
+${RUBY_LIB}/rubygems/core_ext/kernel_gem.rb
+${RUBY_LIB}/rubygems/core_ext/kernel_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/dependency_resolver.rb
+${RUBY_LIB}/rubygems/deprecate.rb
+${RUBY_LIB}/rubygems/doctor.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/cmake_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/gem_runner.rb
+${RUBY_LIB}/rubygems/gemcutter_utilities.rb
+${RUBY_LIB}/rubygems/indexer.rb
+${RUBY_LIB}/rubygems/install_message.rb
+${RUBY_LIB}/rubygems/install_update_options.rb
+${RUBY_LIB}/rubygems/installer.rb
+${RUBY_LIB}/rubygems/installer_test_case.rb
+${RUBY_LIB}/rubygems/local_remote_options.rb
+${RUBY_LIB}/rubygems/mock_gem_ui.rb
+${RUBY_LIB}/rubygems/name_tuple.rb
+${RUBY_LIB}/rubygems/package.rb
+${RUBY_LIB}/rubygems/package/digest_io.rb
+${RUBY_LIB}/rubygems/package/old.rb
+${RUBY_LIB}/rubygems/package/tar_header.rb
+${RUBY_LIB}/rubygems/package/tar_reader.rb
+${RUBY_LIB}/rubygems/package/tar_reader/entry.rb
+${RUBY_LIB}/rubygems/package/tar_test_case.rb
+${RUBY_LIB}/rubygems/package/tar_writer.rb
+${RUBY_LIB}/rubygems/package_task.rb
+${RUBY_LIB}/rubygems/path_support.rb
+${RUBY_LIB}/rubygems/platform.rb
+${RUBY_LIB}/rubygems/psych_additions.rb
+${RUBY_LIB}/rubygems/psych_tree.rb
+${RUBY_LIB}/rubygems/rdoc.rb
+${RUBY_LIB}/rubygems/remote_fetcher.rb
+${RUBY_LIB}/rubygems/request_set.rb
+${RUBY_LIB}/rubygems/requirement.rb
+${RUBY_LIB}/rubygems/security.rb
+${RUBY_LIB}/rubygems/security/policies.rb
+${RUBY_LIB}/rubygems/security/policy.rb
+${RUBY_LIB}/rubygems/security/signer.rb
+${RUBY_LIB}/rubygems/security/trust_dir.rb
+${RUBY_LIB}/rubygems/server.rb
+${RUBY_LIB}/rubygems/source.rb
+${RUBY_LIB}/rubygems/source_list.rb
+${RUBY_LIB}/rubygems/source_local.rb
+${RUBY_LIB}/rubygems/source_specific_file.rb
+${RUBY_LIB}/rubygems/spec_fetcher.rb
+${RUBY_LIB}/rubygems/specification.rb
+${RUBY_LIB}/rubygems/ssl_certs/AddTrustExternalCARoot.pem
+${RUBY_LIB}/rubygems/ssl_certs/Entrust_net-Secure-Server-Certification-Authority.pem
+${RUBY_LIB}/rubygems/ssl_certs/GeoTrust_Global_CA.pem
+${RUBY_LIB}/rubygems/ssl_certs/VerisignClass3PublicPrimaryCertificationAuthority-G2.pem
+${RUBY_LIB}/rubygems/ssl_certs/ca-bundle.pem
+${RUBY_LIB}/rubygems/syck_hack.rb
+${RUBY_LIB}/rubygems/test_case.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}/sync.rb
+${RUBY_LIB}/syslog/logger.rb
+${RUBY_LIB}/tempfile.rb
+${RUBY_LIB}/test/unit.rb
+${RUBY_LIB}/test/unit/assertions.rb
+${RUBY_LIB}/test/unit/parallel.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
+${PLIST.win32}${RUBY_LIB}/win32/registry.rb
+${PLIST.win32}${RUBY_LIB}/win32/resolv.rb
+${PLIST.win32}${RUBY_LIB}/win32/sspi.rb
+${PLIST.win32}${RUBY_LIB}/win32/sspi.rb
+${PLIST.win32}${RUBY_LIB}/Win32API.rb
+${PLIST.win32}${RUBY_LIB}/win32ole.rb
+${PLIST.win32}${RUBY_LIB}/win32ole/property.rb
+${RUBY_LIB}/xmlrpc.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_ARCHLIB}/bigdecimal.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/continuation.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/coverage.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/date_core.${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}/enc/windows_31j.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/etc.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/fcntl.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/fiber.${RUBY_DLEXT}
+${PLIST.io}${RUBY_ARCHLIB}/io/console.${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}/pathname.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/psych.${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}/syslog.${RUBY_DLEXT}
+${PLIST.win32}${RUBY_ARCHLIB}/win32ole.${RUBY_DLEXT}
+${RUBY_ARCHLIB}/zlib.${RUBY_DLEXT}
+${GEM_HOME}/gems/rake-0.9.6/bin/rake${RUBY_VER}
+${GEM_HOME}/gems/rdoc-4.0.0/bin/rdoc${RUBY_VER}
+${GEM_HOME}/gems/rdoc-4.0.0/bin/ri${RUBY_VER}
+${GEM_HOME}/gems/test-unit-2.0.0.0/bin/testrb
+${GEM_HOME}/specifications/default/bigdecimal-1.2.0.gemspec
+${GEM_HOME}/specifications/default/io-console-0.4.2.gemspec
+${GEM_HOME}/specifications/default/json-1.7.7.gemspec
+${GEM_HOME}/specifications/default/minitest-4.3.2.gemspec
+${GEM_HOME}/specifications/default/psych-2.0.0.gemspec
+${GEM_HOME}/specifications/default/rake-0.9.6.gemspec
+${GEM_HOME}/specifications/default/rdoc-4.0.0.gemspec
+${GEM_HOME}/specifications/default/test-unit-2.0.0.0.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-1.9.3
+${RUBY_DOC}/ChangeLog-YARV
+${RUBY_DOC}/NEWS
+${RUBY_DOC}/NEWS-1.8.7
+${RUBY_DOC}/NEWS-1.9.1
+${RUBY_DOC}/NEWS-1.9.2
+${RUBY_DOC}/NEWS-1.9.3
+${RUBY_DOC}/README
+${RUBY_DOC}/README.EXT
+${RUBY_DOC}/README.EXT.ja
+${RUBY_DOC}/README.ja
+${RUBY_DOC}/etc.rd.ja
+${RUBY_DOC}/forwardable.rd.ja
+${RUBY_DOC}/globals.rdoc
+${RUBY_DOC}/irb/irb-tools.rd.ja
+${RUBY_DOC}/irb/irb.rd.ja
+${RUBY_DOC}/pty/README.expect.ja
+${RUBY_DOC}/pty/README.ja
+${RUBY_DOC}/ripper/README
+${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 ${GEM_HOME}/cache
+@pkgdir ${GEM_HOME}/doc
+@pkgdir ${RUBY_SITERIDIR}
diff --git a/lang/ruby200-base/distinfo b/lang/ruby200-base/distinfo
new file mode 100644
index 00000000000..12e726cc35d
--- /dev/null
+++ b/lang/ruby200-base/distinfo
@@ -0,0 +1,27 @@
+$NetBSD: distinfo,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+SHA1 (ruby-2.0.0-p247.tar.bz2) = 9d3e5758c87a2c8016aec246f278b7551f8cb675
+RMD160 (ruby-2.0.0-p247.tar.bz2) = 4a3b6653f17c145c6938c538022c199f830a0dee
+Size (ruby-2.0.0-p247.tar.bz2) = 10804581 bytes
+SHA1 (patch-configure) = 2e1d733bbbbf1f598d0c57a9ac79f5cfa63de67f
+SHA1 (patch-defs_default__gems) = 28a47952e27c22055bac6ad151d092572b96b1ec
+SHA1 (patch-ext_tk_extconf.rb) = 537db204c7a766602529ce48ef89a2fc7cbda19f
+SHA1 (patch-lib_rdoc_ri_driver.rb) = 53ce4055b4c008c8ee13d38a81334d4846debdbc
+SHA1 (patch-lib_rubygems.rb) = ebb230dbfdeecaf764fd089d2aa1baaac1dbd34b
+SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 266f1059d3d180637eec4fa3f1ea127a29b4aff8
+SHA1 (patch-lib_rubygems_commands_uninstall__command.rb) = f39435fbdbbfcc8c756e54fcbec89a4ff796ee2d
+SHA1 (patch-lib_rubygems_commands_unpack__command.rb) = 58af5f0d1a185183ff9a4b4828ef1ca9fc074e05
+SHA1 (patch-lib_rubygems_config__file.rb) = cb7e22fa912d7043aabde8c916c45108b51e5361
+SHA1 (patch-lib_rubygems_defaults.rb) = 1af4161a83c0bf5b894c4ab3f4a77d4ee4183985
+SHA1 (patch-lib_rubygems_dependency__installer.rb) = 501860ee30861b5a1e4cf75502334145ce57f575
+SHA1 (patch-lib_rubygems_ext_ext__conf__builder.rb) = 63b6b67116073fa2fc11ece20dc9a232b322604a
+SHA1 (patch-lib_rubygems_install__update__options.rb) = 22cfafe090db72211253b8528937e5be0e677ebf
+SHA1 (patch-lib_rubygems_installer.rb) = ef2ab9f965fc7946e68c8d751d3c21a2c676f343
+SHA1 (patch-lib_rubygems_specification.rb) = 4ffe57953051f2e091ae94e022b40146f8bec7aa
+SHA1 (patch-lib_rubygems_uninstaller.rb) = bf525fc55e9bf94e1561a7cac76e09873d3aaca2
+SHA1 (patch-man_erb.1) = 1fe6ce4f4fe6418bfabb5e132a63596562030116
+SHA1 (patch-man_irb.1) = 2bf807b4c1b1c68d1f518caa054cfd900e0fedb7
+SHA1 (patch-man_ri.1) = 7314829a437e3c4625188a818e18751997eda1ce
+SHA1 (patch-man_ruby.1) = 5bc1e2e7c4c640659e33d0131d0982ce4e0d9fe0
+SHA1 (patch-test_rubygems_test__gem.rb) = 32ba1a7a2e9f6174297de969fc0b7cdcd083c764
+SHA1 (patch-tool_rbinstall.rb) = 3921235e77c9a75e19ad08434f055422ffdf3f2a
diff --git a/lang/ruby200-base/hacks.mk b/lang/ruby200-base/hacks.mk
new file mode 100644
index 00000000000..9e493eed48b
--- /dev/null
+++ b/lang/ruby200-base/hacks.mk
@@ -0,0 +1,37 @@
+# $NetBSD: hacks.mk,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+.if !defined(RUBY200_BASE_HACKS_MK)
+RUBY200_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
+### ruby193 binary built on NetBSD/sparc64 with gcc 4.5.1 and the default -O2
+### dumps core during generating RDocs.
+### Using -O1 works around.
+. if !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-O2:-O1
+. endif
+.endif
+
+# On NetBSD/sh3el 6.0, the default -Os causes an error on compiling node.c:
+# {standard input}: Assembler messages: {standard input}:1458: \
+# Error: pcrel too far
+# and -O1 works around.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sh3*) && !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-Os:-O1 rm:-freorder-blocks
+.endif
+
+.endif # RUBY200_BASE_HACKS_MK
diff --git a/lang/ruby200-base/options.mk b/lang/ruby200-base/options.mk
new file mode 100644
index 00000000000..7aad5b2353a
--- /dev/null
+++ b/lang/ruby200-base/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2013/07/21 02:32:58 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)
+#PRIVILEGED_STAGES+= clean
+RUBY_DYNAMIC_DIRS+= ${RUBY_SYSRIDIR}
+# Use huge memory.
+UNLIMIT_RESOURCES+= datasize
+.else
+CONFIGURE_ARGS+= --enable-install-doc=no
+.endif
diff --git a/lang/ruby200-base/patches/patch-configure b/lang/ruby200-base/patches/patch-configure
new file mode 100644
index 00000000000..ea3fdc2799e
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-configure
@@ -0,0 +1,119 @@
+$NetBSD: patch-configure,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Adding Interix and MirBSD support.
+* Ignore doxygen.
+
+--- configure.orig 2013-06-27 11:16:17.000000000 +0000
++++ configure
+@@ -8259,6 +8259,10 @@ esac
+ superux*) :
+ ac_cv_func_setitimer=no
+ ;; #(
++ interix*) :
++ LIBS="-lm $LIBS"
++ ac_cv_func_getpgrp_void=yes
++ ;; #(
+ nacl) :
+
+ LIBS="-lm $LIBS"
+@@ -14793,7 +14797,7 @@ _ACEOF
+ fi
+
+ case "$target_os" in #(
+- openbsd*) :
++ openbsd*|mirbsd*) :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heap align log on openbsd" >&5
+ $as_echo_n "checking for heap align log on openbsd... " >&6; }
+@@ -15067,6 +15071,8 @@ else
+ # ifdef _MSC_VER
+ # include <malloc.h>
+ # define alloca _alloca
++# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
++# include <stdlib.h>
+ # else
+ # ifdef HAVE_ALLOCA_H
+ # include <alloca.h>
+@@ -17061,7 +17067,7 @@ done
+ MAINLIBS="-pthread $MAINLIBS" ;; #(
+ *) :
+ case "$target_os" in #(
+- openbsd*) :
++ openbsd*|mirbsd*) :
+ LIBS="-pthread $LIBS" ;; #(
+ *) :
+ LIBS="-l$pthread_lib $LIBS" ;;
+@@ -17434,7 +17440,9 @@ esac ;; #(
+ 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*) :
+
+@@ -18254,7 +18262,7 @@ esac
+ freebsd*|dragonfly*) :
+
+ SOLIBS='$(LIBS)'
+- LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
++ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)\$(TEENY)'
+ if test "$rb_cv_binary_elf" != "yes" ; then
+ LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
+ LIBRUBY_ALIASES=''
+@@ -18271,7 +18279,7 @@ esac
+ LIBRUBY_ALIASES=""
+ fi
+ ;; #(
+- openbsd*) :
++ openbsd*|mirbsd*) :
+
+ SOLIBS='$(LIBS)'
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
+@@ -18332,7 +18340,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'
+ ;; #(
+ mingw*|cygwin*|mswin*) :
+
+@@ -18655,11 +18668,7 @@ if test "$install_doc" != no; then
+ else
+ RDOCTARGET="nodoc"
+ fi
+- if test "$install_capi" != no -a -n "$DOXYGEN"; then
+- CAPITARGET="capi"
+- else
+- CAPITARGET="nodoc"
+- fi
++ CAPITARGET="nodoc"
+ else
+ RDOCTARGET="nodoc"
+ CAPITARGET="nodoc"
+@@ -20884,17 +20893,7 @@ which seems to be undefined. Please mak
+ "Makefile":F)
+ tmpmk=confmk$$.tmp
+ {
+- if test ${VCS+set}; then
+- :
+- elif svn info "$srcdir" > /dev/null 2>&1; then
+- VCS='svn'
+- elif test -d "$srcdir/.git/svn"; then
+- VCS='git svn'
+- elif test -d "$srcdir/.git"; then
+- VCS='git'
+- else
+- VCS='echo cannot'
+- fi
++ VCS='echo cannot'
+ case "$VCS" in #(
+ svn) :
+ VCSUP='$(VCS) up $(SVNUPOPTIONS)' ;; #(
diff --git a/lang/ruby200-base/patches/patch-defs_default__gems b/lang/ruby200-base/patches/patch-defs_default__gems
new file mode 100644
index 00000000000..66513859b9f
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-defs_default__gems
@@ -0,0 +1,14 @@
+$NetBSD: patch-defs_default__gems,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add suffix to default gem's executables files.
+
+--- defs/default_gems.orig 2012-12-01 03:35:36.000000000 +0000
++++ defs/default_gems
+@@ -1,5 +1,5 @@
+ # gem base directory versioning file [executable files under bin]
+-rake lib/rake lib/rake/version.rb [rake]
+-rdoc lib/rdoc lib/rdoc.rb [rdoc ri]
++rake lib/rake lib/rake/version.rb [rake200]
++rdoc lib/rdoc lib/rdoc.rb [rdoc200 ri200]
+ minitest lib/minitest lib/minitest/unit.rb
+ json ext/json ext/json/lib/json/version.rb
diff --git a/lang/ruby200-base/patches/patch-ext_tk_extconf.rb b/lang/ruby200-base/patches/patch-ext_tk_extconf.rb
new file mode 100644
index 00000000000..69a8aab26a4
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-ext_tk_extconf.rb
@@ -0,0 +1,15 @@
+$NetBSD: patch-ext_tk_extconf.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Fix trivial bug fix.
+
+--- ext/tk/extconf.rb.orig 2013-06-17 15:38:49.000000000 +0000
++++ ext/tk/extconf.rb
+@@ -315,7 +315,7 @@ def find_macosx_framework
+ paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
+ next unless File.exist?(File.join(dir, "Tcl.framework", "Headers"))
+ next unless File.directory?(tcldir = File.join(dir, "Tcl.framework"))
+- next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")
++ next unless File.exist?(File.join(dir, "Tk.framework", "Headers"))
+ next unless File.directory?(tkdir = File.join(dir, "Tk.framework"))
+ TkLib_Config["tcltk-framework"] = dir
+ return [tcldir, tkdir]
diff --git a/lang/ruby200-base/patches/patch-lib_rdoc_ri_driver.rb b/lang/ruby200-base/patches/patch-lib_rdoc_ri_driver.rb
new file mode 100644
index 00000000000..f2d713dcb2d
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rdoc_ri_driver.rb
@@ -0,0 +1,37 @@
+$NetBSD: patch-lib_rdoc_ri_driver.rb,v 1.1 2013/07/21 02:32:58 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 2012-12-03 23:32:39.000000000 +0000
++++ lib/rdoc/ri/driver.rb
+@@ -2,11 +2,6 @@ require 'abbrev'
+ require 'optparse'
+
+ begin
+- require 'readline'
+-rescue LoadError
+-end
+-
+-begin
+ require 'win32console'
+ rescue LoadError
+ end
+@@ -1053,6 +1048,11 @@ The ri pager can be set with the 'RI_PAG
+ # 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
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems.rb b/lang/ruby200-base/patches/patch-lib_rubygems.rb
new file mode 100644
index 00000000000..2ea8b3e61fc
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems.rb
@@ -0,0 +1,41 @@
+$NetBSD: patch-lib_rubygems.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems.rb.orig 2013-06-21 16:16:31.000000000 +0000
++++ lib/rubygems.rb
+@@ -286,7 +286,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
+ # TODO: move to Gem::Dirs
+ return File.join install_dir, 'bin' unless
+ install_dir.to_s == Gem.default_dir.to_s
+@@ -546,12 +549,12 @@ 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.
+
+ def self.load_path_insert_index
+- index = $LOAD_PATH.index ConfigMap[:sitelibdir]
++ index = $LOAD_PATH.index ConfigMap[:vendorlibdir]
+
+ index
+ end
+@@ -724,6 +727,7 @@ module Gem
+ prefix = File.dirname RUBYGEMS_DIR
+
+ if prefix != File.expand_path(ConfigMap[:sitelibdir]) and
++ prefix != File.expand_path(ConfigMap[:vendorlibdir]) and
+ prefix != File.expand_path(ConfigMap[:libdir]) and
+ 'lib' == File.basename(RUBYGEMS_DIR) then
+ prefix
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_commands_setup__command.rb b/lang/ruby200-base/patches/patch-lib_rubygems_commands_setup__command.rb
new file mode 100644
index 00000000000..e776f2e4a9c
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_commands_setup__command.rb
@@ -0,0 +1,41 @@
+$NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Make sure to setup under DESTDIR.
+
+--- lib/rubygems/commands/setup_command.rb.orig 2013-03-17 15:13:08.000000000 +0000
++++ lib/rubygems/commands/setup_command.rb
+@@ -145,7 +145,7 @@ By default, this RubyGems will install g
+
+ uninstall_old_gemcutter
+
+- documentation_success = install_rdoc
++ documentation_success = install_rdoc install_destdir
+
+ say
+ if @verbose then
+@@ -306,11 +306,15 @@ 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
++
+ begin
+ Gem.ensure_gem_subdirectories Gem.dir
+ rescue SystemCallError
+@@ -321,7 +325,7 @@ TEXT
+ (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/ruby200-base/patches/patch-lib_rubygems_commands_uninstall__command.rb b/lang/ruby200-base/patches/patch-lib_rubygems_commands_uninstall__command.rb
new file mode 100644
index 00000000000..ec8b0c7d763
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_commands_uninstall__command.rb
@@ -0,0 +1,18 @@
+$NetBSD: patch-lib_rubygems_commands_uninstall__command.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/commands/uninstall_command.rb.orig 2012-12-06 05:26:46.000000000 +0000
++++ lib/rubygems/commands/uninstall_command.rb
+@@ -22,6 +22,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/ruby200-base/patches/patch-lib_rubygems_commands_unpack__command.rb b/lang/ruby200-base/patches/patch-lib_rubygems_commands_unpack__command.rb
new file mode 100644
index 00000000000..08787215bdb
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_commands_unpack__command.rb
@@ -0,0 +1,27 @@
+$NetBSD: patch-lib_rubygems_commands_unpack__command.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/commands/unpack_command.rb.orig 2012-11-29 06:52:18.000000000 +0000
++++ lib/rubygems/commands/unpack_command.rb
+@@ -14,6 +14,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
+@@ -69,6 +73,9 @@ class Gem::Commands::UnpackCommand < Gem
+ else
+ basename = File.basename path, '.gem'
+ target_dir = File.expand_path basename, options[:target]
++ if options[:install_root]
++ target_dir = File.join(options[:install_root], target_dir)
++ end
+
+ package = Gem::Package.new path
+ package.extract_files target_dir
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_config__file.rb b/lang/ruby200-base/patches/patch-lib_rubygems_config__file.rb
new file mode 100644
index 00000000000..ad5f65eff78
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_config__file.rb
@@ -0,0 +1,40 @@
+$NetBSD: patch-lib_rubygems_config__file.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Don't hard code config file's path for gem.
+
+--- lib/rubygems/config_file.rb.orig 2013-05-14 11:23:11.000000000 +0000
++++ lib/rubygems/config_file.rb
+@@ -56,32 +56,7 @@ class Gem::ConfigFile
+
+ # :stopdoc:
+
+- system_config_path =
+- begin
+- require "etc"
+- Etc.sysconfdir
+- rescue LoadError, NoMethodError
+- begin
+- # TODO: remove after we drop 1.8.7 and 1.9.1
+- require 'Win32API'
+-
+- CSIDL_COMMON_APPDATA = 0x0023
+- path = 0.chr * 260
+- if RUBY_VERSION > '1.9' then
+- SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP',
+- 'L', :stdcall
+- SHGetFolderPath.call nil, CSIDL_COMMON_APPDATA, nil, 1, path
+- else
+- SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'LLLLP',
+- 'L'
+- SHGetFolderPath.call 0, CSIDL_COMMON_APPDATA, 0, 1, path
+- end
+-
+- path.strip
+- rescue LoadError
+- RbConfig::CONFIG["sysconfdir"] || "/etc"
+- end
+- end
++ system_config_path = '@PKG_SYSCONFDIR@'
+
+ # :startdoc:
+
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_defaults.rb b/lang/ruby200-base/patches/patch-lib_rubygems_defaults.rb
new file mode 100644
index 00000000000..999659f33ea
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_defaults.rb
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_rubygems_defaults.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Use vendordir instead of sitedir.
+
+--- lib/rubygems/defaults.rb.orig 2013-06-21 16:16:31.000000000 +0000
++++ lib/rubygems/defaults.rb
+@@ -21,7 +21,7 @@ module Gem
+ def self.default_dir
+ path = if defined? RUBY_FRAMEWORK_VERSION then
+ [
+- File.dirname(ConfigMap[:sitedir]),
++ File.dirname(ConfigMap[:vendordir]),
+ 'Gems',
+ ConfigMap[:ruby_version]
+ ]
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb b/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb
new file mode 100644
index 00000000000..977f2205e4d
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb
@@ -0,0 +1,53 @@
+$NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/dependency_installer.rb.orig 2013-03-17 14:51:53.000000000 +0000
++++ lib/rubygems/dependency_installer.rb
+@@ -50,6 +50,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
+@@ -57,13 +58,14 @@ class Gem::DependencyInstaller
+ # :build_args:: See Gem::Installer::new
+
+ def initialize(options = {})
+- @install_dir = options[:install_dir] || Gem.dir
+-
+ if options[:install_dir] then
++ @install_dir = options[:install_dir]
+ # HACK shouldn't change the global settings, needed for -i behavior
+ # maybe move to the install command? See also github #442
+ Gem::Specification.dirs = @install_dir
+ Gem.ensure_gem_subdirectories @install_dir
++ else
++ @install_dir = Gem.dir
+ end
+
+ options = DEFAULT_OPTIONS.merge options
+@@ -92,7 +94,12 @@ class Gem::DependencyInstaller
+ @installed_gems = []
+ @toplevel_specs = nil
+
+- @cache_dir = options[:cache_dir] || @install_dir
++ @install_root = options[:install_root] || ""
++ install_dir = @install_dir
++ if not @install_root.empty?
++ 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
+@@ -364,6 +371,7 @@ class Gem::DependencyInstaller
+ :format_executable => @format_executable,
+ :ignore_dependencies => @ignore_dependencies,
+ :install_dir => @install_dir,
++ :install_root => @install_root,
+ :security_policy => @security_policy,
+ :user_install => @user_install,
+ :wrappers => @wrappers,
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_ext_ext__conf__builder.rb b/lang/ruby200-base/patches/patch-lib_rubygems_ext_ext__conf__builder.rb
new file mode 100644
index 00000000000..4af1d9d3a3b
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_ext_ext__conf__builder.rb
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_rubygems_ext_ext__conf__builder.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Expicitly remove a temporary file.
+
+--- lib/rubygems/ext/ext_conf_builder.rb.orig 2013-03-17 15:13:08.000000000 +0000
++++ lib/rubygems/ext/ext_conf_builder.rb
+@@ -49,6 +49,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ex
+
+ results
+ ensure
++ siteconf.close true
+ ENV["RUBYOPT"] = rubyopt
+ ENV["DESTDIR"] = destdir
+ end
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_install__update__options.rb b/lang/ruby200-base/patches/patch-lib_rubygems_install__update__options.rb
new file mode 100644
index 00000000000..6550c9a1942
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_install__update__options.rb
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_rubygems_install__update__options.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/install_update_options.rb.orig 2012-11-29 06:52:18.000000000 +0000
++++ lib/rubygems/install_update_options.rb
+@@ -33,6 +33,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/ruby200-base/patches/patch-lib_rubygems_installer.rb b/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb
new file mode 100644
index 00000000000..3754a75ebee
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb
@@ -0,0 +1,52 @@
+$NetBSD: patch-lib_rubygems_installer.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+* Tweak build_info directory with destdir to store build_args.
+
+--- lib/rubygems/installer.rb.orig 2013-03-17 14:51:53.000000000 +0000
++++ lib/rubygems/installer.rb
+@@ -89,6 +89,9 @@ class Gem::Installer
+ # foo_exec18.
+ # :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.
+ # :security_policy:: Use the specified security policy. See Gem::Security
+ # :user_install:: Indicate that the gem should be unpacked into the users
+ # personal gem directory.
+@@ -548,12 +551,20 @@ 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
+ @only_install_dir = options[:only_install_dir]
+
+ # 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.
+- @bin_dir = options[:bin_dir] || Gem.bindir(gem_home)
++ @bin_dir = options[:bin_dir] || Gem.bindir(gem_home, @install_root)
++ if not @install_root.empty?
++ @bin_dir = File.join(@install_root, @bin_dir)
++ end
+ @development = options[:development]
+
+ @build_args = options[:build_args] || Gem::Command.build_args
+@@ -773,7 +784,11 @@ EOF
+ def write_build_info_file
+ return if @build_args.empty?
+
+- open spec.build_info_file, 'w' do |io|
++ build_info_file = spec.build_info_file
++ unless @install_root.nil?
++ build_info_file = File.join @gem_home, "build_info", "#{spec.full_name}.info"
++ end
++ open build_info_file, 'w' do |io|
+ @build_args.each do |arg|
+ io.puts arg
+ end
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_specification.rb b/lang/ruby200-base/patches/patch-lib_rubygems_specification.rb
new file mode 100644
index 00000000000..494fed485db
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_specification.rb
@@ -0,0 +1,71 @@
+$NetBSD: patch-lib_rubygems_specification.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Changes for pkgsrc environment:
+
+ - Allow some attributes to nil.
+ - Relax date/time format.
+
+And allow multiple conditions for requirement from Ruby 2.0.0 and
+Rubygem 1.8.25.
+
+--- lib/rubygems/specification.rb.orig 2013-03-17 14:18:23.000000000 +0000
++++ lib/rubygems/specification.rb
+@@ -164,6 +164,12 @@ class Gem::Specification
+ @@default_value[k].nil?
+ }
+
++ # under pkgsrc environment
++ @@pkgsrc_nil_attributes = {}
++ [:authors, :cert_chain, :executables, :extensions, :extra_rdoc_files, :licenses, :required_rubygems_version, :test_files].each do |k|
++ @@pkgsrc_nil_attributes[k] = true
++ end
++
+ ######################################################################
+ # :section: Required gemspec attributes
+
+@@ -2317,7 +2323,24 @@ class Gem::Specification
+ normalize
+
+ nil_attributes = self.class.non_nil_attributes.find_all do |name|
+- instance_variable_get("@#{name}").nil?
++ val = instance_variable_get("@#{name}")
++ if val.nil?
++ if @@pkgsrc_nil_attributes.key?(name)
++ case name
++ when :required_rubygems_version
++ val = Gem::Requirement.default
++ else
++ val = []
++ end
++ instance_variable_set("@#{name}", val)
++ false
++ end
++ end
++ if name == :authors and val.empty?
++ val = ['not specified']
++ self.authors = val
++ false
++ end
+ end
+
+ unless nil_attributes.empty? then
+@@ -2455,10 +2478,15 @@ class Gem::Specification
+ raise Gem::InvalidSpecificationException, "#{lazy} is not a summary"
+ end
+
+- if homepage and not homepage.empty? and
+- homepage !~ /\A[a-z][a-z\d+.-]*:/i then
+- raise Gem::InvalidSpecificationException,
+- "\"#{homepage}\" is not a URI"
++ if homepage and not homepage.empty?
++ if @homepage =~ /\A[a-z][a-z\d+.-]*/i and
++ @homepage !~ /\A[a-z][a-z\d+.-]*:/i
++ @homepage = "http://" + @homepage
++ end
++ if homepage !~ /\A[a-z][a-z\d+.-]*:/i then
++ raise Gem::InvalidSpecificationException,
++ "\"#{homepage}\" is not a URI"
++ end
+ end
+
+ # Warnings
diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb b/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb
new file mode 100644
index 00000000000..6c5e3141aae
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb
@@ -0,0 +1,31 @@
+$NetBSD: patch-lib_rubygems_uninstaller.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Add install_root option for pkgsrc's rubygems support.
+
+--- lib/rubygems/uninstaller.rb.orig 2012-12-19 07:19:10.000000000 +0000
++++ lib/rubygems/uninstaller.rb
+@@ -51,6 +51,11 @@ class Gem::Uninstaller
+ @force_ignore = options[:ignore]
+ @bin_dir = options[:bin_dir]
+ @format_executable = options[:format_executable]
++ 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
+
+ # Indicate if development dependencies should be checked when
+ # uninstalling. (default: false)
+@@ -199,7 +204,11 @@ class Gem::Uninstaller
+ end
+
+ if remove then
+- bin_dir = @bin_dir || Gem.bindir(spec.base_dir)
++ bin_dir = @bin_dir || (Gem.bindir @gem_home, @install_root)
++
++ unless @install_root.nil? or @install_root == ""
++ bindir = File.join(@install_root, bindir)
++ end
+
+ raise Gem::FilePermissionError, bin_dir unless File.writable? bin_dir
+
diff --git a/lang/ruby200-base/patches/patch-man_erb.1 b/lang/ruby200-base/patches/patch-man_erb.1
new file mode 100644
index 00000000000..1c0c5146d50
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-man_erb.1
@@ -0,0 +1,24 @@
+$NetBSD: patch-man_erb.1,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Fix mdoc markup.
+
+--- man/erb.1.orig 2012-11-15 04:22:44.000000000 +0000
++++ man/erb.1
+@@ -143,12 +143,12 @@ class.
+ .Pp
+ .Sh REPORTING BUGS
+ .Bl -bullet
+-.Li Security vulnerabilities should be reported via an email to
+-.Aq security@ruby-lang.org Ns
+-.Li .
++.It
++Security vulnerabilities should be reported via an email to
++.Aq security@ruby-lang.org .
+ Reported problems will be published after being fixed.
+-.Pp
+-.Li And you can report other bugs and feature requests via the
++.It
++You can report other bugs and feature requests via the
+ Ruby Issue Tracking System (http://bugs.ruby-lang.org).
+ Do not report security vulnerabilities
+ via the system because it publishes the vulnerabilities immediately.
diff --git a/lang/ruby200-base/patches/patch-man_irb.1 b/lang/ruby200-base/patches/patch-man_irb.1
new file mode 100644
index 00000000000..c5c30c578e6
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-man_irb.1
@@ -0,0 +1,24 @@
+$NetBSD: patch-man_irb.1,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Fix mdoc markup.
+
+--- man/irb.1.orig 2012-11-15 04:22:44.000000000 +0000
++++ man/irb.1
+@@ -159,12 +159,12 @@ Personal irb initialization.
+ .Pp
+ .Sh REPORTING BUGS
+ .Bl -bullet
+-.Li Security vulnerabilities should be reported via an email to
+-.Aq security@ruby-lang.org Ns
+-.Li .
++.It
++Security vulnerabilities should be reported via an email to
++.Aq security@ruby-lang.org .
+ Reported problems will be published after being fixed.
+-.Pp
+-.Li And you can report other bugs and feature requests via the
++.It
++You can report other bugs and feature requests via the
+ Ruby Issue Tracking System (http://bugs.ruby-lang.org).
+ Do not report security vulnerabilities
+ via the system because it publishes the vulnerabilities immediately.
diff --git a/lang/ruby200-base/patches/patch-man_ri.1 b/lang/ruby200-base/patches/patch-man_ri.1
new file mode 100644
index 00000000000..73284a84857
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-man_ri.1
@@ -0,0 +1,24 @@
+$NetBSD: patch-man_ri.1,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Fix mdoc markup.
+
+--- man/ri.1.orig 2012-11-15 04:22:44.000000000 +0000
++++ man/ri.1
+@@ -165,12 +165,12 @@ Searches user-wide documents here.
+ .Pp
+ .Sh REPORTING BUGS
+ .Bl -bullet
+-.Li Security vulnerabilities should be reported via an email to
+-.Aq security@ruby-lang.org Ns
+-.Li .
++.It
++Security vulnerabilities should be reported via an email to
++.Aq security@ruby-lang.org .
+ Reported problems will be published after being fixed.
+-.Pp
+-.Li And you can report other bugs and feature requests via the
++.It
++You can report other bugs and feature requests via the
+ Ruby Issue Tracking System (http://bugs.ruby-lang.org).
+ Do not report security vulnerabilities
+ via the system because it publishes the vulnerabilities immediately.
diff --git a/lang/ruby200-base/patches/patch-man_ruby.1 b/lang/ruby200-base/patches/patch-man_ruby.1
new file mode 100644
index 00000000000..a90ff308eb0
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-man_ruby.1
@@ -0,0 +1,24 @@
+$NetBSD: patch-man_ruby.1,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Fix mdoc markup.
+
+--- man/ruby.1.orig 2013-01-11 17:44:16.000000000 +0000
++++ man/ruby.1
+@@ -499,12 +499,12 @@ Ruby projects on Github.
+ .Pp
+ .Sh REPORTING BUGS
+ .Bl -bullet
+-.Li Security vulnerabilities should be reported via an email to
+-.Aq security@ruby-lang.org Ns
+-.Li .
++.It
++Security vulnerabilities should be reported via an email to
++.Aq security@ruby-lang.org .
+ Reported problems will be published after they've been fixed.
+-.Pp
+-.Li And you can report other bugs and feature requests via the
++.It
++You can report other bugs and feature requests via the
+ Ruby Issue Tracking System (http://bugs.ruby-lang.org).
+ Do not report security vulnerabilities
+ via the system because it publishes the vulnerabilities immediately.
diff --git a/lang/ruby200-base/patches/patch-test_rubygems_test__gem.rb b/lang/ruby200-base/patches/patch-test_rubygems_test__gem.rb
new file mode 100644
index 00000000000..38367e1c700
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-test_rubygems_test__gem.rb
@@ -0,0 +1,22 @@
+$NetBSD: patch-test_rubygems_test__gem.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Use vendordir instead of sitedir.
+
+--- test/rubygems/test_gem.rb.orig 2013-03-17 15:02:50.000000000 +0000
++++ test/rubygems/test_gem.rb
+@@ -964,12 +964,12 @@ class TestGem < Gem::TestCase
+ end
+
+ def test_self_prefix_sitelibdir
+- orig_sitelibdir = Gem::ConfigMap[:sitelibdir]
+- Gem::ConfigMap[:sitelibdir] = @@project_dir
++ orig_sitelibdir = Gem::ConfigMap[:vendorlibdir]
++ Gem::ConfigMap[:vendorlibdir] = @@project_dir
+
+ assert_nil Gem.prefix
+ ensure
+- Gem::ConfigMap[:sitelibdir] = orig_sitelibdir
++ Gem::ConfigMap[:vendorlibdir] = orig_sitelibdir
+ end
+
+ def test_self_refresh
diff --git a/lang/ruby200-base/patches/patch-tool_rbinstall.rb b/lang/ruby200-base/patches/patch-tool_rbinstall.rb
new file mode 100644
index 00000000000..86a3084b533
--- /dev/null
+++ b/lang/ruby200-base/patches/patch-tool_rbinstall.rb
@@ -0,0 +1,15 @@
+$NetBSD: patch-tool_rbinstall.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
+
+* Don't install which has already ${RUBY_VER} suffix.
+
+--- tool/rbinstall.rb.orig 2013-02-07 08:02:31.000000000 +0000
++++ tool/rbinstall.rb
+@@ -213,7 +213,7 @@ def install_recursive(srcdir, dest, opti
+ end
+ end
+ end
+- skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core"
++ skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core *200"
+ prune = path_matcher(prune)
+ skip = path_matcher(skip)
+ File.directory?(srcdir) or return rescue return