json-javascript: new package
authorSimon Dawson <spdawson@gmail.com>
Mon, 25 Jun 2012 04:43:17 +0000 (04:43 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 5 May 2013 20:15:28 +0000 (22:15 +0200)
[Peter: update for generic-package, add license info]
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/json-javascript/Config.in [new file with mode: 0644]
package/json-javascript/json-javascript.mk [new file with mode: 0644]

index 79b6b8f138286cb76781a5270fc7c0f20d02479d..e743dc8b2159240a72a617332d3ab08275896ff8 100644 (file)
@@ -489,6 +489,7 @@ source "package/jquery-keyboard/Config.in"
 source "package/jquery-sparkline/Config.in"
 source "package/jquery-validation/Config.in"
 source "package/jsmin/Config.in"
+source "package/json-javascript/Config.in"
 endmenu
 
 menu "Multimedia"
diff --git a/package/json-javascript/Config.in b/package/json-javascript/Config.in
new file mode 100644 (file)
index 0000000..501c54f
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_JSON_JAVASCRIPT
+       bool "json-javascript"
+       help
+         JSON in JavaScript
+
+         https://github.com/douglascrockford/JSON-js/
diff --git a/package/json-javascript/json-javascript.mk b/package/json-javascript/json-javascript.mk
new file mode 100644 (file)
index 0000000..a700e07
--- /dev/null
@@ -0,0 +1,20 @@
+#############################################################
+#
+# json-javascript
+#
+#############################################################
+
+JSON_JAVASCRIPT_VERSION = 42c18c621a411c3f39a81bb0a387fc50dcd738d9
+JSON_JAVASCRIPT_SITE = git://github.com/douglascrockford/JSON-js.git
+JSON_JAVASCRIPT_LICENSE = Public Domain
+JSON_JAVASCRIPT_LICENSE_FILES = json2.js
+
+define JSON_JAVASCRIPT_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0644 -D $(@D)/json2.js $(TARGET_DIR)/var/www/json2.js
+endef
+
+define JSON_JAVASCRIPT_UNINSTALL_TARGET_CMDS
+       $(RM) $(TARGET_DIR)/var/www/json2.js
+endef
+
+$(eval $(generic-package))