jquery-datetimepicker: new package
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 28 Jul 2015 18:14:27 +0000 (20:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 28 Jul 2015 21:18:16 +0000 (23:18 +0200)
This package provides datetimepicker, datepicker and timepicker
dropdown for web forms.

[Thomas:
  - add <pkg>_LICENSE_FILES.]

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/jquery-datetimepicker/Config.in [new file with mode: 0644]
package/jquery-datetimepicker/jquery-datetimepicker.mk [new file with mode: 0644]

index 1e39c7445cc7e0d6f6f5010afd22f23e0fa7e565..8db91eba155b3cf9d85f6f0579e31d2559065add 100644 (file)
@@ -885,6 +885,7 @@ menu "Javascript"
        source "package/explorercanvas/Config.in"
        source "package/flot/Config.in"
        source "package/jquery/Config.in"
+       source "package/jquery-datetimepicker/Config.in"
        source "package/jquery-keyboard/Config.in"
        source "package/jquery-mobile/Config.in"
        source "package/jquery-sparkline/Config.in"
diff --git a/package/jquery-datetimepicker/Config.in b/package/jquery-datetimepicker/Config.in
new file mode 100644 (file)
index 0000000..6a07ec3
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_JQUERY_DATETIMEPICKER
+       bool "jquery-datetimepicker"
+       select BR2_PACKAGE_JQUERY
+       help
+         Use this plugin to unobtrusively add a datetimepicker,
+         datepicker or timepicker dropdown to your forms.
+
+         http://xdsoft.net/jqplugins/datetimepicker
diff --git a/package/jquery-datetimepicker/jquery-datetimepicker.mk b/package/jquery-datetimepicker/jquery-datetimepicker.mk
new file mode 100644 (file)
index 0000000..e4d4799
--- /dev/null
@@ -0,0 +1,19 @@
+################################################################################
+#
+# jquery-datetimepicker
+#
+################################################################################
+
+JQUERY_DATETIMEPICKER_VERSION = 2.4.5
+JQUERY_DATETIMEPICKER_SITE = $(call github,xdan,datetimepicker,$(JQUERY_DATETIMEPICKER_VERSION))
+JQUERY_DATETIMEPICKER_LICENSE = MIT
+JQUERY_DATETIMEPICKER_LICENSE_FILES = MIT-LICENSE.txt
+
+define JQUERY_DATETIMEPICKER_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0644 -D $(@D)/jquery.datetimepicker.css \
+               $(TARGET_DIR)/var/www/jquery-plugins/datetimepicker/jquery.datetimepicker.css
+       $(INSTALL) -m 0644 -D $(@D)/jquery.datetimepicker.js \
+               $(TARGET_DIR)/var/www/jquery-plugins/datetimepicker/jquery.datetimepicker.js
+endef
+
+$(eval $(generic-package))