forked from conda-forge/r-base-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request conda-forge#313 from mbargull-feedstocks/posix-act…
…ivation-scripts Use POSIX scripts for de-/activation scripts
- Loading branch information
Showing
6 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
if [[ "$CONDA_BUILD" == "" ]]; then | ||
# shellcheck shell=sh | ||
|
||
if [ -z "${CONDA_BUILD:+x}" ]; then | ||
echo "This package can only be used in conda-build" | ||
exit 1 | ||
fi | ||
|
||
if [[ "$CONDA_BUILD_STATE" != "TEST" && "$build_platform" != "$target_platform" ]]; then | ||
export R=$BUILD_PREFIX/bin/R | ||
export R_ARGS="--library=$PREFIX/lib/R/library --no-test-load" | ||
echo "R_HOME=$PREFIX/lib/R" > $BUILD_PREFIX/lib/R/etc/Makeconf | ||
cat $PREFIX/lib/R/etc/Makeconf >> $BUILD_PREFIX/lib/R/etc/Makeconf | ||
if [[ -d $BUILD_PREFIX/lib/R/library ]]; then | ||
rsync -a -I $BUILD_PREFIX/lib/R/library/ $PREFIX/lib/R/library/ | ||
# shellcheck disable=SC2154 # assume variables are set at this point | ||
if [ "${CONDA_BUILD_STATE-}" != "TEST" ] && [ "${build_platform}" != "${target_platform}" ]; then | ||
export R="${BUILD_PREFIX}/bin/R" | ||
export R_ARGS="--library=${PREFIX}/lib/R/library --no-test-load" | ||
echo "R_HOME=${PREFIX}/lib/R" > "${BUILD_PREFIX}/lib/R/etc/Makeconf" | ||
cat "${PREFIX}/lib/R/etc/Makeconf" >> "${BUILD_PREFIX}/lib/R/etc/Makeconf" | ||
if [ -d "${BUILD_PREFIX}/lib/R/library" ]; then | ||
rsync -a -I "${BUILD_PREFIX}/lib/R/library/" "${PREFIX}/lib/R/library/" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/usr/bin/env sh | ||
# shellcheck shell=sh | ||
|
||
R CMD javareconf > /dev/null 2>&1 || true | ||
|
||
# store existing RSTUDIO_WHICH_R | ||
if [[ ! -z ${RSTUDIO_WHICH_R+x} ]]; then | ||
export RSTUDIO_WHICH_R_PREV="$RSTUDIO_WHICH_R" | ||
if [ -n "${RSTUDIO_WHICH_R+x}" ]; then | ||
export RSTUDIO_WHICH_R_PREV="${RSTUDIO_WHICH_R}" | ||
fi | ||
export RSTUDIO_WHICH_R="$CONDA_PREFIX/bin/R" | ||
# shellcheck disable=SC2154 # CONDA_PREFIX is always set in this context | ||
export RSTUDIO_WHICH_R="${CONDA_PREFIX}/bin/R" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
if [[ "${build_platform}" != linux-ppc64le ]] ; then | ||
shellcheck --shell=sh --severity=style --enable=check-unassigned-uppercase \ | ||
"${RECIPE_DIR}/activate-cross-r-base.sh" | ||
fi | ||
mkdir -p $PREFIX/etc/conda/activate.d/ | ||
cp $RECIPE_DIR/activate-cross-r-base.sh $PREFIX/etc/conda/activate.d/activate-cross-r-base.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters