[Buildroot] [PATCH 2/3] package/lua-normalize: new package

François Perrad francois.perrad at gadz.org
Fri Dec 28 14:33:37 UTC 2018


Le ven. 28 déc. 2018 à 01:37, <james.hilliard1 at gmail.com> a écrit :

> From: James Hilliard <james.hilliard1 at gmail.com>
>
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
>  package/Config.in                        |  1 +
>  package/lua-normalize/Config.in          | 13 +++++++++++++
>  package/lua-normalize/lua-normalize.hash |  2 ++
>  package/lua-normalize/lua-normalize.mk   | 14 ++++++++++++++
>  4 files changed, 30 insertions(+)
>  create mode 100644 package/lua-normalize/Config.in
>  create mode 100644 package/lua-normalize/lua-normalize.hash
>  create mode 100644 package/lua-normalize/lua-normalize.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 324830d..8d57086 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -623,6 +623,7 @@ menu "Lua libraries/modules"
>         source "package/lua-markdown/Config.in"
>         source "package/lua-messagepack/Config.in"
>         source "package/lua-msgpack-native/Config.in"
> +       source "package/lua-normalize/Config.in"
>         source "package/lua-periphery/Config.in"
>         source "package/lua-sdl2/Config.in"
>         source "package/lua-stdlib/Config.in"
> diff --git a/package/lua-normalize/Config.in
> b/package/lua-normalize/Config.in
> new file mode 100644
> index 0000000..d894d71
> --- /dev/null
> +++ b/package/lua-normalize/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_LUA_NORMALIZE
> +       bool "lua-normalize"
> +       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
> +       select BR2_PACKAGE_LUA_DEBUG # runtime
> +       help
> +         This module can inject deterministic versions of core Lua
> +         functions that do not behave identically across all supported Lua
> +         implementations into your module's lexical environment.   Each
> +         function is as thin and fast a version as is possible in each Lua
> +         implementation, evaluating to the Lua C implementation with no
> +         overhead when semantics allow.
> +
> +         https://lua-stdlib.github.io/normalize
> diff --git a/package/lua-normalize/lua-normalize.hash
> b/package/lua-normalize/lua-normalize.hash
> new file mode 100644
> index 0000000..831528d
> --- /dev/null
> +++ b/package/lua-normalize/lua-normalize.hash
> @@ -0,0 +1,2 @@
> +# Locally calculated
> +sha256 50baac6fbcbc6bbe72b63ce0871ec36176d75c04dccc6e368590ba6ef107c67a
> std.normalize-2.0.2-1.src.rock
> diff --git a/package/lua-normalize/lua-normalize.mk
> b/package/lua-normalize/lua-normalize.mk
> new file mode 100644
> index 0000000..7ef9aa6
> --- /dev/null
> +++ b/package/lua-normalize/lua-normalize.mk
> @@ -0,0 +1,14 @@
>
> +################################################################################
> +#
> +# lua-normalize
>

This rock uses the namespace std.
So, in order to avoid future name collision, it must be named
lua-std-normalize.

François


> +#
>
> +################################################################################
> +
> +LUA_NORMALIZE_VERSION_UPSTREAM = 2.0.2
> +LUA_NORMALIZE_VERSION = $(LUA_NORMALIZE_VERSION_UPSTREAM)-1
> +LUA_NORMALIZE_NAME_UPSTREAM = std.normalize
> +LUA_NORMALIZE_SUBDIR = normalize-$(LUA_NORMALIZE_VERSION_UPSTREAM)
> +LUA_NORMALIZE_LICENSE = MIT
> +LUA_NORMALIZE_LICENSE_FILES = LICENSE.md
> +
> +$(eval $(luarocks-package))
> --
> 2.7.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181228/f432138a/attachment.html>


More information about the buildroot mailing list