1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Object-oriented interpreted scripting language
9 HOMEPAGE= http://www.ruby-lang.org/en/
14 DISTFILE[1]= ruby-2.7.2.tar.xz:main
17 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= gdbm:primary:static
27 BUILDRUN_DEPENDS= libyaml:single:standard
28 libffi:single:standard
30 RUN_DEPENDS= autoselect-ruby:single:standard
32 USES= autoreconf cpe execinfo readline ssl ruby:v27,interp
37 LICENSE= BSD2CLAUSE:primary RUBY:primary
38 LICENSE_FILE= BSD2CLAUSE:{{WRKSRC}}/BSDL
39 RUBY:{{WRKSRC}}/COPYING
46 FPC_EQUIVALENT= lang/ruby27
49 CONFIGURE_ARGS= --enable-pthread
51 --enable-install-static-library
52 --with-ruby-version=minor
53 --with-sitedir="{{PREFIX}}/lib/ruby/site_ruby"
54 --with-vendordir="{{PREFIX}}/lib/ruby/vendor_ruby"
57 --with-readline-dir={{LOCALBASE}}
59 {{RUBY_CONFIGURE_ARGS}}
60 --disable-install-rdoc
61 CONFIGURE_ENV= debugflags=
62 ac_cv_build={{CONFIGURE_TARGET}}
67 INSTALL_REQ_TOOLCHAIN= yes
68 PLIST_SUB= XY={{RUBY_SUFFIX}}
72 CFLAGS= -Wno-attributes
73 VAR_OPSYS[sunos]= CONFIGURE_ARGS=--disable-jit-support
74 VAR_OPSYS[darwin]= CONFIGURE_ENV=ac_cv_func_backtrace=no
75 MAKEFILE_LINE=MODULE=bundle
78 ${FIND} ${WRKSRC}/ -name "*.orig" -delete
79 # Disable all bundled gems
80 # We install these from other ports
81 .for d in gems bin/bundle bin/bundler bin/gem lib/bundler ext/dbm ext/gdbm
82 ${RM} -r ${BUILD_WRKSRC}/${d}
84 ${RM} ${BUILD_WRKSRC}/man/bundle*
85 ${RM} ${BUILD_WRKSRC}/man/gemfile*
88 ${MKDIR} ${STAGEDIR}${RUBY_DOCDIR}/readline \
89 ${STAGEDIR}${RUBY_DOCDIR}/ripper \
90 ${STAGEDIR}${RUBY_DOCDIR}/stringio \
91 ${STAGEDIR}${RUBY_DOCDIR}/syslog \
92 ${STAGEDIR}${RUBY_EXAMPLESDIR}/bigdecimal \
93 # RDoc generated disabled ${STAGEDIR}${RUBY_RIDIR}
96 # <sys/vnode.h> does not exist on linux
97 ${REINPLACE_CMD} -e '/vnode\.h/d' ${WRKSRC}/dir.c
100 # strip ruby binaries
101 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
102 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.${LIBEXT}
103 ${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.${LIBEXT}' -exec ${STRIP_CMD} {} \;
105 (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_DOCDIR}/)
106 ${INSTALL_DATA} ${WRKSRC}/ext/readline/README ${STAGEDIR}${RUBY_DOCDIR}/readline/
107 ${INSTALL_DATA} ${WRKSRC}/ext/ripper/README ${STAGEDIR}${RUBY_DOCDIR}/ripper/
108 ${INSTALL_DATA} ${WRKSRC}/ext/stringio/README.md ${STAGEDIR}${RUBY_DOCDIR}/stringio/
109 ${INSTALL_DATA} ${WRKSRC}/ext/syslog/syslog.txt ${STAGEDIR}${RUBY_DOCDIR}/syslog/
111 ${RM} ${STAGEDIR}${STD_DOCDIR}/NEWS-*
112 ${RM} ${STAGEDIR}${STD_DOCDIR}/ChangeLog-*
113 ${RM} ${STAGEDIR}${STD_DOCDIR}/.document
114 # remove empty directories
115 ${RM} -r ${STAGEDIR}${PREFIX}/lib/ruby/gems
116 ${RM} -r ${STAGEDIR}${PREFIX}/include/ruby-2.7/ruby-2.7
118 (cd ${WRKSRC}/sample/ && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_EXAMPLESDIR}/)
119 ${INSTALL_DATA} ${WRKSRC}/ext/bigdecimal/sample/*.rb \
120 ${STAGEDIR}${RUBY_EXAMPLESDIR}/bigdecimal/
123 # Hack to allow modules to be installed into separate PREFIX and/or under
125 ${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3"
126 ${RB_SET_CONF_VAR} "INSTALL" "'/usr/bin/install -c'"
127 ${RB_SET_CONF_VAR} "INSTALL_PROGRAM" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} ${STRIP} -m ${BINMODE}' : '${INSTALL_PROGRAM}'"
128 ${RB_SET_CONF_VAR} "INSTALL_SCRIPT" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${BINMODE}' : '${INSTALL_SCRIPT}'"
129 ${RB_SET_CONF_VAR} "INSTALL_DATA" "ENV['RB_USER_INSTALL'] ? '${INSTALL} ${COPY} -m ${SHAREMODE}' : '${INSTALL_DATA}'"
131 [FILE:665:descriptions/desc.primary]
132 Ruby is the interpreted scripting language for quick and
133 easy object-oriented programming. It has many features to
134 process text files and to do system management tasks (as in
135 Perl). It is simple, straight-forward, and extensible.
137 Features of Ruby are shown below.
140 + *Normal* Object-Oriented features(ex. class, method calls)
141 + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method)
142 + Operator Overloading
144 + Iterators and Closures
146 + Dynamic Loading of Object files(on some architecture)
147 + Highly Portable(works on many UNIX machines, and on DOS,
148 Windows, Mac, BeOS etc.)
151 [FILE:64:descriptions/desc.rdoc]
152 This package contains the Ruby Documentation System for Ruby24.
156 1b95ab193cc8f5b5e59d2686cb3d5dcf1ddf2a86cb6950e0b4bdaae5040ec0d6 12037052 ruby/ruby-2.7.2.tar.xz
159 [FILE:18878:manifests/plist.primary]
160 %%ONLY-DARWIN%%include/ruby-%%XDOTY%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
161 %%ONLY-DRAGONFLY%%include/ruby-%%XDOTY%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
162 %%ONLY-FREEBSD%%include/ruby-%%XDOTY%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
163 %%ONLY-LINUX%%include/ruby-%%XDOTY%%/%%RUBY_ARCH%%/rb_mjit_min_header-%%RUBY_VERSION%%.h
173 include/ruby-%%XDOTY%%/ruby.h
174 include/ruby-%%XDOTY%%/%%RUBY_ARCH%%/ruby/config.h
175 include/ruby-%%XDOTY%%/ruby/
197 include/ruby-%%XDOTY%%/ruby/backward/
205 libruby%%XY%%-static.a
207 libruby%%XY%%.so.%%RUBY_SHLIBVER%%
208 lib/pkgconfig/ruby-%%XDOTY%%.pc
279 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/
280 bigdecimal.%%MODULE%%
281 continuation.%%MODULE%%
305 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/cgi/escape.%%MODULE%%
306 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/digest/
307 bubblebabble.%%MODULE%%
312 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/enc/
316 emacs_mule.%%MODULE%%
324 iso_8859_1.%%MODULE%%
325 iso_8859_10.%%MODULE%%
326 iso_8859_11.%%MODULE%%
327 iso_8859_13.%%MODULE%%
328 iso_8859_14.%%MODULE%%
329 iso_8859_15.%%MODULE%%
330 iso_8859_16.%%MODULE%%
331 iso_8859_2.%%MODULE%%
332 iso_8859_3.%%MODULE%%
333 iso_8859_4.%%MODULE%%
334 iso_8859_5.%%MODULE%%
335 iso_8859_6.%%MODULE%%
336 iso_8859_7.%%MODULE%%
337 iso_8859_8.%%MODULE%%
338 iso_8859_9.%%MODULE%%
346 windows_1250.%%MODULE%%
347 windows_1251.%%MODULE%%
348 windows_1252.%%MODULE%%
349 windows_1253.%%MODULE%%
350 windows_1254.%%MODULE%%
351 windows_1257.%%MODULE%%
352 windows_31j.%%MODULE%%
353 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/enc/trans/
359 emoji_iso2022_kddi.%%MODULE%%
360 emoji_sjis_docomo.%%MODULE%%
361 emoji_sjis_kddi.%%MODULE%%
362 emoji_sjis_softbank.%%MODULE%%
368 japanese_euc.%%MODULE%%
369 japanese_sjis.%%MODULE%%
371 single_byte.%%MODULE%%
375 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/io/
379 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/json/ext/
382 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/racc/cparse.%%MODULE%%
383 lib/ruby/%%XDOTY%%/%%RUBY_ARCH%%/rbconfig/sizeof.%%MODULE%%
384 lib/ruby/%%XDOTY%%/benchmark/version.rb
385 lib/ruby/%%XDOTY%%/bigdecimal/
391 lib/ruby/%%XDOTY%%/cgi/
398 lib/ruby/%%XDOTY%%/cgi/session/pstore.rb
399 lib/ruby/%%XDOTY%%/csv/
408 lib/ruby/%%XDOTY%%/csv/core_ext/
411 lib/ruby/%%XDOTY%%/delegate/version.rb
412 lib/ruby/%%XDOTY%%/did_you_mean/
417 tree_spell_checker.rb
420 lib/ruby/%%XDOTY%%/did_you_mean/core_ext/name_error.rb
421 lib/ruby/%%XDOTY%%/did_you_mean/experimental/
422 initializer_name_correction.rb
423 ivar_name_correction.rb
424 lib/ruby/%%XDOTY%%/did_you_mean/formatters/
427 lib/ruby/%%XDOTY%%/did_you_mean/spell_checkers/
429 method_name_checker.rb
430 name_error_checkers.rb
432 lib/ruby/%%XDOTY%%/did_you_mean/spell_checkers/name_error_checkers/
433 class_name_checker.rb
434 variable_name_checker.rb
435 lib/ruby/%%XDOTY%%/digest/sha2.rb
436 lib/ruby/%%XDOTY%%/drb/
449 lib/ruby/%%XDOTY%%/fiddle/
458 lib/ruby/%%XDOTY%%/forwardable/
461 lib/ruby/%%XDOTY%%/getoptlong/version.rb
462 lib/ruby/%%XDOTY%%/io/console/size.rb
463 lib/ruby/%%XDOTY%%/irb/
485 lib/ruby/%%XDOTY%%/irb/cmd/
494 lib/ruby/%%XDOTY%%/irb/ext/
503 lib/ruby/%%XDOTY%%/irb/lc/
506 lib/ruby/%%XDOTY%%/irb/lc/ja/
510 lib/ruby/%%XDOTY%%/json/
515 lib/ruby/%%XDOTY%%/json/add/
530 lib/ruby/%%XDOTY%%/logger/
537 lib/ruby/%%XDOTY%%/matrix/
538 eigenvalue_decomposition.rb
541 lib/ruby/%%XDOTY%%/net/
549 lib/ruby/%%XDOTY%%/net/http/
560 lib/ruby/%%XDOTY%%/net/pop/version.rb
561 lib/ruby/%%XDOTY%%/net/smtp/version.rb
562 lib/ruby/%%XDOTY%%/observer/version.rb
563 lib/ruby/%%XDOTY%%/open3/version.rb
564 lib/ruby/%%XDOTY%%/openssl/
574 lib/ruby/%%XDOTY%%/optparse/
582 lib/ruby/%%XDOTY%%/ostruct/version.rb
583 lib/ruby/%%XDOTY%%/pstore/version.rb
584 lib/ruby/%%XDOTY%%/psych/
602 lib/ruby/%%XDOTY%%/psych/handlers/
605 lib/ruby/%%XDOTY%%/psych/json/
610 lib/ruby/%%XDOTY%%/psych/nodes/
618 lib/ruby/%%XDOTY%%/psych/visitors/
625 lib/ruby/%%XDOTY%%/racc/
636 parserfilegenerator.rb
640 statetransitiontable.rb
642 lib/ruby/%%XDOTY%%/rdoc/
687 lib/ruby/%%XDOTY%%/rdoc/context/section.rb
688 lib/ruby/%%XDOTY%%/rdoc/generator/
694 lib/ruby/%%XDOTY%%/rdoc/generator/pot/
698 lib/ruby/%%XDOTY%%/rdoc/generator/template/darkfish/
701 _sidebar_VCS_info.rhtml
702 _sidebar_classes.rhtml
703 _sidebar_extends.rhtml
704 _sidebar_in_files.rhtml
705 _sidebar_includes.rhtml
706 _sidebar_installed.rhtml
707 _sidebar_methods.rhtml
708 _sidebar_navigation.rhtml
710 _sidebar_parent.rhtml
711 _sidebar_search.rhtml
712 _sidebar_sections.rhtml
713 _sidebar_table_of_contents.rhtml
717 servlet_not_found.rhtml
719 table_of_contents.rhtml
720 lib/ruby/%%XDOTY%%/rdoc/generator/template/darkfish/css/
723 lib/ruby/%%XDOTY%%/rdoc/generator/template/darkfish/fonts/
727 Lato-RegularItalic.ttf
728 SourceCodePro-Bold.ttf
729 SourceCodePro-Regular.ttf
730 lib/ruby/%%XDOTY%%/rdoc/generator/template/darkfish/images/
737 bullet_toggle_minus.png
738 bullet_toggle_plus.png
756 lib/ruby/%%XDOTY%%/rdoc/generator/template/darkfish/js/
759 lib/ruby/%%XDOTY%%/rdoc/generator/template/json_index/js/
762 lib/ruby/%%XDOTY%%/rdoc/i18n/
765 lib/ruby/%%XDOTY%%/rdoc/markdown/
768 lib/ruby/%%XDOTY%%/rdoc/markup/
780 indented_paragraph.rb
794 to_joined_paragraph.rb
798 to_table_of_contents.rb
802 lib/ruby/%%XDOTY%%/rdoc/parser/
812 lib/ruby/%%XDOTY%%/rdoc/rd/
816 lib/ruby/%%XDOTY%%/rdoc/ri/
822 lib/ruby/%%XDOTY%%/rdoc/stats/
826 lib/ruby/%%XDOTY%%/reline/
838 lib/ruby/%%XDOTY%%/reline/key_actor/
843 lib/ruby/%%XDOTY%%/reline/unicode/east_asian_width.rb
844 lib/ruby/%%XDOTY%%/rexml/
869 undefinednamespaceexception.rb
874 lib/ruby/%%XDOTY%%/rexml/dtd/
880 lib/ruby/%%XDOTY%%/rexml/formatters/
884 lib/ruby/%%XDOTY%%/rexml/light/node.rb
885 lib/ruby/%%XDOTY%%/rexml/parsers/
894 lib/ruby/%%XDOTY%%/rexml/validation/
897 validationexception.rb
898 lib/ruby/%%XDOTY%%/rinda/
902 lib/ruby/%%XDOTY%%/ripper/
907 lib/ruby/%%XDOTY%%/rss/
931 lib/ruby/%%XDOTY%%/rss/content/
934 lib/ruby/%%XDOTY%%/rss/dublincore/
938 lib/ruby/%%XDOTY%%/rss/maker/
954 lib/ruby/%%XDOTY%%/rubygems/
956 basic_specification.rb
957 bundler_version_finder.rb
964 dependency_installer.rb
972 gemcutter_utilities.rb
974 install_default_message.rb
976 install_update_options.rb
978 installer_test_case.rb
979 local_remote_options.rb
1002 source_specific_file.rb
1005 specification_policy.rb
1006 stub_specification.rb
1020 lib/ruby/%%XDOTY%%/rubygems/commands/
1026 dependency_command.rb
1027 environment_command.rb
1029 generate_index_command.rb
1049 specification_command.rb
1051 uninstall_command.rb
1056 lib/ruby/%%XDOTY%%/rubygems/core_ext/
1060 lib/ruby/%%XDOTY%%/rubygems/ext/
1064 configure_builder.rb
1067 lib/ruby/%%XDOTY%%/rubygems/package/
1077 lib/ruby/%%XDOTY%%/rubygems/package/tar_reader/entry.rb
1078 lib/ruby/%%XDOTY%%/rubygems/request/
1082 lib/ruby/%%XDOTY%%/rubygems/request_set/
1083 gem_dependency_api.rb
1085 lib/ruby/%%XDOTY%%/rubygems/request_set/lockfile/
1088 lib/ruby/%%XDOTY%%/rubygems/resolver/
1089 activation_request.rb
1091 api_specification.rb
1096 dependency_request.rb
1098 git_specification.rb
1100 index_specification.rb
1101 installed_specification.rb
1103 local_specification.rb
1105 lock_specification.rb
1110 spec_specification.rb
1114 vendor_specification.rb
1115 lib/ruby/%%XDOTY%%/rubygems/resolver/molinillo/lib/molinillo.rb
1116 lib/ruby/%%XDOTY%%/rubygems/resolver/molinillo/lib/molinillo/
1123 lib/ruby/%%XDOTY%%/rubygems/resolver/molinillo/lib/molinillo/delegates/
1125 specification_provider.rb
1126 lib/ruby/%%XDOTY%%/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/
1128 add_edge_no_circular.rb
1131 detach_vertex_named.rb
1136 lib/ruby/%%XDOTY%%/rubygems/resolver/molinillo/lib/molinillo/modules/
1137 specification_provider.rb
1139 lib/ruby/%%XDOTY%%/rubygems/security/
1144 lib/ruby/%%XDOTY%%/rubygems/source/
1151 lib/ruby/%%XDOTY%%/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem
1152 lib/ruby/%%XDOTY%%/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem
1153 lib/ruby/%%XDOTY%%/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem
1154 lib/ruby/%%XDOTY%%/rubygems/util/
1157 lib/ruby/%%XDOTY%%/singleton/version.rb
1158 lib/ruby/%%XDOTY%%/syslog/logger.rb
1159 lib/ruby/%%XDOTY%%/timeout/version.rb
1160 lib/ruby/%%XDOTY%%/tracer/version.rb
1161 lib/ruby/%%XDOTY%%/unicode_normalize/
1164 lib/ruby/%%XDOTY%%/uri/
1177 lib/ruby/%%XDOTY%%/webrick/
1199 lib/ruby/%%XDOTY%%/webrick/httpauth/
1207 lib/ruby/%%XDOTY%%/webrick/httpservlet/
1214 lib/ruby/%%XDOTY%%/yaml/
1222 @dir %%RUBY_SITEARCHLIBDIR%%
1223 @dir %%RUBY_VENDORARCHLIBDIR%%
1226 [FILE:863:manifests/plist.docs]
1227 share/doc/ruby%%XY%%/
1242 standard_library.rdoc
1246 share/doc/ruby%%XY%%/images/boottime-classes.png
1247 share/doc/ruby%%XY%%/irb/
1250 share/doc/ruby%%XY%%/pty/
1253 share/doc/ruby%%XY%%/readline/README
1254 share/doc/ruby%%XY%%/ripper/README
1255 share/doc/ruby%%XY%%/stringio/README.md
1256 share/doc/ruby%%XY%%/syntax/
1258 calling_methods.rdoc
1260 control_expressions.rdoc
1265 modules_and_classes.rdoc
1268 share/doc/ruby%%XY%%/syslog/syslog.txt
1271 [FILE:3674:manifests/plist.examples]
1272 share/examples/ruby%%XY%%/
1278 cgi-session-pstore.rb
1327 share/examples/ruby%%XY%%/bigdecimal/
1331 share/examples/ruby%%XY%%/drb/
1377 share/examples/ruby%%XY%%/logger/
1381 share/examples/ruby%%XY%%/openssl/
1393 share/examples/ruby%%XY%%/optparse/
1396 share/examples/ruby%%XY%%/pty/
1400 share/examples/ruby%%XY%%/rdoc/markup/
1403 share/examples/ruby%%XY%%/ripper/
1406 share/examples/ruby%%XY%%/rss/
1412 share/examples/ruby%%XY%%/testunit/
1418 share/examples/ruby%%XY%%/trick2013/README.md
1419 share/examples/ruby%%XY%%/trick2013/kinaba/
1423 share/examples/ruby%%XY%%/trick2013/mame/
1427 share/examples/ruby%%XY%%/trick2013/shinh/
1431 share/examples/ruby%%XY%%/trick2013/yhara/
1436 share/examples/ruby%%XY%%/trick2015/README.md
1437 share/examples/ruby%%XY%%/trick2015/eregon/
1441 share/examples/ruby%%XY%%/trick2015/kinaba/
1445 share/examples/ruby%%XY%%/trick2015/ksk_1/
1449 share/examples/ruby%%XY%%/trick2015/ksk_2/
1458 share/examples/ruby%%XY%%/trick2015/monae/
1462 share/examples/ruby%%XY%%/trick2018/README.md
1463 share/examples/ruby%%XY%%/trick2018/01-kinaba/
1467 share/examples/ruby%%XY%%/trick2018/02-mame/
1471 share/examples/ruby%%XY%%/trick2018/03-tompng/
1479 share/examples/ruby%%XY%%/trick2018/04-colin/
1483 share/examples/ruby%%XY%%/trick2018/05-tompng/
1486 preview_of_output.png
1488 share/examples/ruby%%XY%%/webrick/
1500 [FILE:2759:patches/patch-configure.ac]
1501 --- configure.ac.orig 2020-10-01 12:15:38 UTC
1503 @@ -177,13 +177,7 @@ AS_CASE(["$host_os:$build_os"],
1504 # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported)
1505 # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
1506 # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
1507 - AS_IF([! $CC -E -xc - <<SRC >/dev/null], [
1508 - @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
1509 - @%:@error premature clang
1512 - AC_MSG_ERROR([clang version 3.0 or later is required])
1515 [openbsd*:openbsd*], [
1516 AC_CHECK_TOOLS(CC, [cc])
1518 @@ -245,7 +239,7 @@ AS_CASE(["$target_os"],
1520 AS_IF([test "$GCC" = yes], [
1524 gcc_major=`echo =__GNUC__ | $CC -E -xc - | sed '/^=/!d;s///'`
1525 gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'`
1526 test -n "$gcc_major" || gcc_major=0
1527 @@ -813,7 +807,6 @@ AS_CASE(["$target_os"],
1531 - RUBY_PREPEND_OPTION(LIBS, -lobjc)
1532 RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT)
1533 AC_CACHE_CHECK([whether syscall(2) is deprecated], rb_cv_syscall_deprecated,
1535 @@ -3172,7 +3165,7 @@ AS_CASE("$enable_shared", [yes], [
1537 LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)'
1539 - [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*], [
1540 + [gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*], [
1541 RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"])
1542 LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)'
1543 AS_IF([test "$load_relative" = yes], [
1544 @@ -3181,13 +3174,9 @@ AS_CASE("$enable_shared", [yes], [
1545 LIBRUBY_RELATIVE=yes
1548 - [freebsd*|dragonfly*], [
1549 + [freebsd*|dragonfly*|linux*|solaris*], [
1550 LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
1551 LIBRUBY_SONAME='$(LIBRUBY_SO)'
1552 - AS_IF([test "$rb_cv_binary_elf" != "yes" ], [
1553 - LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
1554 - LIBRUBY_ALIASES=''
1558 LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
1559 @@ -3220,8 +3209,8 @@ AS_CASE("$enable_shared", [yes], [
1562 LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)'
1563 - LIBRUBY_SONAME='$(LIBRUBY_SO)'
1564 - LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(SOEXT)'
1565 + LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT)'
1566 + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).$(MAJOR)$(MINOR).$(SOEXT)'
1567 AS_IF([test "$load_relative" = yes], [
1568 libprefix="@executable_path/../${libdir_basename}"
1569 LIBRUBY_RELATIVE=yes
1572 [FILE:810:patches/patch-dir.c]
1573 --- dir.c.orig 2020-10-01 12:15:38 UTC
1575 @@ -121,16 +121,16 @@ char *strchr(char*,char);
1576 # define USE_NAME_ON_FS 0
1581 # define NORMALIZE_UTF8PATH 1
1583 # define NORMALIZE_UTF8PATH 0
1586 +#include <sys/vnode.h>
1587 #if NORMALIZE_UTF8PATH
1588 #include <sys/param.h>
1589 #include <sys/mount.h>
1590 -#include <sys/vnode.h>
1592 # if defined HAVE_FGETATTRLIST || !defined HAVE_GETATTRLIST
1593 # define need_normalization(dirp, path) need_normalization(dirp)
1594 @@ -1127,7 +1127,7 @@ rb_dir_getwd_ospath(void)
1595 path_guard = Data_Wrap_Struct((VALUE)0, NULL, RUBY_DEFAULT_FREE, NULL);
1596 path = ruby_getcwd();
1597 DATA_PTR(path_guard) = path;
1599 +#if NORMALIZE_UTF8PATH
1600 cwd = rb_str_normalize_ospath(path, strlen(path));
1602 cwd = rb_str_new2(path);
1605 [FILE:1044:patches/patch-ext_openssl_openssl__missing.h]
1606 --- ext/openssl/openssl_missing.h.orig 2020-10-01 12:15:38 UTC
1607 +++ ext/openssl/openssl_missing.h
1608 @@ -72,6 +72,9 @@ void ossl_HMAC_CTX_free(HMAC_CTX *);
1609 #if !defined(HAVE_X509_STORE_SET_EX_DATA)
1610 # define X509_STORE_set_ex_data(x, idx, data) \
1611 CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))
1614 +#if !defined(HAVE_X509_STORE_GET_EX_NEW_INDEX)
1615 # define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
1616 CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
1617 (newf), (dupf), (freef))
1618 @@ -145,6 +148,7 @@ void ossl_X509_REQ_get0_signature(const
1621 #if !defined(HAVE_OPAQUE_OPENSSL)
1622 +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
1623 #define IMPL_PKEY_GETTER(_type, _name) \
1624 static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \
1625 return pkey->pkey._name; }
1626 @@ -196,6 +200,7 @@ IMPL_PKEY_GETTER(EC_KEY, ec)
1627 #undef IMPL_PKEY_GETTER
1628 #undef IMPL_KEY_ACCESSOR2
1629 #undef IMPL_KEY_ACCESSOR3
1631 #endif /* HAVE_OPAQUE_OPENSSL */
1633 #if !defined(EVP_CTRL_AEAD_GET_TAG)
1636 [FILE:613:patches/patch-file.c]
1637 --- file.c.orig 2020-10-01 12:15:38 UTC
1640 # define API_AVAILABLE(...)
1641 # define API_DEPRECATED(...)
1643 -#include <CoreFoundation/CFString.h>
1647 @@ -251,7 +250,7 @@ rb_str_encode_ospath(VALUE path)
1653 # define NORMALIZE_UTF8PATH 1
1655 rb_str_append_normalized_ospath(VALUE str, const char *ptr, long len)
1656 @@ -3836,7 +3835,7 @@ rb_file_expand_path_internal(VALUE fname
1663 int n = ignored_char_p(s, fend, enc);
1667 [FILE:469:patches/patch-lib_mkmf.rb]
1668 --- lib/mkmf.rb.orig 2020-10-01 12:15:38 UTC
1670 @@ -240,7 +240,7 @@ module MakeMakefile
1673 if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
1675 + $topdir = $hdrdir + "/" + "#{CONFIG['arch']}/ruby/"
1676 $top_srcdir = $hdrdir
1677 $arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"]
1678 elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h")
1681 [FILE:533:patches/patch-tool_mkconfig.rb]
1682 --- tool/mkconfig.rb.orig 2020-10-01 12:15:38 UTC
1683 +++ tool/mkconfig.rb
1684 @@ -160,8 +160,9 @@ def vars.expand(val, config = self)
1685 val.replace(newval) unless newval == val
1688 -prefix = vars.expand(vars["prefix"] ||= "")
1689 -rubyarchdir = vars.expand(vars["rubyarchdir"] ||= "")
1690 +prefix = vars.expand(vars["rubyarchdir"])
1691 +major, minor, *rest = RUBY_VERSION.split('.')
1692 +rubyarchdir = "/lib/ruby/#{major}.#{minor}/#{arch}"
1693 relative_archdir = rubyarchdir.rindex(prefix, 0) ? rubyarchdir[prefix.size..-1] : rubyarchdir
1698 [FILE:447:patches/patch-tool_rbinstall.rb]
1699 --- tool/rbinstall.rb.orig 2020-10-01 12:15:38 UTC
1700 +++ tool/rbinstall.rb
1701 @@ -795,13 +795,6 @@ end
1705 -install?(:ext, :comm, :gem, :'default-gems', :'default-gems-comm') do
1706 - install_default_gem('lib', srcdir)
1708 -install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do
1709 - install_default_gem('ext', srcdir)
1712 def load_gemspec(file)
1713 file = File.realpath(file)
1714 code = File.read(file, encoding: "utf-8:-")
1717 [FILE:378:files/special.mk]
1718 # Macros to change variables in rbconfig.rb
1719 RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' --
1721 POST_PLIST_TARGET= rdoc-autolist
1724 @(cd ${STAGEDIR}${PREFIX} && ${FIND} share/ri \
1725 \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
1726 >> ${WRKDIR}/.manifest.rdoc.mktmp