-
Notifications
You must be signed in to change notification settings - Fork 85
/
build-r-macos.sh
26 lines (22 loc) · 983 Bytes
/
build-r-macos.sh
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
#!/bin/sh
brew install gcc gettext gmp isl jpeg libmpc libpng mpfr pcre2 pkg-config readline xz texinfo wget
set -e # stop on error
# Set some variables, not all strictly needed.
export FC="/usr/local/opt/gcc/bin/gfortran"
export PATH="/Library/TeX/texbin:/usr/local/opt/texinfo/bin:$PATH"
export PKG_CONFIG_PATH="/opt/X11/lib/pkgconfig"
export R_CRAN_WEB="https://cran.rstudio.com"
export CRAN_RSYNC="mirrors.nic.cz::CRAN"
export R_TEXI2DVICMD="emulation"
# Clone and prep source code
git clone --depth 1 https://github.com/r-devel/r-svn
cd r-svn
sed -i.bak 's|$(GIT) svn info|./.github/workflows/svn-info.sh|' Makefile.in
./.github/workflows/wget-recommended.sh
./.github/workflows/svn-info.sh
# Configure and build
export PDFLATEX="${PWD}/.github/workflows/dummy"
CC=clang ./configure --disable-java --without-cairo --without-tcltk --without-x --with-aqua --with-lapack --with-blas --enable-R-shlib SED=/usr/bin/sed
make all -j8
# Run all checks (takes long)
# make check-all