contrib/rstudio/Pkgfile

55 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-06-11 23:45:49 +02:00
# Description: RStudio - an Interface for GNU R
# URL: https://www.rstudio.com/
# Maintainer: Tim Biermann, tbier at posteo dot de
2019-08-16 18:03:03 +02:00
# Depends on: ant boost hyphen libevent mathjax openjdk8 pandoc-bin qtwebengine r
2019-06-11 23:45:49 +02:00
name=rstudio
2020-07-16 08:07:03 +02:00
version=1.3.1056
2020-05-24 11:52:56 +02:00
release=1
2020-05-24 11:52:56 +02:00
source=(https://github.com/rstudio/rstudio/archive/v$version/$name-$version.tar.gz
# https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-mathematics/rstudio/files
2020-07-16 08:07:03 +02:00
rstudio-1.2.5042-boost-1.73.0.patch)
2019-06-11 23:45:49 +02:00
git=(https://github.com/rstudio/rstudio.git)
build() {
## if you want your git snapshot to be a particular version
## uncomment below and change every occurance of $name-$version to $name
#git checkout v$version $name
patch -Np1 -d $name-$version -i $SRC/rstudio-1.2.5042-boost-1.73.0.patch
pushd $name-$version/dependencies/common
2019-10-14 23:48:24 +02:00
install -d pandoc
ln -sfT /usr/share/myspell/dicts dictionaries
2020-05-24 11:52:56 +02:00
ln -sfT /usr/share/mathjax mathjax-27
2019-10-14 23:48:24 +02:00
ln -sfT /usr/bin/pandoc pandoc/pandoc
ln -sfT /usr/bin/pandoc-citeproc pandoc/pandoc-citeproc
2020-05-24 11:52:56 +02:00
export R_LIBS_USER="$PKG/usr/lib/R/library/"
2019-10-14 23:48:24 +02:00
bash install-packages
popd
2019-06-11 23:45:49 +02:00
2019-10-14 23:48:24 +02:00
export PATH="/usr/lib/java/openjdk8/jre/bin/:${PATH}"
cmake -S$name-$version -Bbuild -GNinja\
2019-10-14 23:48:24 +02:00
-DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio \
-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=Release \
-DRSTUDIO_USE_SYSTEM_BOOST=ON \
-DQT_QMAKE_EXECUTABLE=/usr/lib/qt5/bin/qmake \
2019-10-14 23:48:24 +02:00
-DBoost_NO_BOOST_CMAKE=ON \
-DRSTUDIO_BUNDLE_QT=FALSE \
-Wno-dev
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2019-06-11 23:45:49 +02:00
2019-10-14 23:48:24 +02:00
install -dm755 $PKG/usr/bin/
ln -s /usr/lib/$name/bin/$name $PKG/usr/bin/$name
2019-10-14 23:48:24 +02:00
sed -i 's|/usr/lib/rstudio/bin/rstudio|/usr/bin/rstudio|g' $PKG/usr/share/applications/rstudio.desktop
find $PKG \(\
-iname '*README*' -o \
-iname '*COPYING*' -o \
-iname 'INSTALL' \
\) -delete || true
2019-06-11 23:45:49 +02:00
}