void-packages/srcpkgs/rstudio/template
2019-08-16 12:44:02 +00:00

91 lines
3.6 KiB
Bash

# Template file for 'rstudio'
pkgname=rstudio
version=1.2.1335
revision=1
archs="i686 x86_64"
build_style=cmake
make_install_args="INSTALL_ROOT=${DESTDIR} \
PREFIX=/usr"
configure_args="-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=Release \
-DQT_QMAKE_EXECUTABLE=/usr/lib/qt/bin/qmake \
-DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio"
hostmakedepends="unzip git
qt5-plugin-pgsql qt5-plugin-mysql qt5-plugin-sqlite qt5-plugin-tds qt5-plugin-odbc"
makedepends="R zlib-devel libuuid-devel libressl-devel pam-devel
boost-devel pango-devel mathjax hunspell-devel pandoc
openjdk apache-ant
qt5-devel qt5-qmake qt5-webkit-devel qt5-declarative-devel qt5-location-devel
qt5-sensors-devel qt5-svg-devel qt5-xmlpatterns-devel qt5-webchannel-devel
qt5-webengine-devel"
depends="R"
short_desc="Integrated development environment (IDE) for R"
maintainer="ivierlin <github@ivierlin.de>"
license="AGPL-3.0-only"
homepage="https://www.rstudio.com"
_aws="https://s3.amazonaws.com"
_gin_version="2.1.2"
_gwt_version="2.8.1"
_selenium_version="2.37.0"
_chromedriver_version="2.7"
distfiles="https://github.com/rstudio/rstudio/archive/v${version}.tar.gz
${_aws}/rstudio-dictionaries/core-dictionaries.zip
${_aws}/rstudio-buildtools/gin-${_gin_version}.zip
${_aws}/rstudio-buildtools/gwt-${_gwt_version}.zip
${_aws}/rstudio-buildtools/selenium-java-${_selenium_version}.zip
${_aws}/rstudio-buildtools/selenium-server-standalone-${_selenium_version}.jar
${_aws}/rstudio-buildtools/chromedriver-linux"
checksum="f124fbae68762d0a1fc9a7dc72ad290aebde768e262df87acda3883a07fdfd58
4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494
b98e704164f54be596779696a3fcd11be5785c9907a99ec535ff6e9525ad5f9a
0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7
0eebba65d8edb01c1f46e462907c58f5d6e1cb0ddf63660a9985c8432bdffbb7
97bc8c699037fb6e99ba7af570fb60dbb1b7ce30cde2448287a44ef65b13023e
1ff3e9fc17e456571c440ab160f25ee451b2a4d36e61c8e297737cff7433f48c"
skip_extraction="core-dictionaries.zip
gin.zip
gwt-${_gwt_version}.zip
selenium-java-${_selenium_version}.zip
selenium-server-standalone-${_selenium_version}.jar
chromedriver-linux"
CXXFLAGS="-DBOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS"
post_extract() {
_srcdir="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
mkdir -p src/gwt/lib/{gin/${_gin_version},gwt,selenium/chromedriver/${_chromedriver_version}}
unzip -qd src/gwt/lib/gin/${_gin_version} ${_srcdir}/gin-${_gin_version}.zip
unzip -qd src/gwt/lib ${_srcdir}/gwt-${_gwt_version}.zip
mv src/gwt/lib/gwt-${_gwt_version} src/gwt/lib/gwt/${_gwt_version}
unzip -qd src/gwt/lib ${_srcdir}/selenium-java-${_selenium_version}.zip
mv src/gwt/lib/selenium-${_selenium_version} src/gwt/lib/selenium/${_selenium_version}
cp ${_srcdir}/selenium-server-standalone-${_selenium_version}.jar src/gwt/lib/selenium/${_selenium_version}
cp ${_srcdir}/chromedriver-linux src/gwt/lib/selenium/chromedriver/${_chromedriver_version}
mkdir -p dependencies/common/{dictionaries,libclang/{3.5,builtin-headers}}
unzip -qd dictionaries ${_srcdir}/core-dictionaries.zip
}
pre_configure() {
chmod u+x src/gwt/lib/selenium/chromedriver/${_chromedriver_version}/*
ln -sfT /usr/share/mathjax dependencies/common/mathjax-26
ln -sfT /usr/bin dependencies/common/pandoc
ln -sfT /usr/lib/libclang.so dependencies/common/libclang/3.5/libclang.so
ln -sfT /usr/lib/clang/$_clangver/include dependencies/common/libclang/builtin-headers/3.5
cd dependencies/common
./install-packages
cd ${wrksrc}
}
post_install() {
mkdir -p ${DESTDIR}/usr/bin
for f in {diagnostics,rpostback,rsession,rstudio}; do
ln -sf /usr/lib/rstudio/bin/${f} ${DESTDIR}/usr/bin/
done
vlicense COPYING
}