diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/minc-toolkit/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/minc-toolkit/package.py | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/var/spack/repos/builtin/packages/minc-toolkit/package.py b/var/spack/repos/builtin/packages/minc-toolkit/package.py index 293abaadae..30273d4afc 100644 --- a/var/spack/repos/builtin/packages/minc-toolkit/package.py +++ b/var/spack/repos/builtin/packages/minc-toolkit/package.py @@ -10,37 +10,36 @@ class MincToolkit(CMakePackage): """Bundles multiple MINC-related packages""" homepage = "https://github.com/BIC-MNI/minc-toolkit-v2" - git = "https://github.com/BIC-MNI/minc-toolkit-v2.git" + git = "https://github.com/BIC-MNI/minc-toolkit-v2.git" - version('1.9.18.2', commit="b98e4972bdac2b78e3c1e412d75c97e2e7c5f6b9", - submodules=True) - version('1.9.18.1', commit="38597c464b6e93eda680ab4a9e903366d53d7737", - submodules=True) + version("1.9.18.2", commit="b98e4972bdac2b78e3c1e412d75c97e2e7c5f6b9", submodules=True) + version("1.9.18.1", commit="38597c464b6e93eda680ab4a9e903366d53d7737", submodules=True) - variant('shared', default=True, - description="Build shared libraries") - variant('visualisation', default=False, - description="Build visual tools (Display, register, etc.)") + variant("shared", default=True, description="Build shared libraries") + variant( + "visualisation", default=False, description="Build visual tools (Display, register, etc.)" + ) - depends_on('perl') + depends_on("perl") # included Perl packages are not added to the Perl path by default. # rather than inheriting from both CMakePackage and PerlPackage, # it seems clean just to add them as dependencies: - depends_on('perl-text-format', type=('build', 'run')) - depends_on('perl-getopt-tabular', type=('build', 'run')) - depends_on('perl-mni-perllib', type=('build', 'run')) - depends_on('flex', type='build') - depends_on('bison', type='build') - depends_on('zlib', type='link') - depends_on('freeglut', when="+visualisation") + depends_on("perl-text-format", type=("build", "run")) + depends_on("perl-getopt-tabular", type=("build", "run")) + depends_on("perl-mni-perllib", type=("build", "run")) + depends_on("flex", type="build") + depends_on("bison", type="build") + depends_on("zlib", type="link") + depends_on("freeglut", when="+visualisation") def cmake_args(self): - return [self.define_from_variant('MT_BUILD_SHARED_LIBS', 'shared'), - self.define_from_variant('MT_BUILD_VISUAL_TOOLS', 'visualisation'), - # newer ANTs packaged separately - "-DMT_BUILD_ANTS=OFF", - # newer c3d packaged separately - "-DMT_BUILD_C3D=OFF", - # should be packaged separately with newer ITK - "-DMT_BUILD_ELASTIX=OFF" - ] + return [ + self.define_from_variant("MT_BUILD_SHARED_LIBS", "shared"), + self.define_from_variant("MT_BUILD_VISUAL_TOOLS", "visualisation"), + # newer ANTs packaged separately + "-DMT_BUILD_ANTS=OFF", + # newer c3d packaged separately + "-DMT_BUILD_C3D=OFF", + # should be packaged separately with newer ITK + "-DMT_BUILD_ELASTIX=OFF", + ] |