summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/lua-mpack/package.py
blob: da4cd89c4de4c4e432eaf9f0e391a1b5fd6f7abe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2013-2024 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.package import *


class LuaMpack(LuaPackage):
    """lua bindings to libmpack"""

    homepage = "https://github.com/libmpack/libmpack-lua/"
    url = "https://github.com/libmpack/libmpack-lua/releases/download/1.0.8/libmpack-lua-1.0.8.tar.gz"

    depends_on("msgpack-c")

    license("MIT")

    version("1.0.9", sha256="0fd07e709c3f6f201c2ffc9f77cef1b303b02c12413f0c15670a32bf6c959e9e")
    version("1.0.8", sha256="ed6b1b4bbdb56f26241397c1e168a6b1672f284989303b150f7ea8d39d1bc9e9")
    version("1.0.7", sha256="68565484a3441d316bd51bed1cacd542b7f84b1ecfd37a8bd18dd0f1a20887e8")
    version("1.0.6-0", sha256="9068d9d3f407c72a7ea18bc270b0fa90aad60a2f3099fa23d5902dd71ea4cd5f")

    def luarocks_args(self):
        return ["CFLAGS=-fPIC -Wno-error=implicit-function-declaration"]