minc-toolkit: fix perl dependencies (#28868)

This commit is contained in:
Ben Darwin 2022-02-11 03:30:36 -05:00 committed by GitHub
parent c80c92aa39
commit 4c396d2cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -21,6 +21,12 @@ class MincToolkit(CMakePackage):
description="Build visual tools (Display, register, etc.)")
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')
@ -31,7 +37,7 @@ def cmake_args(self):
self.define_from_variant('MT_BUILD_VISUAL_TOOLS', 'visualisation'),
# newer ANTs packaged separately
"-DMT_BUILD_ANTS=OFF",
# build error; should package newer c3d separately
# newer c3d packaged separately
"-DMT_BUILD_C3D=OFF",
# should be packaged separately with newer ITK
"-DMT_BUILD_ELASTIX=OFF"

View file

@ -0,0 +1,13 @@
diff --git a/Makefile.PL b/Makefile.PL
index 9f2039a..12d699c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -213,7 +213,7 @@ TEXT
} # &MY::postamble
-query_subs;
+#query_subs;
my $f;
WriteMakefile

View file

@ -0,0 +1,20 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PerlMniPerllib(PerlPackage):
"""MNI Perl Library for scripting long-running scientific computations"""
homepage = "https://github.com/BIC-MNI/mni-perllib"
git = "https://github.com/BIC-MNI/mni-perllib.git"
version('develop', commit="170827f5644820b87bcb2b194494c5ebf0928149")
patch('no-stdin.patch')
depends_on('perl-getopt-tabular', type=('build', 'run'))
depends_on('perl-text-format', type=('build', 'run'))