lrandom: new package

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Francois Perrad 2014-02-24 08:34:51 +01:00 committed by Thomas Petazzoni
parent d1f33db65b
commit f21def8f63
3 changed files with 24 additions and 0 deletions

View File

@ -376,6 +376,7 @@ source "package/dado/Config.in"
source "package/lbase64/Config.in"
source "package/ljsyscall/Config.in"
source "package/lpeg/Config.in"
source "package/lrandom/Config.in"
source "package/lua-cjson/Config.in"
source "package/lua-ev/Config.in"
source "package/lua-msgpack-native/Config.in"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_LRANDOM
bool "lrandom"
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
help
A library for generating random numbers
based on the Mersenne Twister
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom

View File

@ -0,0 +1,15 @@
################################################################################
#
# lrandom
#
################################################################################
ifeq ($(BR2_PACKAGE_LUA_5_2),y)
LRANDOM_VERSION = 20120430.52-1
else
LRANDOM_VERSION = 20120430.51-1
endif
LRANDOM_SUBDIR = random
LRANDOM_LICENSE = Public domain
$(eval $(luarocks-package))