]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ljlinenoise: new package
authorFrancois Perrad <fperrad@gmail.com>
Sat, 1 Mar 2014 17:23:08 +0000 (18:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Mar 2014 23:13:13 +0000 (00:13 +0100)
[Thomas: indicate that ljsyscall is a run-time dependency only.]

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/ljlinenoise/Config.in [new file with mode: 0644]
package/ljlinenoise/ljlinenoise.mk [new file with mode: 0644]

index f390268ea6dfaef924f6ff7faf990eabb5f2cd58..a519b97799d214eba1a756ca5325e6a7718a065f 100644 (file)
@@ -375,6 +375,7 @@ source "package/cosmo/Config.in"
 source "package/coxpcall/Config.in"
 source "package/dado/Config.in"
 source "package/lbase64/Config.in"
+source "package/ljlinenoise/Config.in"
 source "package/ljsyscall/Config.in"
 source "package/lpeg/Config.in"
 source "package/lpty/Config.in"
diff --git a/package/ljlinenoise/Config.in b/package/ljlinenoise/Config.in
new file mode 100644 (file)
index 0000000..17be1be
--- /dev/null
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_LJLINENOISE
+       bool "ljlinenoise"
+       # run-time dependency only
+       select BR2_PACKAGE_LJSYSCALL
+       # ljsyscall is specifically for LuaJIT, not Lua.
+       depends on BR2_PACKAGE_LUAJIT
+       # ljsyscall is only available for some target architectures
+       depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
+       help
+         ljlinenoise is a pure LuaJIT port of linenoise,
+         a small alternative to readline and libedit.
+
+         http://fperrad.github.io/ljlinenoise/
+
+comment "ljlinenoise needs LuaJIT"
+       depends on !BR2_PACKAGE_LUAJIT
+       depends on BR2_i386 || BR2_x86_64 || BR2_powerpc || BR2_arm || BR2_armeb
diff --git a/package/ljlinenoise/ljlinenoise.mk b/package/ljlinenoise/ljlinenoise.mk
new file mode 100644 (file)
index 0000000..69f6130
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# ljlinenoise
+#
+################################################################################
+
+LJLINENOISE_VERSION_UPSTREAM = 0.1.1
+LJLINENOISE_VERSION = $(LJLINENOISE_VERSION_UPSTREAM)-1
+LJLINENOISE_SUBDIR  = ljlinenoise-$(LJLINENOISE_VERSION_UPSTREAM)
+LJLINENOISE_LICENSE = MIT
+LJLINENOISE_LICENSE_FILES = $(LJLINENOISE_SUBDIR)/COPYRIGHT
+
+$(eval $(luarocks-package))