summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-08-18 11:15:11 +0900
committerGitHub <noreply@github.com>2020-08-17 21:15:11 -0500
commitad8418fbbf131b60144697f33eaac21c26a3a868 (patch)
tree7d606b88fb5ddd2f6809e8ba2313141532b4f280 /var
parentb3535d909e01ed658afcef19a8c9a17fa3f26ba8 (diff)
downloadspack-ad8418fbbf131b60144697f33eaac21c26a3a868.tar.gz
spack-ad8418fbbf131b60144697f33eaac21c26a3a868.tar.bz2
spack-ad8418fbbf131b60144697f33eaac21c26a3a868.tar.xz
spack-ad8418fbbf131b60144697f33eaac21c26a3a868.zip
libluv: New package. (#18100)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libluv/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libluv/package.py b/var/spack/repos/builtin/packages/libluv/package.py
new file mode 100644
index 0000000000..191f1da480
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libluv/package.py
@@ -0,0 +1,30 @@
+# 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 Libluv(CMakePackage):
+ """This library makes libuv available to lua scripts.
+ It was made for the luvit project but should usable from nearly
+ any lua project."""
+
+ homepage = "https://github.com/luvit/luv"
+ url = "https://github.com/luvit/luv/releases/download/1.36.0-0/luv-1.36.0-0.tar.gz"
+
+ version('1.36.0-0', sha256='f2e7eb372574f25c6978c1dc74280d22efdcd7df2dda4a286c7fe7dceda26445')
+
+ depends_on('lua', type='link')
+ depends_on('libuv', type='link')
+
+ def cmake_args(self):
+ args = [
+ '-DLUA_BUILD_TYPE=System',
+ '-DBUILD_STATIC_LIBS=ON',
+ '-DBUILD_SHARED_LIBS=ON',
+ '-DWITH_SHARED_LIBUV=ON',
+ '-DWITH_LUA_ENGINE=Lua',
+ ]
+ return args