Skip to contentSkip to conversation

lua-periphery: new package

PATCH New Vanya Sergeev 2 participants 2 messages Feb 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lua-periphery: new package

---
 package/Config.in                      |  1 +
 package/lua-periphery/Config.in        |  8 ++++++++
 package/lua-periphery/lua-periphery.mk | 13 +++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 package/lua-periphery/Config.in
 create mode 100644 package/lua-periphery/lua-periphery.mk
package/Config.in +1 -0
index dd011be..ca63d4f 100644
@@ -425,6 +425,7 @@ menu "Lua libraries/modules"
 	source "package/lua-ev/Config.in"
 	source "package/lua-messagepack/Config.in"
 	source "package/lua-msgpack-native/Config.in"
+	source "package/lua-periphery/Config.in"
 	source "package/lua-testmore/Config.in"
 	source "package/luabitop/Config.in"
 	source "package/luacrypto/Config.in"
package/lua-periphery/Config.in new file +8 -0
new file mode 100644
index 0000000..59cf17f
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LUA_PERIPHERY
+	bool "lua-periphery"
+	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	help
+	  A library for GPIO, SPI, I2C, MMIO, and Serial peripheral I/O interface
+	  access in user space Linux with Lua.
+
+	  https://github.com/vsergeev/lua-periphery
package/lua-periphery/lua-periphery.mk new file +13 -0
new file mode 100644
index 0000000..0717a27
@@ -0,0 +1,13 @@
+################################################################################
+#
+# lua-periphery
+#
+################################################################################
+
+LUA_PERIPHERY_VERSION_UPSTREAM = 1.0.4
+LUA_PERIPHERY_VERSION = $(LUA_PERIPHERY_VERSION_UPSTREAM)-1
+LUA_PERIPHERY_SUBDIR = lua-periphery
+LUA_PERIPHERY_LICENSE = MIT
+LUA_PERIPHERY_LICENSE_FILES = $(LUA_PERIPHERY_SUBDIR)/LICENSE
+
+$(eval $(luarocks-package))
Signature · 1 line
2.2.2
#1 lore raw

PATCH 1/1 lua-periphery: new package

Hi Vanya,

Quoted 27 lines · Vanya Sergeev
---
 package/Config.in                      |  1 +
 package/lua-periphery/Config.in        |  8 ++++++++
 package/lua-periphery/lua-periphery.mk | 13 +++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 package/lua-periphery/Config.in
 create mode 100644 package/lua-periphery/lua-periphery.mk
package/Config.in +1 -0
index dd011be..ca63d4f 100644
@@ -425,6 +425,7 @@ menu "Lua libraries/modules"
        source "package/lua-ev/Config.in"
        source "package/lua-messagepack/Config.in"
        source "package/lua-msgpack-native/Config.in"
+       source "package/lua-periphery/Config.in"
        source "package/lua-testmore/Config.in"
        source "package/luabitop/Config.in"
        source "package/luacrypto/Config.in"
package/lua-periphery/Config.in new file +0 -0
new file mode 100644
index 0000000..59cf17f

package/lua-periphery/Config.in line 5

Quoted 5 lines
package/lua-periphery/Config.in new file +5 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LUA_PERIPHERY
+       bool "lua-periphery"
+       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+       help
+         A library for GPIO, SPI, I2C, MMIO, and Serial peripheral I/O interface

Thanks a lot for your contribution.
I resent your patch to the list with a minor fix: the above line is 81 instead of 80 characters long.
Other than that, I compile-tested it without problems.

Best regards,
Thomas