New package: maloc (#16631)
* [maloc] created template * [maloc] added some build dependencies * [maloc] added homepage and description * [maloc] added doc variant in an attempt to disable documentation. Still builds doc though... at least when there is a system doxygen found. Having doxygen being a dependency here can bring python in and cause issues for dependents, even when listed as only a build dependency. Maybe this is a bug? * [maloc] flake8 and fixme removal * [maloc] shorted description
This commit is contained in:
parent
8c025324af
commit
b562059d2a
39
var/spack/repos/builtin/packages/maloc/package.py
Normal file
39
var/spack/repos/builtin/packages/maloc/package.py
Normal file
@ -0,0 +1,39 @@
|
||||
# Copyright 2013-2019 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 Maloc(AutotoolsPackage):
|
||||
"""MALOC (Minimal Abstraction Layer for Object-oriented C)
|
||||
is a small, portable, abstract C environment library for
|
||||
object-oriented C programming. MALOC is used as the
|
||||
foundation layer for a number of scientific applications,
|
||||
including MC, SG, and APBS."""
|
||||
|
||||
homepage = "http://fetk.org/codes/maloc/"
|
||||
url = "http://www.fetk.org/codes/download/maloc-1.0.tar.gz"
|
||||
|
||||
version('1.5', sha256='58e1197fcd4c74d3cbb1d39d712eb0a3c5886a1e6629f22c5c78ce2bac983fc0')
|
||||
version('1.4', sha256='cba0c6730f148bf7ddb77dac07e497655642f43b632256fcebf3192b45af1833')
|
||||
version('1.3', sha256='337788ac8f263487aba5b3aa5ef7f33eaac1d3951ad49349078d5ed77482ad2e')
|
||||
version('1.2', sha256='e6033195a054bad7527d360e52349a4d1eb876c681a58fa373f42fd1ab26962c')
|
||||
version('1.1', sha256='b5dd7923e84f13e7ed43304ed1062de24171c5a7a042a12b0d1e501d6eaedf58')
|
||||
version('1.0', sha256='23f3ea3215067fd8f1ba4c407375f387b5f1d11258f29508295e651828d32cb7')
|
||||
|
||||
variant('doc', default=False, description='Build documentation.')
|
||||
|
||||
depends_on('graphviz', type='build', when='+doc')
|
||||
depends_on('doxygen', type='build', when='+doc')
|
||||
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
args = []
|
||||
|
||||
if '~doc' in spec:
|
||||
args.append('--with-doxygen=no')
|
||||
args.append('--with-dot=no')
|
||||
|
||||
return args
|
Loading…
Reference in New Issue
Block a user