diff options
author | davidovski <david@davidovski.xyz> | 2022-05-28 19:37:22 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-28 19:37:22 +0100 |
commit | 5170f5c85fe0e84fe8af55c6a024c7b6e844b0f1 (patch) | |
tree | 105f4e0fc05bac2fbdc03ab446987eaaa477988c /repo/system/ruby/ruby.xibuild | |
parent | 4615385d6c8203001962a7a31dd02cdb1a73544b (diff) |
fixed packages
Diffstat (limited to 'repo/system/ruby/ruby.xibuild')
-rw-r--r-- | repo/system/ruby/ruby.xibuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/repo/system/ruby/ruby.xibuild b/repo/system/ruby/ruby.xibuild new file mode 100644 index 0000000..3cc7f7b --- /dev/null +++ b/repo/system/ruby/ruby.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="ruby" +DESC="An object-oriented language for quick and easy programming" + +MAKEDEPS="make " +DEPS="sbase cacerts gmp libucontext musl zlib " + +PKG_VER=3.1.2 +SOURCE="https://cache.ruby-lang.org/pub/ruby/${PKG_VER%.*}/ruby-$PKG_VER.tar.gz" +ADDITIONAL="dont-install-bundled-gems.patch dont-install-bundled-gems.patch test_insns-lower-recursion-depth.patch " + +prepare () { + apply_patches +} + +build () { + export CFLAGS="-O2 -fno-omit-frame-pointer -fno-strict-aliasing" + export CPPFLAGS="-O2 -fno-omit-frame-pointer -fno-strict-aliasing" + + # Needed for coroutine stuff + export LIBS="-lucontext" + + # ruby saves path to install. we want use $PATH + export INSTALL=install + + # the configure script does not detect isnan/isinf as macros + export ac_cv_func_isnan=yes + export ac_cv_func_isinf=yes + + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-sitedir=/usr/local/lib/site_ruby \ + --with-search-path="/usr/lib/site_ruby/\$(ruby_ver)/x86_64-linux" \ + --enable-pthread \ + --disable-rpath \ + --enable-shared \ + --with-mantype=man + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |