-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path2.7.8
More file actions
31 lines (28 loc) · 1.29 KB
/
2.7.8
File metadata and controls
31 lines (28 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install_bundler() {
"$PREFIX_PATH"/bin/gem install bundler:1.17.3
"$PREFIX_PATH"/bin/gem install bundler:2.4.22
}
RUBY_CFLAGS="-O3 -march=native"
case "$(cc -v 2>&1)" in
*gcc*)
RUBY_CFLAGS+=" -Wno-discarded-qualifiers"
RUBY_CFLAGS+=" -Wno-incompatible-pointer-types"
RUBY_CFLAGS+=" -Wno-int-conversion"
RUBY_CFLAGS+=" -Wno-return-type"
# GCC 15 porting: Use -std=gnu99 with relaxed type checking
RUBY_CFLAGS+=" -std=gnu99 -Wno-error=implicit-function-declaration"
;;
*clang*)
RUBY_CFLAGS+=" -Wno-incompatible-function-pointer-types"
RUBY_CFLAGS+=" -Wno-int-conversion"
RUBY_CFLAGS+=" -Wno-return-type"
;;
esac
export RUBY_CFLAGS
# Disable BASERUBY to avoid erb dependency issues on Arch Linux
# (system Ruby 3.4+ doesn't include erb bundled gem, which breaks bootstrap)
package_option ruby configure --with-baseruby=no
package_option ruby configure --with-out-ext=tcl --with-out-ext=tk --disable-install-doc
install_package "openssl-1.1.1w" "https://www.openssl.org/source/openssl-1.1.1w.tar.gz#cf3098950cb4d853ad95c0841f1f9c6d3dc102dccfcacd521d93925208b76ac8" openssl
install_package "ruby-2.7.8" "https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.8.tar.gz#c2dab63cbc8f2a05526108ad419efa63a67ed4074dbbcf9fc2b1ca664cb45ba0" enable_shared standard
install_bundler