mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
Remove expired lang/ruby23
This commit is contained in:
parent
2c28a6e3d5
commit
92b206a290
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497414
@ -316,7 +316,6 @@
|
||||
SUBDIR += rexx-wrapper
|
||||
SUBDIR += rhino
|
||||
SUBDIR += rubinius
|
||||
SUBDIR += ruby23
|
||||
SUBDIR += ruby24
|
||||
SUBDIR += ruby25
|
||||
SUBDIR += runawk
|
||||
|
@ -1,260 +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
|
||||
|
||||
BROKEN_SSL= openssl111
|
||||
BROKEN_SSL_REASON_openssl111=does not detect and buid the openssl*.rb bits
|
||||
DEPRECATED= Use lang/ruby24 or above
|
||||
EXPIRATION_DATE=2019-03-31
|
||||
|
||||
# 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
|
||||
|
||||
USES= autoreconf cpe ssl tar:xz
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
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
|
||||
WRKSRC= ${RUBY_WRKSRC}
|
||||
|
||||
RUBY_VER= 2.3
|
||||
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_BROKEN= bad plist
|
||||
CAPIDOCS_BUILD_DEPENDS= doxygen>=1.8.13,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_CONFIGURE_ON= --disable-libedit --with-readline-dir=${LOCALBASE}
|
||||
READLINE_USES= readline:port
|
||||
|
||||
CPE_VENDOR= ruby-lang
|
||||
CPE_VERSION= ${RUBY_RELVERSION}
|
||||
CPE_UPDATE= p${RUBY_PATCHLEVEL}
|
||||
|
||||
# --- loadpath.o ---
|
||||
# loadpath.c:30:2: error: RUBY_EXEC_PREFIX must be defined
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# PORTREVISION/PORTEPOCH hack
|
||||
|
||||
.if ${PORTREVISION} != 0
|
||||
_SUF1= _${PORTREVISION}
|
||||
.endif
|
||||
|
||||
.if ${PORTEPOCH} != 0
|
||||
_SUF2= ,${PORTEPOCH}
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD"
|
||||
.if exists(/usr/sbin/dtrace) && (${ARCH} == amd64 || ${ARCH} == i386)
|
||||
CONFIGURE_ARGS+=--enable-dtrace
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-dtrace
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 1200085 && ${SSL_DEFAULT} == base
|
||||
BROKEN= does not detect and buid the openssl*.rb bits
|
||||
.endif
|
||||
|
||||
# keep in sync with all platforms where libunwind is available
|
||||
.if (${ARCH} == amd64 || ${ARCH} == i386)
|
||||
LIB_DEPENDS+= libunwind.so:devel/libunwind
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == powerpc64
|
||||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == armv6 || ${ARCH} == armv7
|
||||
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}
|
||||
PLIST_SUB+= IF_DEFAULT=""
|
||||
.else
|
||||
PKGNAMESUFFIX= ${RUBY_VER:C/\.//}
|
||||
PLIST_SUB+= IF_DEFAULT="@comment "
|
||||
.endif
|
||||
|
||||
INSTALLED_SCRIPTS= erb irb rdoc ri ruby
|
||||
INSTALLED_MANUALS= erb irb ri ruby
|
||||
|
||||
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
|
||||
# privileges
|
||||
#
|
||||
@${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:
|
||||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
|
||||
#
|
||||
# Link just installed "ruby" to "ruby23", etc.
|
||||
#
|
||||
. for FILE in ${INSTALLED_SCRIPTS}
|
||||
${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE}
|
||||
. endfor
|
||||
#
|
||||
# Link "ruby.1.gz" to "ruby23.1.gz", etc.
|
||||
#
|
||||
. for FILE in ${INSTALLED_MANUALS}
|
||||
${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/${FILE}.1.gz
|
||||
. 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}/)
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${MAKE_CMD} test
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1540022780
|
||||
SHA256 (ruby/ruby-2.3.8.tar.xz) = 910f635d84fd0d81ac9bdee0731279e6026cb4cd1315bbbb5dfb22e09c5c1dfe
|
||||
SIZE (ruby/ruby-2.3.8.tar.xz) = 11465792
|
@ -1,20 +0,0 @@
|
||||
--- Makefile.in.orig 2016-01-21 07:41:11 UTC
|
||||
+++ Makefile.in
|
||||
@@ -388,7 +388,7 @@ enc/jis/props.h: enc/jis/props.kwd
|
||||
|
||||
.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/RUBY_PROBES_H/' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
|
||||
$(Q) $(RM) $@.tmp
|
||||
|
||||
@@ -407,7 +407,7 @@ probes.stamp: $(DTRACE_REBUILD_OBJS)
|
||||
probes.@OBJEXT@: $(srcdir)/probes.d $(DTRACE_REBUILD:yes=probes.stamp)
|
||||
@$(ECHO) processing probes in object files
|
||||
$(Q) $(RM) $@
|
||||
- $(Q) $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_REBUILD_OBJS)
|
||||
+ $(Q) $(DTRACE) -xnolibs -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_REBUILD_OBJS)
|
||||
|
||||
# DTrace static library hacks described here:
|
||||
# http://mail.opensolaris.org/pipermail/dtrace-discuss/2005-August/000207.html
|
@ -1,22 +0,0 @@
|
||||
--- ccan/list/list.h.orig 2015-09-06 07:10:54 UTC
|
||||
+++ ccan/list/list.h
|
||||
@@ -57,7 +57,7 @@ struct list_head
|
||||
* Example:
|
||||
* static struct list_head my_list = LIST_HEAD_INIT(my_list);
|
||||
*/
|
||||
-#define LIST_HEAD_INIT(name) { { &name.n, &name.n } }
|
||||
+#define CCAN_LIST_HEAD_INIT(name) { { &name.n, &name.n } }
|
||||
|
||||
/**
|
||||
* LIST_HEAD - define and initialize an empty list_head
|
||||
@@ -72,8 +72,8 @@ struct list_head
|
||||
* Example:
|
||||
* static LIST_HEAD(my_global_list);
|
||||
*/
|
||||
-#define LIST_HEAD(name) \
|
||||
- struct list_head name = LIST_HEAD_INIT(name)
|
||||
+#define CCAN_LIST_HEAD(name) \
|
||||
+ struct list_head name = CCAN_LIST_HEAD_INIT(name)
|
||||
|
||||
/**
|
||||
* list_head_init - initialize a list_head
|
@ -1,102 +0,0 @@
|
||||
--- configure.in.orig 2018-03-18 14:15:27 UTC
|
||||
+++ configure.in
|
||||
@@ -633,7 +633,7 @@ AC_DEFUN([RUBY_DTRACE_AVAILABLE],
|
||||
[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
|
||||
AC_TRY_COMPILE([@%:@include "conftest_provider.h"], [CONFTEST_FIRE();], [
|
||||
# DTrace is available on the system
|
||||
rb_cv_dtrace_available=yes
|
||||
@@ -657,13 +657,13 @@ AC_DEFUN([RUBY_DTRACE_POSTPROCESS],
|
||||
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 &&
|
||||
:
|
||||
}; then
|
||||
AC_TRY_COMPILE([@%:@include "conftest_provider.h"], [CONFTEST_FIRE();], [
|
||||
if {
|
||||
cp -p conftest.${ac_objext} conftest.${ac_objext}.save &&
|
||||
- $DTRACE -G -s conftest_provider.d conftest.${ac_objext} 2>/dev/null &&
|
||||
+ $DTRACE -xnolibs -G -s conftest_provider.d conftest.${ac_objext} 2>/dev/null &&
|
||||
:
|
||||
}; then
|
||||
if cmp -s conftest.o conftest.${ac_objext}.save; then
|
||||
@@ -1290,10 +1290,10 @@ main()
|
||||
],
|
||||
[ 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
|
||||
@@ -2450,7 +2450,7 @@ if test "$ac_cv_func_qsort_r" != no; the
|
||||
AC_CACHE_CHECK(whether qsort_r is GNU version, rb_cv_gnu_qsort_r,
|
||||
[AC_TRY_COMPILE([
|
||||
@%:@include <stdlib.h>
|
||||
-void qsort_r(void *base, size_t nmemb, size_t size,
|
||||
+void (qsort_r)(void *base, size_t nmemb, size_t size,
|
||||
int (*compar)(const void *, const void *, void *),
|
||||
void *arg);
|
||||
],[ ],
|
||||
@@ -2460,7 +2460,7 @@ void qsort_r(void *base, size_t nmemb, s
|
||||
AC_CACHE_CHECK(whether qsort_r is BSD version, rb_cv_bsd_qsort_r,
|
||||
[AC_TRY_COMPILE([
|
||||
@%:@include <stdlib.h>
|
||||
-void qsort_r(void *base, size_t nmemb, size_t size,
|
||||
+void (qsort_r)(void *base, size_t nmemb, size_t size,
|
||||
void *arg, int (*compar)(void *, const void *, const void *));
|
||||
],[ ],
|
||||
[rb_cv_bsd_qsort_r=yes],
|
||||
@@ -2549,7 +2549,7 @@ main(int argc, char **argv)
|
||||
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
|
||||
@@ -2956,7 +2956,7 @@ else
|
||||
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
|
||||
@@ -2970,6 +2970,7 @@ if test x"$enable_pthread" = xyes; then
|
||||
[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"])])
|
||||
@@ -3278,7 +3279,6 @@ if test "$with_dln_a_out" != yes; then
|
||||
: ${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
|
||||
@@ -3751,6 +3751,7 @@ AS_CASE("$enable_shared", [yes], [
|
||||
[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,11 +0,0 @@
|
||||
--- ext/readline/extconf.rb.orig 2015-12-16 05:31:54 UTC
|
||||
+++ ext/readline/extconf.rb
|
||||
@@ -64,7 +64,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 @@
|
||||
--- lib/mkmf.rb.orig 2016-05-14 17:46:54 UTC
|
||||
+++ lib/mkmf.rb
|
||||
@@ -235,7 +235,7 @@ module MakeMakefile
|
||||
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,20 +0,0 @@
|
||||
--- lib/rdoc/generator/json_index.rb.orig 2015-12-22 12:08:13 UTC
|
||||
+++ lib/rdoc/generator/json_index.rb
|
||||
@@ -175,7 +175,7 @@ class RDoc::Generator::JsonIndex
|
||||
debug_msg "Writing gzipped search index to %s" % outfile
|
||||
|
||||
Zlib::GzipWriter.open(outfile) do |gz|
|
||||
- gz.mtime = File.mtime(search_index_file)
|
||||
+ gz.mtime = 1
|
||||
gz.orig_name = search_index_file.basename.to_s
|
||||
gz.write search_index
|
||||
gz.close
|
||||
@@ -193,7 +193,7 @@ class RDoc::Generator::JsonIndex
|
||||
debug_msg "Writing gzipped file to %s" % outfile
|
||||
|
||||
Zlib::GzipWriter.open(outfile) do |gz|
|
||||
- gz.mtime = File.mtime(dest)
|
||||
+ gz.mtime = 1
|
||||
gz.orig_name = dest.basename.to_s
|
||||
gz.write data
|
||||
gz.close
|
@ -1,11 +0,0 @@
|
||||
--- thread_pthread.c.orig 2018-03-18 15:27:34 UTC
|
||||
+++ thread_pthread.c
|
||||
@@ -1155,7 +1155,7 @@ native_sleep(rb_thread_t *th, struct tim
|
||||
}
|
||||
|
||||
#ifdef USE_UBF_LIST
|
||||
-static LIST_HEAD(ubf_list_head);
|
||||
+static CCAN_LIST_HEAD(ubf_list_head);
|
||||
|
||||
/* The thread 'th' is registered to be trying unblock. */
|
||||
static void
|
@ -1,14 +0,0 @@
|
||||
--- tool/mkconfig.rb.orig 2015-12-09 20:53:21 UTC
|
||||
+++ tool/mkconfig.rb
|
||||
@@ -168,8 +168,9 @@ def vars.expand(val, config = self)
|
||||
val.replace(newval) unless newval == val
|
||||
val
|
||||
end
|
||||
-prefix = vars.expand(vars["prefix"] ||= "")
|
||||
-rubyarchdir = vars.expand(vars["rubyarchdir"] ||= "")
|
||||
+prefix = vars.expand(vars["rubyarchdir"])
|
||||
+major, minor, *rest = RUBY_VERSION.split('.')
|
||||
+rubyarchdir = "/lib/ruby/#{major}.#{minor}/#{arch}"
|
||||
relative_archdir = rubyarchdir.rindex(prefix, 0) ? rubyarchdir[prefix.size..-1] : rubyarchdir
|
||||
puts %[\
|
||||
# frozen-string-literal: false
|
@ -1,113 +0,0 @@
|
||||
--- tool/rbinstall.rb.orig 2017-03-27 15:18:38 UTC
|
||||
+++ tool/rbinstall.rb
|
||||
@@ -322,6 +322,7 @@ bindir = CONFIG["bindir", true]
|
||||
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"]
|
||||
@@ -376,7 +377,7 @@ end
|
||||
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
|
||||
@@ -695,93 +696,6 @@ end
|
||||
|
||||
# :startdoc:
|
||||
|
||||
-install?(:ext, :comm, :gem) do
|
||||
- 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 = {}
|
||||
-
|
||||
- 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
|
||||
- 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 => $script_mode)
|
||||
- end
|
||||
- end
|
||||
-end
|
||||
-
|
||||
-install?(:ext, :comm, :gem) do
|
||||
- gem_dir = Gem.default_dir
|
||||
- directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
|
||||
- prepare "bundle gems", gem_dir, directories
|
||||
- install_dir = with_destdir(gem_dir)
|
||||
- installed_gems = {}
|
||||
- options = {
|
||||
- :install_dir => install_dir,
|
||||
- :bin_dir => with_destdir(bindir),
|
||||
- :domain => :local,
|
||||
- :ignore_dependencies => true,
|
||||
- :dir_mode => $dir_mode,
|
||||
- :data_mode => $data_mode,
|
||||
- :prog_mode => $prog_mode,
|
||||
- :wrappers => true,
|
||||
- :format_executable => true,
|
||||
- }
|
||||
- Gem::Specification.each_spec([srcdir+'/gems/*']) do |spec|
|
||||
- ins = RbInstall::UnpackedInstaller.new(spec, options)
|
||||
- puts "#{" "*30}#{spec.name} #{spec.version}"
|
||||
- ins.install
|
||||
- File.chmod($data_mode, File.join(install_dir, "specifications", "#{spec.full_name}.gemspec"))
|
||||
- installed_gems[spec.full_name] = true
|
||||
- end
|
||||
- installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))}
|
||||
- unless installed_gems.empty?
|
||||
- install installed_gems, gem_dir+"/cache"
|
||||
- end
|
||||
- next if gems.empty?
|
||||
- if defined?(Zlib)
|
||||
- Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name)))
|
||||
- gems.each do |gem|
|
||||
- begin
|
||||
- File.umask(022)
|
||||
- Gem.install(gem, Gem::Requirement.default, options)
|
||||
- ensure
|
||||
- File.umask(0222)
|
||||
- end
|
||||
- gemname = File.basename(gem)
|
||||
- puts "#{" "*30}#{gemname}"
|
||||
- end
|
||||
- # fix directory permissions
|
||||
- # TODO: Gem.install should accept :dir_mode option or something
|
||||
- File.chmod($dir_mode, *Dir.glob(install_dir+"/**/"))
|
||||
- # fix .gemspec permissions
|
||||
- File.chmod($data_mode, *Dir.glob(install_dir+"/specifications/*.gemspec"))
|
||||
- else
|
||||
- puts "skip installing bundle gems because of lacking zlib"
|
||||
- end
|
||||
-end
|
||||
-
|
||||
parse_args()
|
||||
|
||||
include FileUtils
|
@ -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: https://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.
|
||||
====
|
18245
lang/ruby23/pkg-plist
18245
lang/ruby23/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user