pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby21-base Add ruby21-base, base of Ruby 2.1.1. ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/698235407a24
branches: trunk
changeset: 632040:698235407a24
user: taca <taca%pkgsrc.org@localhost>
date: Fri Mar 14 19:40:47 2014 +0000
description:
Add ruby21-base, base of Ruby 2.1.1. Ruby 2.1.1 is second release of
Ruby 2.1, post release of Ruby 2.0.
*WARNING!* Not all of ruby pkgsrc are supported yet.
Ruby 2.1 has many improvements including speedup without severe
incompatibilities. You can use this on Rails and other applications, and get a
more comfortable experience.
This release includes many bugfixes. See tickets and ChangeLog for details.
Following the previously announced changed versioning policy of Ruby 2.1, this
version is simply called ¡È2.1.1¡É.
Update: We¡Çve noticed a regression in Hash#reject. For more details, see:
Regression of Hash#reject in Ruby 2.1.1.
diffstat:
lang/ruby21-base/ALTERNATIVES | 6 +
lang/ruby21-base/DEINSTALL | 14 +
lang/ruby21-base/DESCR | 19 +
lang/ruby21-base/INSTALL | 14 +
lang/ruby21-base/MESSAGE | 14 +
lang/ruby21-base/Makefile | 183 +
lang/ruby21-base/PLIST | 1117 ++++++++++
lang/ruby21-base/distinfo | 28 +
lang/ruby21-base/hacks.mk | 37 +
lang/ruby21-base/options.mk | 16 +
lang/ruby21-base/patches/patch-configure | 110 +
lang/ruby21-base/patches/patch-ext_dl_extconf.rb | 12 +
lang/ruby21-base/patches/patch-lib_rdoc_ri_driver.rb | 37 +
lang/ruby21-base/patches/patch-lib_rubygems.rb | 36 +
lang/ruby21-base/patches/patch-lib_rubygems_commands_setup__command.rb | 41 +
lang/ruby21-base/patches/patch-lib_rubygems_commands_uninstall__command.rb | 18 +
lang/ruby21-base/patches/patch-lib_rubygems_commands_unpack__command.rb | 27 +
lang/ruby21-base/patches/patch-lib_rubygems_config__file.rb | 40 +
lang/ruby21-base/patches/patch-lib_rubygems_defaults.rb | 15 +
lang/ruby21-base/patches/patch-lib_rubygems_dependency__installer.rb | 36 +
lang/ruby21-base/patches/patch-lib_rubygems_install__update__options.rb | 19 +
lang/ruby21-base/patches/patch-lib_rubygems_installer.rb | 49 +
lang/ruby21-base/patches/patch-lib_rubygems_platform.rb | 14 +
lang/ruby21-base/patches/patch-lib_rubygems_specification.rb | 71 +
lang/ruby21-base/patches/patch-lib_rubygems_uninstaller.rb | 31 +
lang/ruby21-base/patches/patch-man_erb.1 | 24 +
lang/ruby21-base/patches/patch-man_irb.1 | 24 +
lang/ruby21-base/patches/patch-man_ri.1 | 24 +
lang/ruby21-base/patches/patch-man_ruby.1 | 24 +
lang/ruby21-base/patches/patch-template_verconf.h.in | 13 +
lang/ruby21-base/patches/patch-test_rubygems_test__gem.rb | 21 +
lang/ruby21-base/patches/patch-thread__pthread.c | 19 +
lang/ruby21-base/patches/patch-tool_rbinstall.rb | 15 +
33 files changed, 2168 insertions(+), 0 deletions(-)
diffs (truncated from 2300 to 300 lines):
diff -r cd5a31e48fbb -r 698235407a24 lang/ruby21-base/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/ALTERNATIVES Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,6 @@
+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@
+bin/testrb @PREFIX@/bin/testrb@RUBY_SUFFIX@
diff -r cd5a31e48fbb -r 698235407a24 lang/ruby21-base/DEINSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/DEINSTALL Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: DEINSTALL,v 1.1 2014/03/14 19:40:47 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 cd5a31e48fbb -r 698235407a24 lang/ruby21-base/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/DESCR Fri Mar 14 19:40:47 2014 +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.1.0 release minimum base package.
diff -r cd5a31e48fbb -r 698235407a24 lang/ruby21-base/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/INSTALL Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: INSTALL,v 1.1 2014/03/14 19:40:47 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 cd5a31e48fbb -r 698235407a24 lang/ruby21-base/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/MESSAGE Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2014/03/14 19:40:47 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
+ x11/ruby-tk: Tk modules
+
+===========================================================================
diff -r cd5a31e48fbb -r 698235407a24 lang/ruby21-base/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/Makefile Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,183 @@
+# $NetBSD: Makefile,v 1.1 2014/03/14 19:40:47 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL}
+CATEGORIES= lang ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca%NetBSD.org@localhost
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby ${RUBY_VERSION} release minimum base package
+LICENSE= ${RUBY_LICENSE}
+
+RUBY_VERSION_SUPPORTED= 21
+
+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
+
+#
+# Ruby 2.0 don't like Apple's builtin OpenSSL.
+#
+.if ${OPSYS} == "Darwin"
+USE_BUILTIN.openssl= no
+.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
+
+#
+# prevent unwanted mkdir recorded in rbconfig.rb
+#
+CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
+
+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/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}/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 -r cd5a31e48fbb -r 698235407a24 lang/ruby21-base/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby21-base/PLIST Fri Mar 14 19:40:47 2014 +0000
@@ -0,0 +1,1117 @@
+@comment $NetBSD: PLIST,v 1.1 2014/03/14 19:40:47 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}
+bin/testrb${RUBY_SUFFIX}
+${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
Home |
Main Index |
Thread Index |
Old Index