From aa7ded51995a5b8ef797e7312914dfd7821a7c83 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Mon, 14 Dec 2020 10:57:26 +0000 Subject: [PATCH] MNT: Initial auto-generated conda recipe for fsl/conda/fsl-slicetimer --- build.sh | 4 +++- meta.yaml | 30 ++++++++++++++++-------------- post-link.sh | 3 +++ pre-unlink.sh | 3 +++ 4 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 post-link.sh create mode 100644 pre-unlink.sh diff --git a/build.sh b/build.sh index 231b9ca..415432f 100644 --- a/build.sh +++ b/build.sh @@ -3,7 +3,9 @@ export FSLDIR=$PREFIX export FSLDEVDIR=$PREFIX -. $FSLDIR/etc/fslconf/fsl.sh +mkdir -p $PREFIX/src/ +cp -r $(pwd) $PREFIX/src/$PKG_NAME + . $FSLDIR/etc/fslconf/fsl-devel.sh make diff --git a/meta.yaml b/meta.yaml index ce73192..e4f6630 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,10 +1,11 @@ # This is a FSL conda recipe for: fsl-slicetimer -# The project git repository is: git@git.fmrib.ox.ac.uk:fsl/slicetimer.git -# The git repository for this conda recipe is: git@git.fmrib.ox.ac.uk:fsl/conda/fsl-slicetimer.git +# The project git repository is: https://git.fmrib.ox.ac.uk/fsl/slicetimer.git +# The git repository for this conda recipe is: https://git.fmrib.ox.ac.uk/fsl/conda/fsl-slicetimer.git {% set name = 'fsl-slicetimer' %} -{% set version = '2006.0' %} -{% set repository = 'git@git.fmrib.ox.ac.uk:fsl/slicetimer.git' %} +{% set version = '2012.0' %} +{% set repository = 'https://git.fmrib.ox.ac.uk/fsl/slicetimer.git' %} +{% set build = '0' %} package: name: {{ name }} @@ -14,22 +15,23 @@ source: # the FSLCONDA_REPOSITORY and FSLCONDA_REVISION # environment variables can be used to override # the repository/revision for development purposes. - git_url: {{ os.environ.get("FSLCONDA_REPOSITORY", repository) }} - git_rev: {{ os.environ.get("FSLCONDA_REVISION", version) }} - git_depth: 1 + git_url: {{ os.environ.get("FSLCONDA_REPOSITORY", repository) }} + git_rev: {{ os.environ.get("FSLCONDA_REVISION", version) }} build: + number: {{ build }} run_exports: strong: - {{ name }} requirements: host: - - {{ compiler('cxx') }} - - fsl-base >=2007.0 - - fsl-newnifti >=3.0.4 + - {{ compiler("cxx") }} + - fsl-base >=2012.0 + - make - fsl-armawrap >=0.4.1 - - fsl-miscmaths >=2001.0 - - fsl-newimage >=2006.0 - - fsl-utils >=1908.0 - - fsl-znzlib >=2006.0 + - fsl-miscmaths >=2010.0 + - fsl-newimage >=2011.0 + - fsl-newnifti >=3.0.6 + - fsl-utils >=2007.0 + - fsl-znzlib >=2012.0 diff --git a/post-link.sh b/post-link.sh new file mode 100644 index 0000000..d067b75 --- /dev/null +++ b/post-link.sh @@ -0,0 +1,3 @@ +if [ -e ${FSLDIR}/share/fsl/sbin/createFSLWrapper ]; then + ${FSLDIR}/share/fsl/sbin/createFSLWrapper slicetimer +fi diff --git a/pre-unlink.sh b/pre-unlink.sh new file mode 100644 index 0000000..8ad3b64 --- /dev/null +++ b/pre-unlink.sh @@ -0,0 +1,3 @@ +if [ -e ${FSLDIR}/share/fsl/sbin/removeFSLWrapper ]; then + ${FSLDIR}/share/fsl/sbin/removeFSLWrapper slicetimer +fi -- GitLab