From 7c2f653dfc008e730129ff1ec2e0e239160cd7da Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 14 Dec 2020 17:10:04 +0000
Subject: [PATCH] MNT: Initial auto-generated conda recipe for
 fsl/conda/fsl-swe

---
 build.sh      |  4 +++-
 meta.yaml     | 28 +++++++++++++++-------------
 post-link.sh  |  3 +++
 pre-unlink.sh |  3 +++
 4 files changed, 24 insertions(+), 14 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 a083ab0..aceab06 100644
--- a/meta.yaml
+++ b/meta.yaml
@@ -1,10 +1,11 @@
 # This is a FSL conda recipe for:              fsl-swe
-# The project git repository is:               git@git.fmrib.ox.ac.uk:fsl/swe.git
-# The git repository for this conda recipe is: git@git.fmrib.ox.ac.uk:fsl/conda/fsl-swe.git
+# The project git repository is:               https://git.fmrib.ox.ac.uk/fsl/swe.git
+# The git repository for this conda recipe is: https://git.fmrib.ox.ac.uk/fsl/conda/fsl-swe.git
 
 {% set name       = 'fsl-swe' %}
 {% set version    = 'v1.0.3' %}
-{% set repository = 'git@git.fmrib.ox.ac.uk:fsl/swe.git' %}
+{% set repository = 'https://git.fmrib.ox.ac.uk/fsl/swe.git' %}
+{% set build      = '0' %}
 
 package:
   name:    {{ name }}
@@ -14,23 +15,24 @@ 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-cprob >=2006.0
-    - 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..173f216
--- /dev/null
+++ b/post-link.sh
@@ -0,0 +1,3 @@
+if [ -e ${FSLDIR}/share/fsl/sbin/createFSLWrapper ]; then
+    ${FSLDIR}/share/fsl/sbin/createFSLWrapper swe
+fi
diff --git a/pre-unlink.sh b/pre-unlink.sh
new file mode 100644
index 0000000..0e10f96
--- /dev/null
+++ b/pre-unlink.sh
@@ -0,0 +1,3 @@
+if [ -e ${FSLDIR}/share/fsl/sbin/removeFSLWrapper ]; then
+    ${FSLDIR}/share/fsl/sbin/removeFSLWrapper swe
+fi
-- 
GitLab