luaexpatutils: New package
authorAssaf Inbal <shmuelzon@gmail.com>
Mon, 20 May 2013 12:56:40 +0000 (15:56 +0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 19 Jun 2013 21:24:39 +0000 (23:24 +0200)
lxp.doc is a module that provides useful features for working with XML
formats in LOM format as used by the LuaExpat project from Kepler.

[Peter: use fixed git revision, github tarball, install -D]
Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/luaexpatutils/Config.in [new file with mode: 0644]
package/luaexpatutils/luaexpatutils.mk [new file with mode: 0644]

index 426004bc38c2214c7e31b3a7546fefb0a528f879..2d8c936934064a713880b2a9b0fde38c8e6598b2 100644 (file)
@@ -319,6 +319,7 @@ source "package/luabitop/Config.in"
 source "package/luacjson/Config.in"
 source "package/luacrypto/Config.in"
 source "package/luaexpat/Config.in"
+source "package/luaexpatutils/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
 source "package/lua-ev/Config.in"
diff --git a/package/luaexpatutils/Config.in b/package/luaexpatutils/Config.in
new file mode 100644 (file)
index 0000000..cb2887a
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LUAEXPATUTILS
+       bool "luaexpatutils"
+       select BR2_PACKAGE_LUAEXPAT
+       help
+         lxp.doc is a module that provides useful features for working with
+         XML formats in LOM format as used by the LuaExpat project from Kepler.
+
+         https://github.com/stevedonovan/LuaExpatUtils
diff --git a/package/luaexpatutils/luaexpatutils.mk b/package/luaexpatutils/luaexpatutils.mk
new file mode 100644 (file)
index 0000000..79578c0
--- /dev/null
@@ -0,0 +1,21 @@
+#############################################################
+#
+# luaexpatutils
+#
+#############################################################
+
+LUAEXPATUTILS_VERSION = 88c228365b
+LUAEXPATUTILS_SITE = http://github.com/stevedonovan/LuaExpatUtils/tarball/$(LUAEXPATUTILS_VERSION)
+LUAEXPATUTILS_LICENSE = Public Domain
+LUAEXPATUTILS_DEPENDENCIES = luaexpat
+
+define LUAEXPATUTILS_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0644 -D $(@D)/lua/doc.lua \
+               $(TARGET_DIR)/usr/share/lua/lxp/doc.lua
+endef
+
+define LUAEXPATUTILS_UNINSTALL_TARGET_CMDS
+       rm -f $(TARGET_DIR)/usr/share/lua/lxp/doc.lua
+endef
+
+$(eval $(generic-package))