pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby25-base lang/ruby25-base: add ruby25-base 2.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c36d3bf0acc
branches:  trunk
changeset: 373691:0c36d3bf0acc
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Jan 08 14:19:06 2018 +0000

description:
lang/ruby25-base: add ruby25-base 2.5.0

Ruby 2.5.0 is the first stable release of the Ruby 2.5 series. It introduces
many new features and performance improvements. The notable changes are as
follows:

o New Features

* rescue/else/ensure are now allowed to be used directly with do/end
  blocks. [Feature #12906]
* Add yield_self to yield given block in its context. Unlike tap, it returns
  the result of the block. [Feature #6721]
* Support branch coverage and method coverage measurement. The branch coverage
  indicates which branches are executed and which are not. The method coverage
  indicates which methods are invoked and which are not. By running a test
  suite with these new features, you will know which branches and methods are
  executed, and evaluate total coverage of the test suite more
  strictly. [Feature #13901]
* Hash#slice [Feature #8499] and Hash#transform_keys [Feature #13583]
* Struct.new can create classes that accept keyword arguments. [Feature
  #11925]
* Enumerable#any?, all?, none?, and one? accept a pattern argument. [Feature
  #11286]
* Top-level constant look-up is no longer available. [Feature #11547]
* One of our most loved libraries, pp.rb, is now automatically loaded. You no
  longer have to write require "pp". [Feature #14123]
* Print backtrace and error message in reverse order (oldest call first, most
  recent call last). When a long backtrace appears on your terminal (TTY), you
  can easily find the cause line at the bottom of the backtrace. Note that the
  order is reversed only when the backtrace is printed out to the terminal
  directly. [Feature #8661] [experimental]

o Performance improvements

* About 5-10% performance improvement by removing all trace instructions from
  overall bytecode (instruction sequences). The trace instruction was added to
  support the TracePoint. However, in most cases, TracePoint is not used and
  trace instructions are pure overhead. Instead, now we use a dynamic
  instrumentation technique. See [Feature #14104] for more details.
* Block passing by a block parameter (e.g. def foo(&b); bar(&b); end) is about
  3 times faster than Ruby 2.4 by ?Lazy Proc allocation? technique. [Feature
  #14045]
* Mutex is rewritten to be smaller and faster. [Feature #13517]
* ERB now generates code from a template twice as fast as Ruby 2.4.
* Improve performance of some built-in methods including Array#concat,
  Enumerable#sort_by, String#concat, String#index, Time#+, and more.
* IO.copy_stream uses copy_file_range(2) to copy offload. [Feature #13867]

o Other notable changes since 2.4

* SecureRandom now prefers OS-provided sources over OpenSSL. [Bug #9569]
* Promote cmath, csv, date, dbm, etc, fcntl, fiddle, fileutils, gdbm, ipaddr,
  scanf, sdbm, stringio, strscan, webrick, zlib from standard libraries to
  default gems.
* Update to Onigmo 6.1.3.
  - It adds the absence operator.
  - Note that Ruby 2.4.1 also includes this change.
* Update to Psych 3.0.2.
* Update to RubyGems 2.7.3.
* Update to RDoc 6.0.1.
  - Switch the lexer from IRB based one to Ripper. This dramatically improves
    the performance of document generation.
  - Fix a significant amount of bugs that existed over ten years.
  - Add support for new Ruby syntax from the latest versions.
* Update supported Unicode version to 10.0.0.
* Thread.report_on_exception is now set to true by default. This change helps
  debugging of multi-threaded programs. [Feature #14143]
* IO#write now receives multiple arguments. [Feature #9323]

See NEWS or commit logs for details.

diffstat:

 lang/ruby25-base/ALTERNATIVES                                           |     5 +
 lang/ruby25-base/DEINSTALL                                              |    14 +
 lang/ruby25-base/DESCR                                                  |    19 +
 lang/ruby25-base/INSTALL                                                |    13 +
 lang/ruby25-base/MESSAGE                                                |    13 +
 lang/ruby25-base/Makefile                                               |   110 +
 lang/ruby25-base/PLIST                                                  |  1453 ++++++++++
 lang/ruby25-base/distinfo                                               |    20 +
 lang/ruby25-base/hacks.mk                                               |    37 +
 lang/ruby25-base/options.mk                                             |    16 +
 lang/ruby25-base/patches/patch-configure                                |   138 +
 lang/ruby25-base/patches/patch-ext_dbm_extconf.rb                       |    15 +
 lang/ruby25-base/patches/patch-lib_mkmf.rb                              |    21 +
 lang/ruby25-base/patches/patch-lib_rdoc_ri_driver.rb                    |    37 +
 lang/ruby25-base/patches/patch-lib_rubygems.rb                          |    44 +
 lang/ruby25-base/patches/patch-lib_rubygems_commands_setup__command.rb  |    41 +
 lang/ruby25-base/patches/patch-lib_rubygems_config__file.rb             |    40 +
 lang/ruby25-base/patches/patch-lib_rubygems_defaults.rb                 |    15 +
 lang/ruby25-base/patches/patch-lib_rubygems_dependency__installer.rb    |    36 +
 lang/ruby25-base/patches/patch-lib_rubygems_install__update__options.rb |    20 +
 lang/ruby25-base/patches/patch-lib_rubygems_installer.rb                |    38 +
 lang/ruby25-base/patches/patch-lib_rubygems_platform.rb                 |    28 +
 lang/ruby25-base/patches/patch-lib_rubygems_specification.rb            |    22 +
 lang/ruby25-base/patches/patch-test_rubygems_test__gem.rb               |    21 +
 24 files changed, 2216 insertions(+), 0 deletions(-)

diffs (truncated from 2312 to 300 lines):

diff -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/ALTERNATIVES     Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,5 @@
+bin/erb @PREFIX@/bin/erb@RUBY_SUFFIX@
+bin/gem @PREFIX@/bin/gem@RUBY_SUFFIX@
+bin/irb @PREFIX@/bin/irb@RUBY_SUFFIX@
+bin/rake @PREFIX@/bin/rake@RUBY_SUFFIX@
+bin/ruby @PREFIX@/bin/@RUBY_NAME@
diff -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/DEINSTALL        Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2018/01/08 14:19:06 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 -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/DESCR    Mon Jan 08 14:19:06 2018 +0000
@@ -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.5 release minimum base package.
diff -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/INSTALL  Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: INSTALL,v 1.1 2018/01/08 14:19:06 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 -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/MESSAGE  Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2018/01/08 14:19:06 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-fiddle:              Fiddle module
+       devel/ruby-readline:            readline module
+
+===========================================================================
diff -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/Makefile Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,110 @@
+# $NetBSD: Makefile,v 1.1 2018/01/08 14:19:06 taca Exp $
+
+DISTNAME=      ${RUBY_DISTNAME}
+PKGNAME=       ${RUBY_PKGPREFIX}-base-${RUBY_VERSION}
+CATEGORIES=    lang ruby
+MASTER_SITES=  ${MASTER_SITE_RUBY}
+
+MAINTAINER=    taca%NetBSD.org@localhost
+HOMEPAGE=      ${RUBY_HOMEPAGE}
+COMMENT=       Ruby ${RUBY_VERSION} release minimum base package
+
+RUBY_VERSIONS_ACCEPTED=        25
+
+USE_LANGUAGES=         c
+USE_TOOLS+=            pax yacc pkg-config
+GNU_CONFIGURE=         yes
+TEST_TARGET=           test
+CONFIGURE_ARGS+=       --enable-shared --enable-install-static-library
+WRKSRC=                        ${RUBY_WRKSRC}
+
+.include "options.mk"
+.include "../../lang/ruby/platform.mk"
+
+.if !empty(RUBY_SUFFIX)
+CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX}
+CONFIGURE_ARGS+= --with-soname=${RUBY_NAME}
+CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR}
+CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc"
+.endif
+
+DOCS=  BSDL COPYING COPYING.ja ChangeLog LEGAL NEWS README.EXT README.EXT.ja \
+       README.ja.md README.md doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 \
+       doc/ChangeLog-2.0.0 doc/ChangeLog-2.1.0 doc/ChangeLog-2.2.0 \
+       doc/ChangeLog-2.3.0 doc/ChangeLog-2.4.0 doc/ChangeLog-YARV \
+       doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 doc/NEWS-1.9.3 \
+       doc/NEWS-2.0.0 doc/NEWS-2.1.0 doc/NEWS-2.2.0 doc/NEWS-2.3.0 \
+       doc/contributing.rdoc doc/contributors.rdoc doc/dtrace_probes.rdoc \
+       doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \
+       doc/images/boottime-classes.png doc/irb/irb-tools.rd.ja \
+       doc/irb/irb.rd.ja doc/keywords.rdoc doc/maintainers.rdoc \
+       doc/marshal.rdoc doc/pty/README.expect.ja doc/pty/README.ja \
+       doc/regexp.rdoc doc/security.rdoc doc/shell.rd.ja \
+       doc/standard_library.rdoc doc/syntax/assignment.rdoc \
+       doc/syntax/calling_methods.rdoc doc/syntax/control_expressions.rdoc \
+       doc/syntax/exceptions.rdoc doc/syntax/literals.rdoc \
+       doc/syntax/methods.rdoc doc/syntax/miscellaneous.rdoc \
+       doc/syntax/modules_and_classes.rdoc doc/syntax/precedence.rdoc \
+       doc/syntax/refinements.rdoc doc/syntax.rdoc
+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 \
+                       gems/rake-${RUBY_RAKE_VERSION}/exe/rake \
+                       gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/console \
+                       gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/setup
+REPLACE_RUBY_DIRS=     ext lib sample
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${RUBY_DOC}/images \
+                       ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \
+                       ${RUBY_DOC}/stringio ${RUBY_DOC}/syntax \
+                       ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty
+# ${RUBY_ARCHINC} ${RUBY_ARCHLIB}
+EMPTY_DIRS=            generator/template markup/simple_markup
+
+pre-configure:
+       ${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
+       ${RM} -f ${WRKSRC}/ext/tk/tkutil/extconf.rb
+       ${TOUCH} ${WRKSRC}/prelude.c
+
+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.md ${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
+       ${CHMOD} -R g-w ${DESTDIR}${PREFIX}/${GEM_HOME}/gems
+       ${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 -r 352fd2d0bc69 -r 0c36d3bf0acc lang/ruby25-base/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby25-base/PLIST    Mon Jan 08 14:19:06 2018 +0000
@@ -0,0 +1,1453 @@
+@comment $NetBSD: PLIST,v 1.1 2018/01/08 14:19:06 taca Exp $
+bin/erb${RUBY_SUFFIX}
+bin/gem${RUBY_SUFFIX}
+bin/irb${RUBY_SUFFIX}
+bin/rake${RUBY_SUFFIX}
+bin/rdoc${RUBY_SUFFIX}
+bin/ri${RUBY_SUFFIX}
+bin/${RUBY_NAME}
+${PLIST.win32}bin/rubyw${RUBY_SUFFIX}
+${RUBY_INC}/ruby.h
+${RUBY_INC}/ruby/backward.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/encoding.h
+${RUBY_INC}/ruby/intern.h
+${RUBY_INC}/ruby/io.h
+${RUBY_INC}/ruby/missing.h
+${RUBY_INC}/ruby/onigmo.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/thread_native.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_SUFFIX}.${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}/csv.rb
+${RUBY_LIB}/date.rb
+${RUBY_LIB}/debug.rb
+${RUBY_LIB}/delegate.rb
+${RUBY_LIB}/digest.rb
+${RUBY_LIB}/digest/sha2.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}/forwardable/impl.rb
+${RUBY_LIB}/getoptlong.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



Home | Main Index | Thread Index | Old Index