jquery-ui-themes: new package
[Peter: drop CSS path option, depend on jquery-ui, misc cleanups] Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
0421f606f0
commit
77572e6f9f
@ -489,6 +489,7 @@ source "package/jquery/Config.in"
|
||||
source "package/jquery-keyboard/Config.in"
|
||||
source "package/jquery-sparkline/Config.in"
|
||||
source "package/jquery-ui/Config.in"
|
||||
source "package/jquery-ui-themes/Config.in"
|
||||
source "package/jquery-validation/Config.in"
|
||||
source "package/jsmin/Config.in"
|
||||
source "package/json-javascript/Config.in"
|
||||
|
14
package/jquery-ui-themes/Config.in
Normal file
14
package/jquery-ui-themes/Config.in
Normal file
@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_JQUERY_UI_THEMES
|
||||
bool "jQuery UI themes"
|
||||
depends on BR2_PACKAGE_JQUERY_UI
|
||||
help
|
||||
Themes for jQuery UI.
|
||||
|
||||
http://jqueryui.com/
|
||||
|
||||
config BR2_PACKAGE_JQUERY_UI_THEMES_THEME
|
||||
string "theme to install"
|
||||
default "base"
|
||||
depends on BR2_PACKAGE_JQUERY_UI_THEMES
|
||||
help
|
||||
Specify the name of the jQuery UI theme to install.
|
32
package/jquery-ui-themes/jquery-ui-themes.mk
Normal file
32
package/jquery-ui-themes/jquery-ui-themes.mk
Normal file
@ -0,0 +1,32 @@
|
||||
#############################################################
|
||||
#
|
||||
# jquery-ui-themes
|
||||
#
|
||||
#############################################################
|
||||
|
||||
JQUERY_UI_THEMES_VERSION = 1.8.21
|
||||
JQUERY_UI_THEMES_SITE = http://jquery-ui.googlecode.com/files
|
||||
JQUERY_UI_THEMES_SOURCE = jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION).zip
|
||||
JQUERY_UI_THEMES_DEPENDENCIES = jquery-ui
|
||||
|
||||
define JQUERY_UI_THEMES_EXTRACT_CMDS
|
||||
unzip -d $(@D) $(DL_DIR)/$(JQUERY_UI_THEMES_SOURCE)
|
||||
mv $(@D)/jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION)/* $(@D)
|
||||
$(RM) -r $(@D)/jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION)
|
||||
endef
|
||||
|
||||
define JQUERY_UI_THEMES_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0644 -D \
|
||||
$(@D)/themes/$(BR2_PACKAGE_JQUERY_UI_THEMES_THEME)/jquery-ui.css \
|
||||
$(TARGET_DIR)/var/www/jquery-ui.css
|
||||
$(INSTALL) -d $(TARGET_DIR)/var/www/images
|
||||
cp -a $(@D)/themes/$(BR2_PACKAGE_JQUERY_UI_THEMES_THEME)/images/*.png \
|
||||
$(TARGET_DIR)/var/www/images
|
||||
chmod 0644 $(TARGET_DIR)/var/www/images/*.png
|
||||
endef
|
||||
|
||||
define JQUERY_UI_THEMES_UNINSTALL_TARGET_CMDS
|
||||
$(RM) $(TARGET_DIR)/var/www/jquery-ui.css
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user