mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Remove lang/ruby21: upstream support ended
This commit is contained in:
parent
5b993ce09d
commit
09fe08d940
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=439972
21 changed files with 3 additions and 17496 deletions
|
@ -15,7 +15,7 @@ Ruby_Include_MAINTAINER= ruby@FreeBSD.org
|
|||
# [variables that a user may define]
|
||||
#
|
||||
# RUBY_VER - (See below)
|
||||
# RUBY_DEFAULT_VER - Set to (e.g.) "2.1" if you want to refer to "ruby21"
|
||||
# RUBY_DEFAULT_VER - Set to (e.g.) "2.4" if you want to refer to "ruby24"
|
||||
# just as "ruby".
|
||||
# RUBY_ARCH - (See below)
|
||||
#
|
||||
|
@ -150,17 +150,7 @@ RUBY?= ${LOCALBASE}/bin/${RUBY_NAME}
|
|||
.if defined(RUBY_VER)
|
||||
# When adding a version, please keep the comment in
|
||||
# Mk/bsd.default-versions.mk in sync.
|
||||
. if ${RUBY_VER} == 2.1
|
||||
#
|
||||
# Ruby 2.1
|
||||
#
|
||||
RUBY_RELVERSION= 2.1.10
|
||||
RUBY_PORTREVISION= 1
|
||||
RUBY_PORTEPOCH= 1
|
||||
RUBY_PATCHLEVEL= 0
|
||||
RUBY21= "" # PLIST_SUB helpers
|
||||
|
||||
. elif ${RUBY_VER} == 2.2
|
||||
. if ${RUBY_VER} == 2.2
|
||||
#
|
||||
# Ruby 2.2
|
||||
#
|
||||
|
@ -196,14 +186,13 @@ RUBY24= "" # PLIST_SUB helpers
|
|||
#
|
||||
# Other versions
|
||||
#
|
||||
IGNORE= Only ruby 2.1, 2.2, 2.3 and 2.4 are supported
|
||||
IGNORE= Only ruby 2.2, 2.3 and 2.4 are supported
|
||||
_INVALID_RUBY_VER= 1
|
||||
. endif
|
||||
.endif # defined(RUBY_VER)
|
||||
|
||||
.if !defined(_INVALID_RUBY_VER)
|
||||
|
||||
RUBY21?= "@comment "
|
||||
RUBY22?= "@comment "
|
||||
RUBY23?= "@comment "
|
||||
RUBY24?= "@comment "
|
||||
|
@ -319,7 +308,6 @@ PLIST_SUB+= ${PLIST_RUBY_DIRS:C,DIR="(${LOCALBASE}|${PREFIX})/,DIR=",} \
|
|||
RUBY_SUFFIX="${RUBY_SUFFIX}" \
|
||||
RUBY_NAME="${RUBY_NAME}" \
|
||||
RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}" \
|
||||
RUBY21=${RUBY21} \
|
||||
RUBY22=${RUBY22} \
|
||||
RUBY23=${RUBY23} \
|
||||
RUBY24=${RUBY24}
|
||||
|
|
|
@ -301,7 +301,6 @@
|
|||
SUBDIR += rexx-wrapper
|
||||
SUBDIR += rhino
|
||||
SUBDIR += rubinius
|
||||
SUBDIR += ruby21
|
||||
SUBDIR += ruby22
|
||||
SUBDIR += ruby23
|
||||
SUBDIR += ruby24
|
||||
|
|
|
@ -1,245 +0,0 @@
|
|||
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= ruby
|
||||
PORTVERSION= ${RUBY_PORTVERSION}
|
||||
PORTREVISION= ${RUBY_PORTREVISION}
|
||||
PORTEPOCH= ${RUBY_PORTEPOCH}
|
||||
CATEGORIES= lang ruby ipv6
|
||||
MASTER_SITES= RUBY/${MASTER_SITE_SUBDIR_RUBY}
|
||||
DISTNAME= ${RUBY_DISTNAME}
|
||||
DIST_SUBDIR= ruby
|
||||
|
||||
MAINTAINER= ruby@FreeBSD.org
|
||||
COMMENT?= Object-oriented interpreted scripting language
|
||||
|
||||
LICENSE= BSD2CLAUSE RUBY
|
||||
LICENSE_COMB= dual
|
||||
LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/BSDL
|
||||
LICENSE_FILE_RUBY= ${WRKSRC}/COPYING
|
||||
|
||||
# Using LIB_DEPENDS finds the libffi from gcc which causes problems
|
||||
BUILD_DEPENDS= libffi>=0:devel/libffi
|
||||
LIB_DEPENDS= libyaml.so:textproc/libyaml
|
||||
RUN_DEPENDS= libffi>=0:devel/libffi
|
||||
|
||||
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
|
||||
--disable-rpath \
|
||||
--enable-pthread \
|
||||
--enable-shared \
|
||||
--with-ruby-version=minor \
|
||||
--with-sitedir="${PREFIX}/lib/ruby/site_ruby" \
|
||||
--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
|
||||
CONFIGURE_ENV= debugflags=
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
GNU_CONFIGURE= yes
|
||||
# Keep this, else ruby will fail to load libraries dependent of libpthread.
|
||||
LIBS+= -lpthread -L${LOCALBASE}/lib
|
||||
USE_LDCONFIG= yes
|
||||
USES= autoreconf cpe execinfo tar:xz ssl
|
||||
WRKSRC= ${RUBY_WRKSRC}
|
||||
|
||||
RUBY_VER= 2.1
|
||||
USE_RUBY= yes
|
||||
RUBY_NO_BUILD_DEPENDS= yes
|
||||
RUBY_NO_RUN_DEPENDS= yes
|
||||
|
||||
OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC
|
||||
OPTIONS_DEFAULT= RDOC LIBEDIT
|
||||
OPTIONS_SINGLE= EDIT
|
||||
OPTIONS_SINGLE_EDIT= LIBEDIT READLINE
|
||||
OPTIONS_SUB= yes
|
||||
CAPIDOCS_DESC= Build and install C API documents
|
||||
GMP_DESC= Use GMP to accelerate Bignum operations
|
||||
RDOC_DESC= Build and install Rdoc indexes
|
||||
EDIT_DESC= Which line editing lib to use
|
||||
LIBEDIT_DESC= Use libedit
|
||||
READLINE_DESC= Use libreadline
|
||||
CAPIDOCS_BUILD_DEPENDS= doxygen>=1.8.12,2:devel/doxygen \
|
||||
dot:graphics/graphviz
|
||||
CAPIDOCS_CONFIGURE_ENABLE= install-capi
|
||||
GMP_CONFIGURE_WITH= gmp
|
||||
GMP_LIB_DEPENDS= libgmp.so:math/gmp
|
||||
LIBEDIT_CONFIGURE_ON= --enable-libedit --with-libedit-dir=${LOCALBASE}
|
||||
LIBEDIT_USES= libedit
|
||||
RDOC_CONFIGURE_ENABLE= install-rdoc
|
||||
READLINE_BUILD_DEPENDS= readline>=0:devel/readline
|
||||
READLINE_CONFIGURE_ON= --disable-libedit --with-readline-dir=${LOCALBASE}
|
||||
READLINE_RUN_DEPENDS= readline>=0:devel/readline
|
||||
|
||||
CPE_VENDOR= ruby-lang
|
||||
CPE_VERSION= ${RUBY_RELVERSION}
|
||||
CPE_UPDATE= p${RUBY_PATCHLEVEL}
|
||||
|
||||
DEPRECATED= Upstream support ended
|
||||
EXPIRATION_DATE= 2017-05-01
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# PORTEPOCH/PORTREVISION hack
|
||||
|
||||
.if ${PORTEPOCH} != 0
|
||||
_SUF2= ,${PORTEPOCH}
|
||||
.endif
|
||||
|
||||
.if ${PORTREVISION} != 0
|
||||
_SUF1= _${PORTREVISION}
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD"
|
||||
.if exists(/usr/sbin/dtrace) && (${OSVERSION} > 1100032) && (${ARCH} == "amd64" || ${ARCH} == "i386")
|
||||
CONFIGURE_ARGS+= --enable-dtrace
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-dtrace
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "powerpc64"
|
||||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "armv6" || ${ARCH} == "armv6hf"
|
||||
CONFIGURE_ARGS+= --with-setjmp-type=_setjmp
|
||||
CONFIGURE_ENV+= ac_cv_func__setjmp=yes
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MCAPIDOCS}
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
.endif
|
||||
|
||||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
||||
MLINKS= ${RUBY_NAME}.1 ruby.1
|
||||
PLIST_SUB+= IF_DEFAULT=""
|
||||
.else
|
||||
PKGNAMESUFFIX= ${RUBY_VER:C/\.//}
|
||||
PLIST_SUB+= IF_DEFAULT="@comment "
|
||||
.endif
|
||||
|
||||
INSTALLED_SCRIPTS= irb erb rdoc ri ruby testrb
|
||||
|
||||
EXTSAMPLES= bigdecimal/sample/*.rb
|
||||
|
||||
EXTDOCS= readline/README* \
|
||||
ripper/README \
|
||||
stringio/README \
|
||||
syslog/syslog.txt
|
||||
|
||||
# Macros to change variables in rbconfig.rb
|
||||
RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' --
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's,-l$$pthread_lib,-lpthread,g' \
|
||||
-e '/^RUBY_LIB_PATH/s,\.\$$\{TEENY\},,' \
|
||||
-e '/^RUBY_SITE_LIB_PATH2/s,\.\$$\{TEENY\},,' \
|
||||
-e '/^RUBY_VENDOR_LIB_PATH2/s,\.\$$\{TEENY\},,' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
#
|
||||
# Eliminate all leftovers
|
||||
#
|
||||
@${FIND} ${WRKSRC}/ -name "*.orig" -delete
|
||||
|
||||
#
|
||||
# Remove modules we don't want
|
||||
#
|
||||
.for d in win32ole
|
||||
@${RM} -r ${BUILD_WRKSRC}/ext/${d}
|
||||
.endfor
|
||||
# We get rake from ports.
|
||||
.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb
|
||||
@${RM} -r ${BUILD_WRKSRC}/${d}
|
||||
.endfor
|
||||
# We get the gem executable from ports.
|
||||
@${RM} ${BUILD_WRKSRC}/bin/gem
|
||||
|
||||
#
|
||||
# Prepare modules we are wanting to build via external ports
|
||||
#
|
||||
.for d in gdbm tk
|
||||
@${MV} ${BUILD_WRKSRC}/ext/${d} ${WRKDIR}/
|
||||
.endfor
|
||||
|
||||
post-build:
|
||||
#
|
||||
# Hack to allow modules to be installed into separate PREFIX and/or under user
|
||||
# privilegies
|
||||
#
|
||||
@${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3"
|
||||
@${RB_SET_CONF_VAR} "INSTALL" "'/usr/bin/install -c'"
|
||||
@${RB_SET_CONF_VAR} "INSTALL_PROGRAM" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} ${STRIP} -m ${BINMODE}' : '${INSTALL_PROGRAM}'"
|
||||
@${RB_SET_CONF_VAR} "INSTALL_SCRIPT" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${BINMODE}' : '${INSTALL_SCRIPT}'"
|
||||
@${RB_SET_CONF_VAR} "INSTALL_DATA" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${SHAREMODE}' : '${INSTALL_DATA}'"
|
||||
|
||||
post-build-CAPIDOCS-on:
|
||||
@${FIND} ${WRKSRC}/doc -type d -empty -delete
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}
|
||||
${MKDIR} ${STAGEDIR}${RUBY_VENDORARCHLIBDIR}
|
||||
|
||||
pre-install-DOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_DOCDIR}
|
||||
|
||||
pre-install-EXAMPLES-on:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_EXAMPLESDIR}
|
||||
|
||||
pre-install-RDOC-on:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_RIDIR}
|
||||
${MKDIR} ${STAGEDIR}${RUBY_SITERIDIR}
|
||||
|
||||
post-install:
|
||||
#
|
||||
# Link just installed "ruby" to "ruby21", etc.
|
||||
#
|
||||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
||||
. for FILE in ${INSTALLED_SCRIPTS}
|
||||
${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE}
|
||||
. endfor
|
||||
.endif
|
||||
|
||||
post-install-DEBUG-off:
|
||||
#
|
||||
# XXX: hack to strip ruby binary. Ruby uses its own install script that seems
|
||||
# bogus to hack.
|
||||
#
|
||||
.if defined(STRIP) && ${STRIP} == -s
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
|
||||
${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} \;
|
||||
.endif
|
||||
|
||||
post-install-DOCS-on:
|
||||
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
|
||||
${MKDIR} ${EXTDOCS:C,^([^/]+)/.*,\1,:S,^,${STAGEDIR}${RUBY_DOCDIR}/,}
|
||||
.for FILE in ${EXTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
|
||||
${STAGEDIR}${RUBY_DOCDIR}/${FILE:C,^([^/]+)/.*,\1,}/
|
||||
.endfor
|
||||
@(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_DOCDIR}/)
|
||||
${INSTALL_DATA} ${WRKSRC}/COPYING* \
|
||||
${WRKSRC}/ChangeLog \
|
||||
${WRKSRC}/LEGAL \
|
||||
${WRKSRC}/README* \
|
||||
${STAGEDIR}${RUBY_DOCDIR}/
|
||||
|
||||
post-install-EXAMPLES-on:
|
||||
# Create all dirs required (":u" isn't avaiable in STABLE yet :-()
|
||||
${MKDIR} ${EXTSAMPLES:C,^([^/]+)/.*,\1,:S,^,${STAGEDIR}${RUBY_EXAMPLESDIR}/,}
|
||||
.for FILE in ${EXTSAMPLES}
|
||||
${INSTALL_DATA} ${WRKSRC}/ext/${FILE} \
|
||||
${STAGEDIR}${RUBY_EXAMPLESDIR}/${FILE:C,^([^/]+)/.*,\1,}/
|
||||
.endfor
|
||||
@(cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_EXAMPLESDIR}/)
|
||||
|
||||
regression-test test:
|
||||
@(cd ${WRKSRC}; ${MAKE} test)
|
||||
|
||||
validate:
|
||||
@${MKDIR} ${WRKSRC}/rubyspec
|
||||
${RM} -r ${WRKSRC}/rubyspec/*
|
||||
(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/rubyspec.git)
|
||||
(cd ${WRKSRC}/rubyspec && git clone git://github.com/rubyspec/mspec.git)
|
||||
(cd ${WRKSRC}/rubyspec/rubyspec && ${SETENV} PATH=${WRKSRC}/rubyspec/mspec/bin:${PATH} mspec -t ${PREFIX}/bin/ruby${RUBY_SUFFIX} .)
|
||||
|
||||
.include <bsd.port.post.mk>
|
|
@ -1,3 +0,0 @@
|
|||
TIMESTAMP = 1479689124
|
||||
SHA256 (ruby/ruby-2.1.10.tar.xz) = 5be9f8d5d29d252cd7f969ab7550e31bbb001feb4a83532301c0dd3b5006e148
|
||||
SIZE (ruby/ruby-2.1.10.tar.xz) = 9362868
|
|
@ -1,20 +0,0 @@
|
|||
--- Makefile.in.orig 2014-10-01 13:48:32 UTC
|
||||
+++ Makefile.in
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
.d.h:
|
||||
@$(ECHO) translating probes $<
|
||||
- $(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) -s $<
|
||||
+ $(Q) $(DTRACE) -xnolibs -o $@.tmp -h -C $(INCFLAGS) -s $<
|
||||
$(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
|
||||
$(Q) $(RM) $@.tmp
|
||||
|
||||
@@ -367,7 +367,7 @@
|
||||
fi; \
|
||||
touch "$$stamp"
|
||||
$(RM) $@
|
||||
- $(Q) $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_DEPENDENT_OBJS)
|
||||
+ $(Q) $(DTRACE) -xnolibs -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_DEPENDENT_OBJS)
|
||||
|
||||
# DTrace static library hacks described here:
|
||||
# http://mail.opensolaris.org/pipermail/dtrace-discuss/2005-August/000207.html
|
|
@ -1,84 +0,0 @@
|
|||
--- configure.in.orig 2014-10-01 13:46:05 UTC
|
||||
+++ configure.in
|
||||
@@ -570,7 +570,7 @@
|
||||
[AC_CACHE_CHECK(whether dtrace USDT is available, rb_cv_dtrace_available,
|
||||
[
|
||||
echo "provider conftest{ probe fire(); };" > conftest_provider.d
|
||||
- if $DTRACE -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null; then
|
||||
+ if $DTRACE -xnolibs -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null; then
|
||||
# DTrace is available on the system
|
||||
rb_cv_dtrace_available=yes
|
||||
else
|
||||
@@ -591,13 +591,13 @@
|
||||
probe fire();
|
||||
};
|
||||
_PROBES
|
||||
- $DTRACE -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null &&
|
||||
+ $DTRACE -xnolibs -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null &&
|
||||
cat >conftest.c <<_CONF &&
|
||||
@%:@include "conftest_provider.h"
|
||||
int main(void){ CONFTEST_FIRE(); return 0; }
|
||||
_CONF
|
||||
$CC $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c &&
|
||||
- $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null
|
||||
+ $DTRACE -xnolibs -G -s conftest_provider.d conftest.o 2>/dev/null
|
||||
}; then
|
||||
rb_cv_prog_dtrace_g=yes
|
||||
else
|
||||
@@ -1087,10 +1087,10 @@
|
||||
],
|
||||
[ LIBS="-lm $LIBS"])
|
||||
|
||||
-AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
||||
-AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
|
||||
-AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
|
||||
-AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris
|
||||
+AC_SEARCH_LIBS(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
|
||||
+AC_SEARCH_LIBS(dlopen, dl) # Dynamic linking for SunOS/Solaris and SYSV
|
||||
+AC_SEARCH_LIBS(shl_load, dld) # Dynamic linking for HP-UX
|
||||
+AC_SEARCH_LIBS(shutdown, socket) # SunOS/Solaris
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_DIRENT
|
||||
@@ -1998,7 +1998,7 @@
|
||||
if test x"$ac_cv_func_clock_gettime" != xyes; then
|
||||
# glibc 2.17 moves clock_* functions from librt to the main C library.
|
||||
# http://sourceware.org/ml/libc-announce/2012/msg00001.html
|
||||
- AC_CHECK_LIB(rt, clock_gettime)
|
||||
+ AC_SEARCH_LIBS(clock_gettime, rt)
|
||||
if test x"$ac_cv_lib_rt_clock_gettime" = xyes; then
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
fi
|
||||
@@ -2460,7 +2460,7 @@
|
||||
fi
|
||||
|
||||
if test x"$enable_pthread" = xyes; then
|
||||
- for pthread_lib in thr pthread pthreads c c_r root; do
|
||||
+ for pthread_lib in pthread thr pthreads c c_r root; do
|
||||
AC_CHECK_LIB($pthread_lib, pthread_kill,
|
||||
rb_with_pthread=yes, rb_with_pthread=no)
|
||||
if test "$rb_with_pthread" = "yes"; then break; fi
|
||||
@@ -2474,6 +2474,7 @@
|
||||
[c], [],
|
||||
[root], [],
|
||||
[c_r], [MAINLIBS="-pthread $MAINLIBS"],
|
||||
+ [pthread], [MAINLIBS="-pthread $MAINLIBS"],
|
||||
[AS_CASE(["$target_os"],
|
||||
[openbsd*|mirbsd*], [LIBS="-pthread $LIBS"],
|
||||
[LIBS="-l$pthread_lib $LIBS"])])
|
||||
@@ -2735,7 +2736,6 @@
|
||||
: ${LDSHARED='$(CC) -shared'}
|
||||
if test "$rb_cv_binary_elf" = yes; then
|
||||
LDFLAGS="$LDFLAGS -rdynamic"
|
||||
- DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@'
|
||||
else
|
||||
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
|
||||
fi
|
||||
@@ -3203,6 +3203,7 @@
|
||||
[freebsd*|dragonfly*], [
|
||||
SOLIBS='$(LIBS)'
|
||||
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
|
||||
+ LIBRUBY_DLDFLAGS='-Wl,-soname,$(LIBRUBY_SO)'
|
||||
if test "$rb_cv_binary_elf" != "yes" ; then
|
||||
LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
|
||||
LIBRUBY_ALIASES=''
|
|
@ -1,20 +0,0 @@
|
|||
--- eval.c.orig 2015-01-21 17:09:59.000000000 +0100
|
||||
+++ eval.c 2016-01-09 22:22:34.009232000 +0100
|
||||
@@ -743,7 +743,7 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), V
|
||||
{
|
||||
int state;
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
- rb_control_frame_t *cfp = th->cfp;
|
||||
+ rb_control_frame_t *volatile cfp = th->cfp;
|
||||
volatile VALUE result = Qfalse;
|
||||
volatile VALUE e_info = th->errinfo;
|
||||
va_list args;
|
||||
@@ -809,7 +809,7 @@ rb_protect(VALUE (* proc) (VALUE), VALUE
|
||||
volatile VALUE result = Qnil;
|
||||
volatile int status;
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
- rb_control_frame_t *cfp = th->cfp;
|
||||
+ rb_control_frame_t *volatile cfp = th->cfp;
|
||||
struct rb_vm_protect_tag protect_tag;
|
||||
rb_jmpbuf_t org_jmpbuf;
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
--- eval_error.c.orig 2013-06-24 15:03:35.000000000 +0200
|
||||
+++ eval_error.c 2016-01-10 01:00:43.200335000 +0100
|
||||
@@ -80,9 +80,9 @@ static void
|
||||
error_print(void)
|
||||
{
|
||||
volatile VALUE errat = Qundef;
|
||||
- rb_thread_t *th = GET_THREAD();
|
||||
- VALUE errinfo = th->errinfo;
|
||||
- int raised_flag = th->raised_flag;
|
||||
+ rb_thread_t *volatile th = GET_THREAD();
|
||||
+ volatile VALUE errinfo = th->errinfo;
|
||||
+ volatile int raised_flag = th->raised_flag;
|
||||
volatile VALUE eclass = Qundef, e = Qundef;
|
||||
const char *volatile einfo;
|
||||
volatile long elen;
|
|
@ -1,15 +0,0 @@
|
|||
--- ext/openssl/extconf.rb.orig 2015-04-01 22:28:09 UTC
|
||||
+++ ext/openssl/extconf.rb
|
||||
@@ -100,9 +100,9 @@ have_func("OBJ_NAME_do_all_sorted")
|
||||
have_func("SSL_SESSION_get_id")
|
||||
have_func("SSL_SESSION_cmp")
|
||||
have_func("OPENSSL_cleanse")
|
||||
-have_func("SSLv2_method")
|
||||
-have_func("SSLv2_server_method")
|
||||
-have_func("SSLv2_client_method")
|
||||
+have_func("SSLv23_method")
|
||||
+have_func("SSLv23_server_method")
|
||||
+have_func("SSLv23_client_method")
|
||||
have_func("SSLv3_method")
|
||||
have_func("SSLv3_server_method")
|
||||
have_func("SSLv3_client_method")
|
|
@ -1,11 +0,0 @@
|
|||
--- ext/readline/extconf.rb.orig 2014-05-01 11:59:37.000000000 +0000
|
||||
+++ ext/readline/extconf.rb 2015-10-23 04:05:44.000000000 +0000
|
||||
@@ -62,7 +63,7 @@ else
|
||||
end
|
||||
|
||||
readline.have_func("rl_getc")
|
||||
-readline.have_func("rl_getc_function")
|
||||
+#readline.have_func("rl_getc_function")
|
||||
readline.have_func("rl_filename_completion_function")
|
||||
readline.have_func("rl_username_completion_function")
|
||||
readline.have_func("rl_completion_matches")
|
|
@ -1,11 +0,0 @@
|
|||
--- include/ruby/ruby.h.orig 2015-09-20 20:49:26 UTC
|
||||
+++ include/ruby/ruby.h
|
||||
@@ -228,7 +228,7 @@ typedef char ruby_check_sizeof_voidp[SIZ
|
||||
#define FIXNUM_MAX (LONG_MAX>>1)
|
||||
#define FIXNUM_MIN RSHIFT((long)LONG_MIN,1)
|
||||
|
||||
-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
|
||||
+#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG)
|
||||
#define LONG2FIX(i) INT2FIX(i)
|
||||
#define rb_fix_new(v) INT2FIX(v)
|
||||
VALUE rb_int2inum(SIGNED_VALUE);
|
|
@ -1,13 +0,0 @@
|
|||
--- lib/rdoc/single_class.rb 2014-11-26 19:29:03 UTC
|
||||
+++ lib/rdoc/single_class.rb
|
||||
@@ -10,6 +10,10 @@ def ancestors
|
||||
superclass ? super + [superclass] : super
|
||||
end
|
||||
|
||||
+ def aref_prefix # :nodoc:
|
||||
+ 'sclass'
|
||||
+ end
|
||||
+
|
||||
##
|
||||
# The definition of this singleton class, <tt>class << MyClassName</tt>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- lib/mkmf.rb.orig 2013-06-26 14:03:38 UTC
|
||||
+++ lib/mkmf.rb
|
||||
@@ -226,7 +226,7 @@
|
||||
end
|
||||
$extmk ||= false
|
||||
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
|
||||
- $topdir = $hdrdir
|
||||
+ $topdir = $hdrdir + "/" + "#{CONFIG['arch']}/ruby/"
|
||||
$top_srcdir = $hdrdir
|
||||
$arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"]
|
||||
elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h")
|
|
@ -1,13 +0,0 @@
|
|||
--- thread.c.orig 2015-03-09 18:40:36.000000000 +0100
|
||||
+++ thread.c 2016-01-10 18:50:57.451040000 +0100
|
||||
@@ -420,8 +420,8 @@ rb_threadptr_unlock_all_locking_mutexes(
|
||||
void
|
||||
rb_thread_terminate_all(void)
|
||||
{
|
||||
- rb_thread_t *th = GET_THREAD(); /* main thread */
|
||||
- rb_vm_t *vm = th->vm;
|
||||
+ rb_thread_t *volatile th = GET_THREAD(); /* main thread */
|
||||
+ rb_vm_t *volatile vm = th->vm;
|
||||
|
||||
if (vm->main_thread != th) {
|
||||
rb_bug("rb_thread_terminate_all: called by child thread (%p, %p)",
|
|
@ -1,12 +0,0 @@
|
|||
--- tool/mkconfig.rb.orig 2013-05-27 03:20:04 UTC
|
||||
+++ tool/mkconfig.rb
|
||||
@@ -173,7 +173,8 @@
|
||||
end
|
||||
vars["prefix"] = ""
|
||||
vars["exec_prefix"] = ""
|
||||
-prefix = vars.expand(vars["rubyarchdir"])
|
||||
+major, minor, *rest = RUBY_VERSION.split('.')
|
||||
+prefix = "/lib/ruby/#{major}.#{minor}/#{arch}"
|
||||
print " TOPDIR = File.dirname(__FILE__).chomp!(#{prefix.dump})\n"
|
||||
print " DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
|
||||
print <<'ARCH' if universal
|
|
@ -1,81 +0,0 @@
|
|||
--- tool/rbinstall.rb.orig 2013-11-09 16:37:46 UTC
|
||||
+++ tool/rbinstall.rb
|
||||
@@ -318,6 +318,7 @@
|
||||
libdir = CONFIG[CONFIG.fetch("libdirname", "libdir"), true]
|
||||
rubyhdrdir = CONFIG["rubyhdrdir", true]
|
||||
archhdrdir = CONFIG["rubyarchhdrdir"] || (rubyhdrdir + "/" + CONFIG['arch'])
|
||||
+libdatadir = CONFIG["prefix", true] + "/" + "libdata"
|
||||
rubylibdir = CONFIG["rubylibdir", true]
|
||||
archlibdir = CONFIG["rubyarchdir", true]
|
||||
sitelibdir = CONFIG["sitelibdir"]
|
||||
@@ -373,7 +374,7 @@
|
||||
install?(:local, :arch, :data) do
|
||||
pc = CONFIG["ruby_pc"]
|
||||
if pc and File.file?(pc) and File.size?(pc)
|
||||
- prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig")
|
||||
+ prepare "pkgconfig data", pkgconfigdir = File.join(libdatadir, "pkgconfig")
|
||||
install pc, pkgconfigdir, :mode => $data_mode
|
||||
end
|
||||
end
|
||||
@@ -710,61 +711,6 @@
|
||||
end
|
||||
# :startdoc:
|
||||
|
||||
-install?(:ext, :comm, :gem) do
|
||||
- $:.unshift(File.join(srcdir, "lib"))
|
||||
- require("rubygems.rb")
|
||||
- gem_dir = Gem.default_dir
|
||||
- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
|
||||
- prepare "default gems", gem_dir, directories
|
||||
-
|
||||
- spec_dir = File.join(gem_dir, directories.grep(/^spec/)[0])
|
||||
- default_spec_dir = "#{spec_dir}/default"
|
||||
- makedirs(default_spec_dir)
|
||||
-
|
||||
- gems = {}
|
||||
- File.foreach(File.join(srcdir, "defs/default_gems")) do |line|
|
||||
- line.chomp!
|
||||
- line.sub!(/\s*#.*/, '')
|
||||
- next if line.empty?
|
||||
- words = []
|
||||
- line.scan(/\G\s*([^\[\]\s]+|\[([^\[\]]*)\])/) do
|
||||
- words << ($2 ? $2.split : $1)
|
||||
- end
|
||||
- name, base_dir, src, execs = *words
|
||||
- next unless name and base_dir and src
|
||||
-
|
||||
- src = File.join(srcdir, src)
|
||||
- base_dir = File.join(srcdir, base_dir)
|
||||
- specgen = RbInstall::Specs::Generator.new(name, base_dir, src, execs || [])
|
||||
- gems[name] ||= specgen
|
||||
- end
|
||||
-
|
||||
- Dir.glob(srcdir+"/{lib,ext}/**/*.gemspec").each do |src|
|
||||
- specgen = RbInstall::Specs::Reader.new(src)
|
||||
- gems[specgen.gemspec.name] ||= specgen
|
||||
- end
|
||||
-
|
||||
- gems.sort.each do |name, specgen|
|
||||
- gemspec = specgen.gemspec
|
||||
- base_dir = specgen.src.sub(/\A#{Regexp.escape(srcdir)}\//, "")
|
||||
- full_name = "#{gemspec.name}-#{gemspec.version}"
|
||||
-
|
||||
- puts "#{" "*30}#{gemspec.name} #{gemspec.version}"
|
||||
- gemspec_path = File.join(default_spec_dir, "#{full_name}.gemspec")
|
||||
- open_for_install(gemspec_path, $data_mode) do
|
||||
- specgen.spec_source
|
||||
- end
|
||||
-
|
||||
- unless gemspec.executables.empty? then
|
||||
- bin_dir = File.join(gem_dir, 'gems', full_name, 'bin')
|
||||
- makedirs(bin_dir)
|
||||
-
|
||||
- execs = gemspec.executables.map {|exec| File.join(srcdir, 'bin', exec)}
|
||||
- install(execs, bin_dir, :mode => $prog_mode)
|
||||
- end
|
||||
- end
|
||||
-end
|
||||
-
|
||||
parse_args()
|
||||
|
||||
include FileUtils
|
|
@ -1,31 +0,0 @@
|
|||
--- vm_eval.c.orig 2015-07-03 10:55:40.000000000 +0200
|
||||
+++ vm_eval.c 2016-01-10 18:53:23.030473000 +0100
|
||||
@@ -1062,7 +1062,7 @@ rb_iterate(VALUE (* it_proc) (VALUE), VA
|
||||
int state;
|
||||
volatile VALUE retval = Qnil;
|
||||
NODE *node = NEW_IFUNC(bl_proc, data2);
|
||||
- rb_thread_t *th = GET_THREAD();
|
||||
+ rb_thread_t *volatile th = GET_THREAD();
|
||||
rb_control_frame_t *volatile cfp = th->cfp;
|
||||
|
||||
node->nd_aid = rb_frame_this_func();
|
||||
@@ -1190,7 +1190,7 @@ eval_string_with_cref(VALUE self, VALUE
|
||||
int state;
|
||||
VALUE result = Qundef;
|
||||
VALUE envval;
|
||||
- rb_thread_t *th = GET_THREAD();
|
||||
+ rb_thread_t *volatile th = GET_THREAD();
|
||||
rb_env_t *env = NULL;
|
||||
rb_block_t block, *base_block;
|
||||
volatile int parse_in_eval;
|
||||
@@ -1843,8 +1843,8 @@ rb_catch_protect(VALUE t, rb_block_call_
|
||||
{
|
||||
int state;
|
||||
volatile VALUE val = Qnil; /* OK */
|
||||
- rb_thread_t *th = GET_THREAD();
|
||||
- rb_control_frame_t *saved_cfp = th->cfp;
|
||||
+ rb_thread_t *volatile th = GET_THREAD();
|
||||
+ rb_control_frame_t *volatile saved_cfp = th->cfp;
|
||||
volatile VALUE tag = t;
|
||||
|
||||
TH_PUSH_TAG(th);
|
|
@ -1,11 +0,0 @@
|
|||
--- vm_trace.c.orig 2015-11-18 12:26:40.000000000 +0100
|
||||
+++ vm_trace.c 2016-01-10 18:54:08.421021000 +0100
|
||||
@@ -392,7 +392,7 @@ rb_suppress_tracing(VALUE (*func)(VALUE)
|
||||
volatile int raised;
|
||||
volatile int outer_state;
|
||||
VALUE result = Qnil;
|
||||
- rb_thread_t *th = GET_THREAD();
|
||||
+ rb_thread_t *volatile th = GET_THREAD();
|
||||
int state;
|
||||
const int tracing = th->trace_arg ? 1 : 0;
|
||||
rb_trace_arg_t dummy_trace_arg;
|
|
@ -1,19 +0,0 @@
|
|||
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.)
|
||||
|
||||
WWW: http://www.ruby-lang.org/en/
|
|
@ -1,14 +0,0 @@
|
|||
====
|
||||
Some of the standard commands are provided as separate ports for ease
|
||||
of upgrading:
|
||||
|
||||
devel/ruby-gems: gem - RubyGems package manager
|
||||
devel/rubygem-rake: rake - Ruby Make
|
||||
|
||||
And some of the standard libraries are provided as separate ports
|
||||
since they require extra dependencies:
|
||||
|
||||
databases/ruby-gdbm: GDBM module
|
||||
|
||||
Install them as occasion demands.
|
||||
====
|
16851
lang/ruby21/pkg-plist
16851
lang/ruby21/pkg-plist
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue