summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-10-13 22:54:06 +0800
committerGitHub <noreply@github.com>2020-10-13 09:54:06 -0500
commit3834bdfc2737d2514ff19c180c050d70ec3ef637 (patch)
treee5b65fbb2936d4d24aab1e1a5ee7996e7d3d187e /var
parent3b5cdf2f685f30126b914a542041b678361a13a8 (diff)
downloadspack-3834bdfc2737d2514ff19c180c050d70ec3ef637.tar.gz
spack-3834bdfc2737d2514ff19c180c050d70ec3ef637.tar.bz2
spack-3834bdfc2737d2514ff19c180c050d70ec3ef637.tar.xz
spack-3834bdfc2737d2514ff19c180c050d70ec3ef637.zip
Add new package: symlinks (#18925)
* Add new package: symlinks * refine edit()
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/symlinks/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/symlinks/package.py b/var/spack/repos/builtin/packages/symlinks/package.py
new file mode 100644
index 0000000000..f6e5ca4f2e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/symlinks/package.py
@@ -0,0 +1,23 @@
+# 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 Symlinks(MakefilePackage):
+ """Scan or change symbolic links."""
+
+ homepage = "http://ibiblio.org/pub/Linux/utils/file"
+ url = "http://ibiblio.org/pub/Linux/utils/file/symlinks-1.4.tar.gz"
+
+ version('1.4', sha256='4818a3be253b53f2547fe51349652c87301794fc2ff4e3104850301ffe9843a0')
+
+ def edit(self, spec, prefix):
+ filter_file('/usr/local', prefix, 'Makefile', string=True)
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ mkdirp(prefix.man.man8)
+ make('install')