Remove unnecessary PCRE2 dependency on R 3.x

For more details on PCRE2 usage in R 3.x, see:
7d25524f8b/m4/R.m4 (L3056-L3058)
7d25524f8b/m4/R.m4 (L3139-L3155)
This commit is contained in:
Greg Lin 2020-04-29 14:44:16 -05:00
commit 048f2ca063

View file

@ -4,6 +4,12 @@ if [[ ! -d /tmp/output/opensuse-15 ]]; then
mkdir -p /tmp/output/opensuse-15
fi
# R 3.x requires PCRE1
pcre_lib='pcre2-devel'
if [[ "${R_VERSION}" =~ ^3 ]]; then
pcre_lib='pcre-devel'
fi
# create post-install script required for openblas
cat <<EOF >> /post-install.sh
mv /opt/R/${R_VERSION}/lib/R/lib/libRblas.so /opt/R/${R_VERSION}/lib/R/lib/libRblas.so.keep
@ -50,8 +56,7 @@ fpm \
-d libtiff5 \
-d make \
-d openblas-devel \
-d pcre-devel \
-d pcre2-devel \
-d ${pcre_lib} \
-d tar \
-d tcl \
-d tk \