95 lines
3.8 KiB
Bash
95 lines
3.8 KiB
Bash
# Template file for 'rstudio'
|
|
pkgname=rstudio
|
|
version=1.1.463
|
|
revision=1
|
|
only_for_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"
|
|
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="1.5"
|
|
_gwt_version="2.7.0"
|
|
_junit_version="4.9b3"
|
|
_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/junit-${_junit_version}.jar
|
|
${_aws}/rstudio-buildtools/selenium-java-${_selenium_version}.zip
|
|
${_aws}/rstudio-buildtools/selenium-server-standalone-${_selenium_version}.jar
|
|
${_aws}/rstudio-buildtools/chromedriver-linux"
|
|
checksum="57be651509ff2542a1dabccb70584ecf6b35fb20f97618091c181d4982667cdd
|
|
4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494
|
|
f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94
|
|
aa65061b73836190410720bea422eb8e787680d7bc0c2b244ae6c9a0d24747b3
|
|
dc566c3f5da446defe36c534f7ee19cdfe7e565020038b2ef38f01bc9c070551
|
|
0eebba65d8edb01c1f46e462907c58f5d6e1cb0ddf63660a9985c8432bdffbb7
|
|
97bc8c699037fb6e99ba7af570fb60dbb1b7ce30cde2448287a44ef65b13023e
|
|
1ff3e9fc17e456571c440ab160f25ee451b2a4d36e61c8e297737cff7433f48c"
|
|
skip_extraction="core-dictionaries.zip
|
|
gin.zip
|
|
gwt-${_gwt_version}.zip
|
|
junit-${_junit_version}.jar
|
|
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}/junit-${_junit_version}.jar src/gwt/lib
|
|
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
|
|
}
|