Change r.rb to update it to 3.4.0 and correct dependencies.

Add check method which works on x86_64 correctly.
Unfortunately, it causes problem on armv7l.
Also change to strip binaries.
parent 7c421258
require 'package'
class R < Package
version '3.3.2'
source_url 'https://cran.rstudio.com/src/base/R-3/R-3.3.2.tar.gz'
source_sha1 '0e39e9c2d28fe6bab9c55ca23e08ba8727fd2fca'
version '3.4.0'
source_url 'https://cran.r-project.org/src/base/R-3/R-3.4.0.tar.gz'
source_sha1 '054c1d099006354c89b195df6783b933846ced60'
# depends_on 'gfortran' # require gfortran enabled gcc
depends_on 'pcre' # need to use pcre not pcre2
depends_on 'zlibpkg'
depends_on 'xzutils'
def self.build
system './configure',
......@@ -12,6 +17,16 @@ class R < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
end
def self.check
# test fails on armv7l, but passes on x86_64
if `uname -m`.strip == 'x86_64'
# Chromeos doens't have "en_GB.UTF-8" locale, so ignore error check
system "sed -i tests/reg-tests-3.R -e '/stopifnot(identical(Sys.setlocale(/s/^/#/'"
system "make", "check"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment