pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby27-base lang/ruby27-base: add ruby-base versi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/402adca34cf3
branches:  trunk
changeset: 424789:402adca34cf3
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Mar 15 15:26:22 2020 +0000

description:
lang/ruby27-base: add ruby-base version 2.7.0

Add ruby27-base 2.7.0 package.  This package is Ruby 2.7 release
minimum base package.


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, etc.)

Ruby 2.7 introduces a number of new features and performance
improvements, most notably:

  * Pattern Matching (Experimental)
  * REPL improvement
  * Compaction GC
  * Separation of positional and keyword arguments

diffstat:

 lang/ruby27-base/ALTERNATIVES                                           |    11 +
 lang/ruby27-base/DEINSTALL                                              |    14 +
 lang/ruby27-base/DESCR                                                  |    27 +
 lang/ruby27-base/INSTALL                                                |    13 +
 lang/ruby27-base/MESSAGE                                                |    13 +
 lang/ruby27-base/Makefile                                               |   129 +
 lang/ruby27-base/PLIST                                                  |  1811 ++++++++++
 lang/ruby27-base/distinfo                                               |    20 +
 lang/ruby27-base/hacks.mk                                               |    44 +
 lang/ruby27-base/options.mk                                             |    15 +
 lang/ruby27-base/patches/patch-configure                                |   137 +
 lang/ruby27-base/patches/patch-ext_dbm_extconf.rb                       |    15 +
 lang/ruby27-base/patches/patch-lib_mkmf.rb                              |    30 +
 lang/ruby27-base/patches/patch-lib_rdoc_encoding.rb                     |    15 +
 lang/ruby27-base/patches/patch-lib_rdoc_ri_driver.rb                    |    37 +
 lang/ruby27-base/patches/patch-lib_rubygems.rb                          |    44 +
 lang/ruby27-base/patches/patch-lib_rubygems_commands_setup__command.rb  |    41 +
 lang/ruby27-base/patches/patch-lib_rubygems_defaults.rb                 |    15 +
 lang/ruby27-base/patches/patch-lib_rubygems_dependency__installer.rb    |    36 +
 lang/ruby27-base/patches/patch-lib_rubygems_install__update__options.rb |    20 +
 lang/ruby27-base/patches/patch-lib_rubygems_installer.rb                |    41 +
 lang/ruby27-base/patches/patch-lib_rubygems_platform.rb                 |    29 +
 lang/ruby27-base/patches/patch-test_rubygems_test__gem.rb               |    21 +
 lang/ruby27-base/patches/patch-thread__pthread.c                        |    16 +
 24 files changed, 2594 insertions(+), 0 deletions(-)

diffs (truncated from 2690 to 300 lines):

