lrandom: new package
authorFrancois Perrad <fperrad@gmail.com>
Mon, 24 Feb 2014 07:34:51 +0000 (08:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Mar 2014 15:15:04 +0000 (16:15 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/lrandom/Config.in [new file with mode: 0644]
package/lrandom/lrandom.mk [new file with mode: 0644]

index 932015b07c0666f6f94ccb611f0c3c91160e7472..684d75662fca6914ad34a2c6dee7b4ec062b7f4f 100644 (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"
diff --git a/package/lrandom/Config.in b/package/lrandom/Config.in
new file mode 100644 (file)
index 0000000..661707d
--- /dev/null
@@ -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
diff --git a/package/lrandom/lrandom.mk b/package/lrandom/lrandom.mk
new file mode 100644 (file)
index 0000000..0035791
--- /dev/null
@@ -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))