pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby24-base Add ruby24-base (Ruby 2.4.1 core) to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1732a24a770
branches:  trunk
changeset: 363871:c1732a24a770
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Jun 18 13:45:11 2017 +0000

description:
Add ruby24-base (Ruby 2.4.1 core) to pkgsrc.

Ruby 2.4.1                                              22 Mar 2017

Ruby 2.4.1 is the first TEENY version release of the stable 2.4 series.

See commit logs for details:
        https://github.com/ruby/ruby/compare/v2_4_0...v2_4_1


Ruby 2.4.0                                              25 Dec 2016

o Introduce hash table improvement (by Vladimir Makarov)

  Improve the internal structure of hash table (st_table) by introducing open
  addressing and an inclusion order array. This improvement has been discussed
  with many people, especially with Yura Sokolov.

o Binding#irb: Start a REPL session similar to binding.pry

  While you are debugging, you may often use p to see the value of
  variables. With pry you can use binding.pry in your application to launch a
  REPL and run any Ruby code. r56624 introduces binding.irb which behaves like
  that with irb.

o Unify Fixnum and Bignum into Integer

  Though ISO/IEC 30170:2012 doesn??t specify details of the Integer class,
  Ruby had two visible Integer classes: Fixnum and Bignum. Ruby 2.4 unifies
  them into Integer. All C extensions which touch the Fixnum or Bignum class
  need to be fixed.

  See also the ticket and akr??s slides.

o String supports Unicode case mappings

  String/Symbol#upcase/downcase/swapcase/capitalize(!) now handle Unicode case
  mappings instead of only ASCII case mappings.

o Performance improvements

  Ruby 2.4 also contains the following performance improvements including
  language changes:

  * Array#max, Array#min

    [x, y].max and [x, y].min are optimized to not create a temporary array
    under certain conditions.

  * Regexp#match?

    Added Regexp#match?, which executes a regexp match without creating a back
    reference object and changing $~ to reduce object allocation.

  * Other performance improvements

    - speed up instance variable access

o Debugging

  * Thread#report_on_exception and Thread.report_on_exception

    Ruby ignores exceptions in threads unless another thread explicitly joins
    them. With report_on_exception = true, you can notice if a thread has died
    due to an unhandled exception.

    Send us feedback what should be the default for report_on_exception and
    about report-on-GC, which shows a report when a thread is garbage
    collected without join.

  * Thread deadlock detection now shows threads with their backtrace and
    dependency

    Ruby has deadlock detection around waiting threads, but its report
    doesn??t include enough information for debugging. Ruby 2.4??s deadlock
    detection shows threads with their backtrace and dependent threads.

o Other notable changes since 2.3

  * Support OpenSSL 1.1.0 (drop support for 0.9.7 or prior)
  * ext/tk is now removed from stdlib Feature #8539
  * XMLRPC is now removed from stdlib Feature #12160

  See NEWS or commit logs for details.

diffstat:

 lang/ruby24-base/ALTERNATIVES                                           |     5 +
 lang/ruby24-base/DEINSTALL                                              |    14 +
 lang/ruby24-base/DESCR                                                  |    19 +
 lang/ruby24-base/INSTALL                                                |    14 +
 lang/ruby24-base/MESSAGE                                                |    13 +
 lang/ruby24-base/Makefile                                               |   110 +
 lang/ruby24-base/PLIST                                                  |  1421 ++++++++++
 lang/ruby24-base/distinfo                                               |    25 +
 lang/ruby24-base/hacks.mk                                               |    37 +
 lang/ruby24-base/options.mk                                             |    16 +
 lang/ruby24-base/patches/patch-configure                                |   113 +
 lang/ruby24-base/patches/patch-ext_dbm_extconf.rb                       |    15 +
 lang/ruby24-base/patches/patch-ext_openssl_ossl__ssl.c                  |    15 +
 lang/ruby24-base/patches/patch-lib_mkmf.rb                              |    21 +
 lang/ruby24-base/patches/patch-lib_rdoc_ri_driver.rb                    |    37 +
 lang/ruby24-base/patches/patch-lib_rubygems.rb                          |    44 +
 lang/ruby24-base/patches/patch-lib_rubygems_commands_setup__command.rb  |    41 +
 lang/ruby24-base/patches/patch-lib_rubygems_config__file.rb             |    40 +
 lang/ruby24-base/patches/patch-lib_rubygems_defaults.rb                 |    15 +
 lang/ruby24-base/patches/patch-lib_rubygems_dependency__installer.rb    |    36 +
 lang/ruby24-base/patches/patch-lib_rubygems_install__update__options.rb |    20 +
 lang/ruby24-base/patches/patch-lib_rubygems_installer.rb                |    38 +
 lang/ruby24-base/patches/patch-lib_rubygems_platform.rb                 |    28 +
 lang/ruby24-base/patches/patch-lib_rubygems_specification.rb            |    22 +
 lang/ruby24-base/patches/patch-man_erb.1                                |    22 +
 lang/ruby24-base/patches/patch-man_irb.1                                |    22 +
 lang/ruby24-base/patches/patch-man_ri.1                                 |    22 +
 lang/ruby24-base/patches/patch-man_ruby.1                               |    22 +
 lang/ruby24-base/patches/patch-test_rubygems_test__gem.rb               |    21 +
 29 files changed, 2268 insertions(+), 0 deletions(-)

diffs (truncated from 2384 to 300 lines):

diff -r a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/ALTERNATIVES     Sun Jun 18 13:45:11 2017 +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 a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/DEINSTALL        Sun Jun 18 13:45:11 2017 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2017/06/18 13:45:11 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 a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/DESCR    Sun Jun 18 13:45:11 2017 +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.4 release minimum base package.
diff -r a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/INSTALL  Sun Jun 18 13:45:11 2017 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: INSTALL,v 1.1 2017/06/18 13:45:11 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 a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/MESSAGE  Sun Jun 18 13:45:11 2017 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2017/06/18 13:45:11 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 a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/Makefile Sun Jun 18 13:45:11 2017 +0000
@@ -0,0 +1,110 @@
+# $NetBSD: Makefile,v 1.1 2017/06/18 13:45:11 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=        24
+
+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 a98c74ab33d1 -r c1732a24a770 lang/ruby24-base/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby24-base/PLIST    Sun Jun 18 13:45:11 2017 +0000
@@ -0,0 +1,1421 @@
+@comment $NetBSD: PLIST,v 1.1 2017/06/18 13:45:11 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



Home | Main Index | Thread Index | Old Index