Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 65 lines (52 sloc) 1.36 KB
#! /bin/sh
set -xe
PKG=rstudio
VERSION=1.1.30
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
#PREFIX=/dev/shm/$PKG-$VERSION-$BUILD
BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home
exec </dev/null
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile
export MAKEFLAGS="-j $(nproc)"
BUILD=$BUILD_TMPDIR/build
mkdir -p $BUILD
cd $BUILD
QTPREFIX=/usr/local/qt5
BOOSTPREFIX=/package/mariux64/boost/1.57.0
test -e v$VERSION.tar.gz || wget https://github.com/rstudio/rstudio/archive/v$VERSION.tar.gz
test -d rstudio-$VERSION || tar xf v$VERSION.tar.gz
cd rstudio-$VERSION
cd dependencies/common
# from ./install-common:
#
./install-gwt
./install-dictionaries
# ./install-boost
./install-mathjax
./install-pandoc
./install-libclang
./install-packages
cd ../..
cmake . \
-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DBOOST_ROOT=$BOOSTPREFIX \
-DBOOST_LIBRARYDIR=${BOOSTPREFIX}/lib \
-DQT_QMAKE_EXECUTABLE=${QTPREFIX}/bin/qmake \
-DCMAKE_INSTALL_RPATH=$PREFIX/lib\;$BOOSTPREFIX/lib\;$QTPREFIX/lib \
-DRSTUDIO_GIT_REVISION_HASH=ARSCH \
-DCMAKE_CXX_COMPILER=/package/cuda/gcc-4.9.3/bin/c++ \
-DCMAKE_C_COMPILER=/package/cuda/gcc-4.9.3/bin/gcc
make
make install
exit