jquery-keyboard: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 3 May 2013 10:11:05 +0000 (10:11 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 4 May 2013 11:05:37 +0000 (13:05 +0200)
Add the jquery-keyboard package based on Simon Dawson's patch with a
newer version and improvements (license, select jquery, install
layouts).

[Peter: don't use install -D when destination is a directory]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/jquery-keyboard/Config.in [new file with mode: 0644]
package/jquery-keyboard/jquery-keyboard.mk [new file with mode: 0644]

index 78c394f0ffd7666eccd77aaa5617c79bce1989da..3537de185f45a0d5b73ebe0e311b2eebdb84702d 100644 (file)
@@ -484,6 +484,7 @@ menu "Javascript"
 source "package/explorercanvas/Config.in"
 source "package/flot/Config.in"
 source "package/jquery/Config.in"
+source "package/jquery-keyboard/Config.in"
 source "package/jquery-sparkline/Config.in"
 source "package/jquery-validation/Config.in"
 source "package/jsmin/Config.in"
diff --git a/package/jquery-keyboard/Config.in b/package/jquery-keyboard/Config.in
new file mode 100644 (file)
index 0000000..ee97662
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_JQUERY_KEYBOARD
+       bool "jQuery keyboard"
+       select BR2_PACKAGE_JQUERY
+       help
+         Virtual Keyboard using jQuery UI
+
+         https://github.com/Mottie/Keyboard
diff --git a/package/jquery-keyboard/jquery-keyboard.mk b/package/jquery-keyboard/jquery-keyboard.mk
new file mode 100644 (file)
index 0000000..22d1a00
--- /dev/null
@@ -0,0 +1,25 @@
+#############################################################
+#
+# jquery-keyboard
+#
+#############################################################
+
+JQUERY_KEYBOARD_VERSION = 1.17.4
+JQUERY_KEYBOARD_SITE = \
+       http://github.com/Mottie/Keyboard/tarball/v$(JQUERY_KEYBOARD_VERSION)
+JQUERY_KEYBOARD_LICENSE = MIT WTFPL
+JQUERY_KEYBOARD_LICENSE_FILES = README.markdown
+
+define JQUERY_KEYBOARD_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0644 -D $(@D)/css/keyboard.css \
+               $(TARGET_DIR)/var/www/css/keyboard.css
+       $(INSTALL) -m 0644 $(@D)/js/jquery.keyboard*.js \
+               $(TARGET_DIR)/var/www
+       $(INSTALL) -m 0644 -D $(@D)/js/jquery.mousewheel.js \
+               $(TARGET_DIR)/var/www/jquery.mousewheel.js
+       $(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/layouts
+       $(INSTALL) -m 0644 $(@D)/layouts/*.js \
+               $(TARGET_DIR)/var/www/layouts
+endef
+
+$(eval $(call generic-package))