pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby31-base lang/ruby31-base: add package version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94f05d4a4b16
branches:  trunk
changeset: 371904:94f05d4a4b16
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Jan 16 13:57:10 2022 +0000

description:
lang/ruby31-base: add package version 3.1.0

Ruby is a dynamic, open source programming language with a focus on
simplicity and productivity.  It has an elegant syntax that is natural to
read and easy to write.

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

Ruby 3.1 introduces a number of new features and performance improvements,
here are some of them:
  * Performance: YJIT: New experimental in-process JIT compiler
  * Development supports
        - debug gem: A new debugger
        - error_highlight: Fine-grained error location in backtrace
        - IRB Autocomplete and Document Display

This package is Ruby 3.1 release minimum base package.

diffstat:

 lang/ruby31-base/ALTERNATIVES                                           |    15 +
 lang/ruby31-base/DEINSTALL                                              |    14 +
 lang/ruby31-base/DESCR                                                  |    24 +
 lang/ruby31-base/INSTALL                                                |    13 +
 lang/ruby31-base/MESSAGE                                                |    12 +
 lang/ruby31-base/Makefile                                               |   115 +
 lang/ruby31-base/PLIST                                                  |  2552 ++++++++++
 lang/ruby31-base/distinfo                                               |    20 +
 lang/ruby31-base/hacks.mk                                               |    44 +
 lang/ruby31-base/options.mk                                             |    15 +
 lang/ruby31-base/patches/patch-common.mk                                |    15 +
 lang/ruby31-base/patches/patch-configure                                |   150 +
 lang/ruby31-base/patches/patch-ext_openssl_openssl__missing.h           |    15 +
 lang/ruby31-base/patches/patch-lib_mkmf.rb                              |    30 +
 lang/ruby31-base/patches/patch-lib_rdoc_encoding.rb                     |    15 +
 lang/ruby31-base/patches/patch-lib_rdoc_ri_driver.rb                    |    37 +
 lang/ruby31-base/patches/patch-lib_rubygems.rb                          |    44 +
 lang/ruby31-base/patches/patch-lib_rubygems_commands_setup__command.rb  |    41 +
 lang/ruby31-base/patches/patch-lib_rubygems_dependency__installer.rb    |    36 +
 lang/ruby31-base/patches/patch-lib_rubygems_install__update__options.rb |    20 +
 lang/ruby31-base/patches/patch-lib_rubygems_installer.rb                |    42 +
 lang/ruby31-base/patches/patch-lib_rubygems_platform.rb                 |    29 +
 lang/ruby31-base/patches/patch-test_rubygems_test__gem.rb               |    21 +
 lang/ruby31-base/patches/patch-thread__pthread.c                        |    16 +
 lang/ruby31-base/patches/patch-tool_ifchange                            |    15 +
 25 files changed, 3350 insertions(+), 0 deletions(-)

diffs (truncated from 3450 to 300 lines):

