summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-01-01 01:46:07 +0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-12-31 11:46:07 -0600
commitb70a5245f2613bb2e08339298153a68a9b9093e2 (patch)
treef91c90f01a7e31e11512789725e602834c697d03
parente92f6c70a6ae2f1cc187b19c40dc56ccaf92f6a1 (diff)
downloadspack-b70a5245f2613bb2e08339298153a68a9b9093e2.tar.gz
spack-b70a5245f2613bb2e08339298153a68a9b9093e2.tar.bz2
spack-b70a5245f2613bb2e08339298153a68a9b9093e2.tar.xz
spack-b70a5245f2613bb2e08339298153a68a9b9093e2.zip
add new package : libfastcommon (#14303)
* add new package : libfastcommon * update libfastcommon install()
-rw-r--r--var/spack/repos/builtin/packages/libfastcommon/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libfastcommon/package.py b/var/spack/repos/builtin/packages/libfastcommon/package.py
new file mode 100644
index 0000000000..fbd3518b58
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libfastcommon/package.py
@@ -0,0 +1,31 @@
+# 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 Libfastcommon(Package):
+ """
+ Libfastcommon is a c common functions library extracted from my open
+ source project FastDFS. this library is very simple and stable.
+ functions including: string, logger, chain, hash, socket, ini file
+ reader, base64 encode / decode, url encode / decode, fast timer,
+ skiplist, object pool etc. detail info please see the c header files.
+ """
+
+ homepage = "https://github.com/happyfish100/libfastcommon"
+ url = "https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz"
+
+ version('1.0.43', sha256='05425aed8e6bc7ba283abba4e1bb500cc7f8c873c35bb86712d7123144a37b4c')
+ version('1.0.42', sha256='653c781b8e19a53f69aa8b1d823a832270e310438385f4c176a337304c03bc52')
+ version('1.0.41', sha256='23cc5900bdf82fe907084deaf4e36a4f1857ac2a7378a2999a6c806bd3b22562')
+ version('1.0.40', sha256='ebb89a1bfeb5b140f596fd3e2a0ff202420be05a4d80ef67ddcfdbb248b9fef8')
+ version('1.0.39', sha256='72ca36f83f3453564ca09d2d0c31354b868cf52ef5a24cfb15e66d0e505c90ac')
+
+ def install(self, spec, prefix):
+ sh = which('sh')
+ sh('make.sh')
+ sh('make.sh', 'install')
+ install_tree('.', prefix)