Skip to content

Commit

Permalink
nextflow 19.01.0 build 4 (#13418)
Browse files Browse the repository at this point in the history
This commit changes the build script so that
it modifies the NXF_DIST directory to the package
path provided by Conda

See nextflow-io/nextflow#954


* [x] I have read the [guidelines for bioconda recipes](https://bioconda.github.io/guidelines.html).
* [ ] This PR adds a new recipe.
* [x] AFAIK, this recipe **is directly relevant to the biological sciences** (otherwise, please submit to the more general purpose [conda-forge channel](https://conda-forge.org/docs/)).
* [x] This PR updates an existing recipe.
* [ ] This PR does something else (explain below).
  • Loading branch information
pditommaso authored and bgruening committed Jan 30, 2019
1 parent f623331 commit d224dc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 2 additions & 13 deletions recipes/nextflow/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
mkdir -p $PREFIX/bin
sed "s|^NXF_HOME=.*|NXF_HOME=$PREFIX/share/$PKG_NAME|" nextflow > $PREFIX/bin/nextflow

# Use $HOME for storing some temp files (friendlier for multiuser environments)
sed -i.bak "s|^ NXF_ASSETS=\${NXF_ASSETS:-\${NXF_HOME:-\$HOME/.nextflow}/assets}| NXF_ASSETS=\${NXF_ASSETS:=\"\$HOME/.nextflow/assets\"}|" $PREFIX/bin/nextflow
rm -f *.bak

sed -i.bak "s|NXF_LAUNCHER=\${NXF_HOME}/tmp/launcher/nextflow-\${NXF_PACK}_\${NXF_VER}/\${NXF_HOST}|NXF_LAUNCHER=\$HOME/.nextflow/tmp/launcher/nextflow-\${NXF_PACK}_\${NXF_VER}/\${NXF_HOST}|" $PREFIX/bin/nextflow
rm -f *.bak

sed -i.bak "s|^CAPSULE_CACHE_DIR=\${CAPSULE_CACHE_DIR:=\"\$NXF_HOME/capsule\"}|CAPSULE_CACHE_DIR=\${CAPSULE_CACHE_DIR:=\"\$HOME/.nextflow/capsule\"}|" $PREFIX/bin/nextflow
rm -f *.bak

sed -i.bak "s|^JAVA_KEY=\"\$NXF_HOME/|JAVA_KEY=\"\$HOME/.nextflow/|" $PREFIX/bin/nextflow
sed "s|^NXF_DIST=.*|NXF_DIST=$PREFIX/share/$PKG_NAME/dist|" nextflow > $PREFIX/bin/nextflow
sed -i.bak "s|^CAPSULE_CACHE_DIR=.*|CAPSULE_CACHE_DIR=\${CAPSULE_CACHE_DIR:=$PREFIX/share/$PKG_NAME/capsule}|" $PREFIX/bin/nextflow
rm -f *.bak

chmod 755 $PREFIX/bin/nextflow
Expand Down
2 changes: 1 addition & 1 deletion recipes/nextflow/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package:
version: {{ version }}

build:
number: 3
number: 4
noarch: generic

source:
Expand Down

0 comments on commit d224dc2

Please sign in to comment.