diff -r bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/ALTERNATIVES     Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,15 @@
+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/rake @PREFIX@/bin/rake@RUBY_SUFFIX@
+bin/rbs @PREFIX@/bin/rbs@RUBY_SUFFIX@
+bin/rdoc @PREFIX@/bin/rdoc@RUBY_SUFFIX@
+bin/ri @PREFIX@/bin/ri@RUBY_SUFFIX@
+bin/ruby @PREFIX@/bin/@RUBY_NAME@
+bin/typeprof @PREFIX@/bin/typeprof@RUBY_SUFFIX@
+@PKGMANDIR@/man1/erb.1 @PREFIX@/@PKGMANDIR@/man1/erb@RUBY_SUFFIX@.1
+@PKGMANDIR@/man1/irb.1 @PREFIX@/@PKGMANDIR@/man1/irb@RUBY_SUFFIX@.1
+@PKGMANDIR@/man1/ruby.1 @PREFIX@/@PKGMANDIR@/man1/ruby@RUBY_SUFFIX@.1
diff -r bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/DEINSTALL        Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2022/01/16 13:57:10 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 bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/DESCR    Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,24 @@
+Ruby is a dynamic, open source programming language with a focus on
+simplicity and productivity.  It has an elegant syntax that is natural to
+read and easy to write.
+
+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 Windows, Mac, etc.)
+
+Ruby 3.1 introduces a number of new features and performance improvements,
+here are some of them:
+  * Performance: YJIT: New experimental in-process JIT compiler
+  * Development supports
+       - debug gem: A new debugger
+       - error_highlight: Fine-grained error location in backtrace
+       - IRB Autocomplete and Document Display
+
+This package is Ruby 3.1 release minimum base package.
diff -r bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/INSTALL  Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: INSTALL,v 1.1 2022/01/16 13:57:10 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 bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/MESSAGE  Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/01/16 13:57:10 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:
+
+       devel/ruby-fiddle:              Fiddle module
+       devel/ruby-readline:            readline module
+
+===========================================================================
diff -r bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/Makefile Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,115 @@
+# $NetBSD: Makefile,v 1.1 2022/01/16 13:57:10 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=        31
+
+MAKE_JOBS_SAFE=                no
+USE_GCC_RUNTIME=       yes
+USE_LANGUAGES=         c c++
+USE_TOOLS+=            pax yacc pkg-config
+GNU_CONFIGURE=         yes
+TEST_TARGET=           test
+CONFIGURE_ARGS+=       --enable-shared --enable-install-static-library
+MAKE_ENV+=             XDG_DATA_HOME=${WRKDIR}
+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+=                ac_cv_path_MJIT_CC=${CC}
+CONFIGURE_ENV.Darwin+= ac_cv_prog_dsymutil=
+
+DOCS=          BSDL CONTRIBUTING.md COPYING COPYING.ja ChangeLog GPL \
+               KNOWNBUGS.rb LEGAL NEWS.md README.ja.md README.md \
+               README.EXT README.EXT.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=          \
+       libexec/bundle libexec/bundler libexec/erb libexec/irb \
+       libexec/racc libexec/rdoc libexec/ri \
+       .bundle/gems/debug-${RUBY_DEBUG_VER}/exe/rdbg \
+       .bundle/gems/rake-${RUBY_RAKE_VER}/exe/rake \
+       .bundle/gems/rbs-${RUBY_RBS_VER}/exe/rbs \
+       .bundle/gems/typeprof-${RUBY_TYPEPROF_VER}/exe/typeprof
+REPLACE_RUBY_DIRS=     ext lib sample
+INSTALLATION_DIRS+=    bin libexec ${PKGMANDIR}/man1 \
+                       ${RUBY_DOC}/csv/arguments \
+                       ${RUBY_DOC}/csv/options/common \
+                       ${RUBY_DOC}/csv/options/generating \
+                       ${RUBY_DOC}/csv/options/parsing \
+                       ${RUBY_DOC}/csv/recipes \
+                       ${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/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:
+       cd ${DESTDIR}${PREFIX}/${GEM_HOME} && \
+               find . \! -type d \( -name 'Makefile*' -o -name '.*.time' \
+                       -o -name '*.o' -o -name 'gem_make.out' \) -exec rm {} \;
+       cd ${WRKSRC}/doc && ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_DOC}
+.for f in ${DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_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/libffi/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 bd7957f269b8 -r 94f05d4a4b16 lang/ruby31-base/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/PLIST    Sun Jan 16 13:57:10 2022 +0000
@@ -0,0 +1,2552 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/16 13:57:10 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/rake${RUBY_SUFFIX}
+bin/rbs${RUBY_SUFFIX}
+bin/rdbg${RUBY_SUFFIX}
+bin/rdoc${RUBY_SUFFIX}
+bin/ri${RUBY_SUFFIX}
+bin/${RUBY_NAME}
+bin/typeprof${RUBY_SUFFIX}
+${PLIST.win32}bin/rubyw${RUBY_SUFFIX}
+${RUBY_INC}/ruby.h
+${RUBY_INC}/ruby/assert.h
+${RUBY_INC}/ruby/atomic.h
+${RUBY_INC}/ruby/backward.h
+${RUBY_INC}/ruby/backward/2/assume.h
+${RUBY_INC}/ruby/backward/2/attributes.h
+${RUBY_INC}/ruby/backward/2/bool.h
+${RUBY_INC}/ruby/backward/2/gcc_version_since.h
+${RUBY_INC}/ruby/backward/2/inttypes.h
+${RUBY_INC}/ruby/backward/2/limits.h
+${RUBY_INC}/ruby/backward/2/long_long.h
+${RUBY_INC}/ruby/backward/2/r_cast.h
+${RUBY_INC}/ruby/backward/2/rmodule.h
+${RUBY_INC}/ruby/backward/2/stdalign.h
+${RUBY_INC}/ruby/backward/2/stdarg.h
+${RUBY_INC}/ruby/backward/cxxanyargs.hpp
+${RUBY_INC}/ruby/debug.h
+${RUBY_INC}/ruby/defines.h
+${RUBY_INC}/ruby/digest.h
+${RUBY_INC}/ruby/encoding.h
+${RUBY_INC}/ruby/fiber/scheduler.h
+${RUBY_INC}/ruby/intern.h
+${RUBY_INC}/ruby/internal/anyargs.h
+${RUBY_INC}/ruby/internal/arithmetic.h
+${RUBY_INC}/ruby/internal/arithmetic/char.h
+${RUBY_INC}/ruby/internal/arithmetic/double.h
+${RUBY_INC}/ruby/internal/arithmetic/fixnum.h
+${RUBY_INC}/ruby/internal/arithmetic/gid_t.h
+${RUBY_INC}/ruby/internal/arithmetic/int.h
+${RUBY_INC}/ruby/internal/arithmetic/intptr_t.h
+${RUBY_INC}/ruby/internal/arithmetic/long.h
+${RUBY_INC}/ruby/internal/arithmetic/long_long.h
+${RUBY_INC}/ruby/internal/arithmetic/mode_t.h
+${RUBY_INC}/ruby/internal/arithmetic/off_t.h
+${RUBY_INC}/ruby/internal/arithmetic/pid_t.h
+${RUBY_INC}/ruby/internal/arithmetic/short.h
+${RUBY_INC}/ruby/internal/arithmetic/size_t.h
+${RUBY_INC}/ruby/internal/arithmetic/st_data_t.h
+${RUBY_INC}/ruby/internal/arithmetic/uid_t.h
+${RUBY_INC}/ruby/internal/assume.h
+${RUBY_INC}/ruby/internal/attr/alloc_size.h
+${RUBY_INC}/ruby/internal/attr/artificial.h
+${RUBY_INC}/ruby/internal/attr/cold.h
+${RUBY_INC}/ruby/internal/attr/const.h
+${RUBY_INC}/ruby/internal/attr/constexpr.h
+${RUBY_INC}/ruby/internal/attr/deprecated.h
+${RUBY_INC}/ruby/internal/attr/diagnose_if.h
+${RUBY_INC}/ruby/internal/attr/enum_extensibility.h
+${RUBY_INC}/ruby/internal/attr/error.h
+${RUBY_INC}/ruby/internal/attr/flag_enum.h
+${RUBY_INC}/ruby/internal/attr/forceinline.h
+${RUBY_INC}/ruby/internal/attr/format.h
+${RUBY_INC}/ruby/internal/attr/maybe_unused.h
+${RUBY_INC}/ruby/internal/attr/noalias.h
+${RUBY_INC}/ruby/internal/attr/nodiscard.h
+${RUBY_INC}/ruby/internal/attr/noexcept.h
+${RUBY_INC}/ruby/internal/attr/noinline.h
+${RUBY_INC}/ruby/internal/attr/nonnull.h
+${RUBY_INC}/ruby/internal/attr/noreturn.h
+${RUBY_INC}/ruby/internal/attr/pure.h
+${RUBY_INC}/ruby/internal/attr/restrict.h
+${RUBY_INC}/ruby/internal/attr/returns_nonnull.h
+${RUBY_INC}/ruby/internal/attr/warning.h
+${RUBY_INC}/ruby/internal/attr/weakref.h



Home | Main Index | Thread Index | Old Index