summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2019-08-02 19:06:59 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-02 20:06:59 -0500
commitb4f82944084318a2d45def9f04fa90f4b06db769 (patch)
treeb0af3af9d05eda8f99f9819b28567cf4ecc16549
parent90756d0428055a172f40dcc1cb1893c51b88ee96 (diff)
downloadspack-b4f82944084318a2d45def9f04fa90f4b06db769.tar.gz
spack-b4f82944084318a2d45def9f04fa90f4b06db769.tar.bz2
spack-b4f82944084318a2d45def9f04fa90f4b06db769.tar.xz
spack-b4f82944084318a2d45def9f04fa90f4b06db769.zip
packages/musl (#12247)
* new musl package
-rw-r--r--var/spack/repos/builtin/packages/musl/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/musl/package.py b/var/spack/repos/builtin/packages/musl/package.py
new file mode 100644
index 0000000000..34a53c3871
--- /dev/null
+++ b/var/spack/repos/builtin/packages/musl/package.py
@@ -0,0 +1,43 @@
+# 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 Musl(Package):
+ """Musl is a libc, an implementation of the standard library
+ functionality described in the ISO C and POSIX standards, plus common
+ extensions, intended for use on Linux-based systems. Whereas the kernel
+ (Linux) governs access to hardware, memory, filesystems, and the
+ privileges for accessing these resources, the C library is responsible
+ for providing the actual C function interfaces userspace applications
+ see, and for constructing higher-level buffered stdio, memory
+ allocation management, thread creation and synchronization operations,
+ and so on using the lower-level interfaces the kernel provides, as well
+ as for implementing pure library routines of the C language like
+ strstr, snprintf, strtol, exp, sqrt, etc.
+
+ Musl is a new general-purpose implementation of the C library. It is
+ lightweight, fast, simple, free, and aims to be correct in the sense of
+ standards-conformance and safety."""
+
+ homepage = "https://www.musl-libc.org"
+ url = "https://www.musl-libc.org/releases/musl-1.1.23.tar.gz"
+
+ version('1.1.23', sha256='8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa')
+ version('1.1.22', sha256='8b0941a48d2f980fd7036cfbd24aa1d414f03d9a0652ecbd5ec5c7ff1bee29e3')
+ version('1.1.21', sha256='c742b66f6f49c9e5f52f64d8b79fecb5a0f6e0203fca176c70ca20f6be285f44')
+ version('1.1.20', sha256='44be8771d0e6c6b5f82dd15662eb2957c9a3173a19a8b49966ac0542bbd40d61')
+
+ phases = ['configure', 'build', 'install']
+
+ def configure(self, spec, prefix):
+ configure('--prefix={0}'.format(prefix))
+
+ def build(self, spec, prefix):
+ make()
+
+ def install(self, spec, prefix):
+ make('install')