Skip to contentSkip to conversation

package/lua-lunitx: new package

PATCH New Francois Perrad 3 participants 4 messages Apr 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/lua-lunitx: new package

---
 package/Config.in                  |  1 +
 package/lua-lunitx/Config.in       |  6 ++++++
 package/lua-lunitx/lua-lunitx.hash |  3 +++
 package/lua-lunitx/lua-lunitx.mk   | 13 +++++++++++++
 4 files changed, 23 insertions(+)
 create mode 100644 package/lua-lunitx/Config.in
 create mode 100644 package/lua-lunitx/lua-lunitx.hash
 create mode 100644 package/lua-lunitx/lua-lunitx.mk
package/Config.in +1 -0
index db79b61971..287f3493be 100644
@@ -622,6 +622,7 @@ menu "Lua libraries/modules"
 	source "package/lua-http/Config.in"
 	source "package/lua-iconv/Config.in"
 	source "package/lua-lpeg-patterns/Config.in"
+	source "package/lua-lunitx/Config.in"
 	source "package/lua-markdown/Config.in"
 	source "package/lua-messagepack/Config.in"
 	source "package/lua-msgpack-native/Config.in"
package/lua-lunitx/Config.in new file +6 -0
new file mode 100644
index 0000000000..ea900e6328
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LUA_LUNITX
+	bool "lua-lunitx"
+	help
+	  Lunitx is a unit testing framework for lua, written in lua.
+
+	  https://github.com/dcurrie/lunit
package/lua-lunitx/lua-lunitx.hash new file +3 -0
new file mode 100644
index 0000000000..b97b93f090
@@ -0,0 +1,3 @@
+# computed by luarocks/buildroot
+sha256 2299facf4977f9b663e1ad402098139116a87a693c3df66e1f6b89e2cf47646f  lunitx-0.8-1.src.rock
+sha256 3fcfcd6010d73bc2b22505b6a91779022a82661809a3e4e0a0bdd7b3463def8f  lunit/LICENSE
package/lua-lunitx/lua-lunitx.mk new file +13 -0
new file mode 100644
index 0000000000..e12cf07249
@@ -0,0 +1,13 @@
+################################################################################
+#
+# lua-lunitx
+#
+################################################################################
+
+LUA_LUNITX_VERSION = 0.8-1
+LUA_LUNITX_NAME_UPSTREAM = lunitx
+LUA_LUNITX_SUBDIR = lunit
+LUA_LUNITX_LICENSE = MIT
+LUA_LUNITX_LICENSE_FILES = $(LUA_LUNITX_SUBDIR)/LICENSE
+
+$(eval $(luarocks-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 package/lunit: remove it

it was replaced by its fork lunitx which supports all versions of Lua

---
 Config.in.legacy         |  8 ++++++++
 package/Config.in        |  1 -
 package/lunit/Config.in  | 11 -----------
 package/lunit/lunit.hash |  3 ---
 package/lunit/lunit.mk   | 11 -----------
 5 files changed, 8 insertions(+), 26 deletions(-)
 delete mode 100644 package/lunit/Config.in
 delete mode 100644 package/lunit/lunit.hash
 delete mode 100644 package/lunit/lunit.mk
Config.in.legacy +8 -0
index cafa1c0674..ec5079da65 100644
@@ -146,6 +146,14 @@ endif
 
 comment "Legacy options removed in 2019.05"
 
+config BR2_PACKAGE_LUNIT
+	bool "lunit package removed"
+	select BR2_LEGACY
+	select BR2_PACKAGE_LUA_LUNITX
+	help
+	  The lunit package was removed in favor of its fork lunitx,
+	  which supports all versions of Lua.
+
 config BR2_PACKAGE_FFMPEG_FFSERVER
 	bool "ffmpeg ffserver removed"
 	select BR2_LEGACY
package/Config.in +0 -1
index 287f3493be..6fd047ec8c 100644
@@ -649,7 +649,6 @@ menu "Lua libraries/modules"
 	source "package/luasocket/Config.in"
 	source "package/luasql-sqlite3/Config.in"
 	source "package/lua-valua/Config.in"
-	source "package/lunit/Config.in"
 	source "package/lutok/Config.in"
 	source "package/luv/Config.in"
 	source "package/luvi/Config.in"
package/lunit/Config.in deleted +0 -11
deleted file mode 100644
index d6c2c6b157..0000000000
@@ -1,11 +0,0 @@
-config BR2_PACKAGE_LUNIT
-	bool "lunit"
-	depends on BR2_PACKAGE_LUA_5_1 || BR2_PACKAGE_LUAJIT
-	help
-	  A unit testing framework for Lua.
-
-	  http://www.mroth.net/lunit/
-
-comment "lunit needs a Lua 5.1 interpreter"
-	depends on !BR2_PACKAGE_LUA_5_1
-	depends on !BR2_PACKAGE_LUAJIT
package/lunit/lunit.hash deleted +0 -3
deleted file mode 100644
index bd168ba8f5..0000000000
@@ -1,3 +0,0 @@
-# computed by luarocks/buildroot
-sha256 b19854c685337ddcec2fe9c22113d2cd14715d52ccd2676abe2fa49b61a2ec4d  lunit-0.5-2.src.rock
-sha256 316317e9e9b7eac811e1be56738e2434fb4a0c39ecd660f3b34dad739bfb3707  lunit-0.5/LICENSE
package/lunit/lunit.mk deleted +0 -11
deleted file mode 100644
index 34e22db757..0000000000
@@ -1,11 +0,0 @@
-################################################################################
-#
-# lunit
-#
-################################################################################
-
-LUNIT_VERSION = 0.5-2
-LUNIT_LICENSE = MIT
-LUNIT_LICENSE_FILES = $(LUNIT_SUBDIR)/LICENSE
-
-$(eval $(luarocks-package))
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/2 package/lunit: remove it

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Francois" == Francois Perrad <[email protected]> writes:

it was replaced by its fork lunitx which supports all versions of Lua

---
 Config.in.legacy         |  8 ++++++++
 package/Config.in        |  1 -
 package/lunit/Config.in  | 11 -----------
 package/lunit/lunit.hash |  3 ---
 package/lunit/lunit.mk   | 11 -----------
 5 files changed, 8 insertions(+), 26 deletions(-)

You forgot to remove the reference in DEVELOPERS, so now get-developers complains about it.

I've pushed a commit to fix that.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/2 package/lua-lunitx: new package

In reply to Francois Perrad
Quoted 10 lines · On Wed, 3 Apr 2019 15:06:08 +0200 Francois Perrad <[email protected]> wrote:
---
 package/Config.in                  |  1 +
 package/lua-lunitx/Config.in       |  6 ++++++
 package/lua-lunitx/lua-lunitx.hash |  3 +++
 package/lua-lunitx/lua-lunitx.mk   | 13 +++++++++++++
 4 files changed, 23 insertions(+)
 create mode 100644 package/lua-lunitx/Config.in
 create mode 100644 package/lua-lunitx/lua-lunitx.hash
 create mode 100644 package/lua-lunitx/lua-lunitx.mk

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com