summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-25 00:33:31 +0800
committerGitHub <noreply@github.com>2020-09-24 11:33:31 -0500
commit6b3116516e269068ca7ed4184e0c0fbae7f13429 (patch)
tree3f8b829208952cf13ae4150e07f58944656a89bf /var
parenta9a25acdb9a04b6818ea1ff624eaafdb2835528f (diff)
downloadspack-6b3116516e269068ca7ed4184e0c0fbae7f13429.tar.gz
spack-6b3116516e269068ca7ed4184e0c0fbae7f13429.tar.bz2
spack-6b3116516e269068ca7ed4184e0c0fbae7f13429.tar.xz
spack-6b3116516e269068ca7ed4184e0c0fbae7f13429.zip
Add new package: disktype (#18934)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/disktype/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/disktype/package.py b/var/spack/repos/builtin/packages/disktype/package.py
new file mode 100644
index 0000000000..a45fc324a0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/disktype/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2020 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 Disktype(MakefilePackage):
+ """A fork of the disktype disk and disk image format detection tool."""
+
+ homepage = "https://github.com/kamwoods/disktype"
+ url = "https://github.com/kamwoods/disktype/archive/9.2.1.tar.gz"
+
+ version('9.2.1', sha256='fb274d6ce6b69c0d36eb23fcc9f01db3c32c3996b404900d46bb743ce4fa8154')
+
+ build_directory = 'src'
+
+ def install(self, spec, prefix):
+ mkdir(prefix.bin)
+ with working_dir(self.build_directory):
+ install('disktype', prefix.bin)