diff -r 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/ALTERNATIVES     Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,11 @@
+bin/bundle @PREFIX@/bin/bundle@RUBY_SUFFIX@
+bin/bundler @PREFIX@/bin/bundler@RUBY_SUFFIX@
+bin/erb @PREFIX@/bin/erb@RUBY_SUFFIX@
+bin/gem @PREFIX@/bin/gem@RUBY_SUFFIX@
+bin/irb @PREFIX@/bin/irb@RUBY_SUFFIX@
+bin/racc @PREFIX@/bin/racc@RUBY_SUFFIX@
+bin/racc2y @PREFIX@/bin/racc2y@RUBY_SUFFIX@
+bin/rdoc @PREFIX@/bin/rdoc@RUBY_SUFFIX@
+bin/ri @PREFIX@/bin/ri@RUBY_SUFFIX@
+bin/ruby @PREFIX@/bin/@RUBY_NAME@
+bin/y2racc @PREFIX@/bin/y2racc@RUBY_SUFFIX@
diff -r 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/DEINSTALL        Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2020/03/15 15:26:22 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 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/DESCR    Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,27 @@
+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, etc.)
+
+Ruby 2.7 introduces a number of new features and performance
+improvements, most notably:
+
+  * Pattern Matching (Experimental)
+  * REPL improvement
+  * Compaction GC
+  * Separation of positional and keyword arguments
+
+This package is Ruby 2.7 release minimum base package.
diff -r 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/INSTALL  Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: INSTALL,v 1.1 2020/03/15 15:26:22 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 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/MESSAGE  Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/03/15 15:26:22 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 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/Makefile Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,129 @@
+# $NetBSD: Makefile,v 1.1 2020/03/15 15:26:22 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=        27
+
+MAKE_JOBS_SAFE=                no
+USE_GCC_RUNTIME=       yes
+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
+
+CONFIGURE_ENV.Darwin+= ac_cv_prog_dsymutil=
+
+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/NEWS-2.4.0 doc/NEWS-2.5.0 \
+               doc/NEWS-2.6.0 doc/bug_triaging.rdoc doc/contributing.rdoc \
+               doc/contributors.rdoc doc/dtrace_probes.rdoc \
+               doc/extension.ja.rdoc doc/extension.rdoc \
+               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/signals.rdoc \
+               doc/standard_library.rdoc doc/syntax/assignment.rdoc \
+               doc/syntax/calling_methods.rdoc doc/syntax/comments.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
+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/bundle bin/bin/bundler bin/erb bin/gem bin/irb \
+                       bin/racc bin/racc2y bin/rdoc bin/ri bin/y2racc \
+                       libexec/bundle libexec/bundler libexec/irb \
+                       libexec/racc libexec/racc2y libexec/rdoc libexec/ri \
+                       libexec/y2racc \
+                       gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/console \
+                       gems/power_assert-1.1.5/bin/console \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/bundle \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/console \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/rake \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/rdoc \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/rubocop \
+                       gems/rake-${RUBY_RAKE_VERSION}/bin/setup \
+                       gems/rake-${RUBY_RAKE_VERSION}/exe/rake \
+                       gems/xmlrpc-0.3.0/bin/console
+REPLACE_RUBY_DIRS=     ext lib sample
+INSTALLATION_DIRS=     bin libexec ${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
+
+NOT_PAX_MPROTECT_SAFE+=        bin/${RUBY_NAME}
+
+pre-configure:
+       ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb
+       ${RM} -f ${WRKSRC}/ext/fiddle/extconf.rb
+       ${RM} -f ${WRKSRC}/ext/readline/extconf.rb
+       ${TOUCH} ${WRKSRC}/prelude.c
+       ${CHMOD} -x ${WRKSRC}/sample/test.rb
+
+pre-install:
+       cd ${WRKSRC}/lib; \
+               ${FIND} . \( -name '*.orig' -o -name '*.orig_dist' \) \
+               -exec ${RM} -f {} \;
+.for f in ${EMPTY_DIRS}
+       ${RMDIR} ${WRKSRC}/lib/rdoc/${f} 2>/dev/null || ${TRUE}
+.endfor
+
+post-install:
+.for f in ${DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/${f:C/^doc\///}
+.endfor
+.for f in ${EXT_DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}
+.endfor
+       cd ${WRKSRC}/ext/ripper; ${PAX} -rw README ${DESTDIR}${PREFIX}/${RUBY_DOC}/ripper
+       cd ${WRKSRC}/ext/stringio; ${PAX} -rw README.md ${DESTDIR}${PREFIX}/${RUBY_DOC}/stringio
+       cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG}
+.for f in ${BIGDECIMAL_EXAMPLES}
+       ${INSTALL_DATA} ${WRKSRC}/ext/bigdecimal/sample/${f} \
+               ${DESTDIR}${PREFIX}/${RUBY_EG}/bigdecimal
+.endfor
+.for f in ${OPENSSL_EXAMPLES}
+       ${INSTALL_DATA} ${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 260be30dd6a9 -r 402adca34cf3 lang/ruby27-base/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby27-base/PLIST    Sun Mar 15 15:26:22 2020 +0000
@@ -0,0 +1,1811 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/15 15:26:22 taca Exp $
+bin/bundle${RUBY_SUFFIX}
+bin/bundler${RUBY_SUFFIX}
+bin/erb${RUBY_SUFFIX}
+bin/gem${RUBY_SUFFIX}
+bin/irb${RUBY_SUFFIX}
+bin/racc${RUBY_SUFFIX}
+bin/racc2y${RUBY_SUFFIX}
+bin/rake${RUBY_SUFFIX}
+bin/rdoc${RUBY_SUFFIX}
+bin/ri${RUBY_SUFFIX}
+bin/${RUBY_NAME}
+bin/y2racc${RUBY_SUFFIX}
+${PLIST.win32}bin/rubyw${RUBY_SUFFIX}
+${RUBY_INC}/ruby.h
+${RUBY_INC}/ruby/assert.h
+${RUBY_INC}/ruby/backward.h
+${RUBY_INC}/ruby/backward/classext.h
+${RUBY_INC}/ruby/backward/cxxanyargs.hpp
+${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}/rb_mjit_min_header-${RUBY_VERSION}.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}/benchmark/version.rb
+${RUBY_LIB}/bigdecimal.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}/bundler.rb
+${RUBY_LIB}/bundler/build_metadata.rb
+${RUBY_LIB}/bundler/capistrano.rb
+${RUBY_LIB}/bundler/cli.rb
+${RUBY_LIB}/bundler/cli/add.rb



Home | Main Index | Thread Index | Old Index