Skip to contentSkip to conversation

jquery-ui: new package

PATCH New spdawson at gmail.com 2 participants 5 messages May 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jquery-ui: new package

From: Simon Dawson <[email protected]>

---
 package/Config.in              |    1 +
 package/jquery-ui/Config.in    |   23 +++++++++++++++++++++++
 package/jquery-ui/jquery-ui.mk |   29 +++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 package/jquery-ui/Config.in
 create mode 100644 package/jquery-ui/jquery-ui.mk
package/Config.in +1 -0
index fb1b08f..acbbdbd 100644
@@ -370,6 +370,7 @@ source "package/explorercanvas/Config.in"
 source "package/flot/Config.in"
 source "package/jquery/Config.in"
 source "package/jquery-sparkline/Config.in"
+source "package/jquery-ui/Config.in"
 source "package/jquery-validation/Config.in"
 source "package/jsmin/Config.in"
 endmenu
package/jquery-ui/Config.in new file +23 -0
new file mode 100644
index 0000000..073a40a
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_JQUERY_UI
+	bool "jQuery UI"
+	help
+	  jQuery UI provides abstractions for low-level interaction and
+	  animation, advanced effects and high-level, themeable widgets,
+	  built on top of the jQuery JavaScript Library, that you can use
+	  to build highly interactive web applications.
+
+	  http://jqueryui.com/
+
+config BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH
+	string "Target install path for JavaScript"
+	default "/var/www/javascripts"
+	depends on BR2_PACKAGE_JQUERY_UI
+	help
+	  Specify a target install path for JavaScript files
+
+config BR2_PACKAGE_JQUERY_UI_CSS_PATH
+	string "Target install path for CSS"
+	default "/var/www/stylesheets"
+	depends on BR2_PACKAGE_JQUERY_UI
+	help
+	  Specify a target install path for CSS files
package/jquery-ui/jquery-ui.mk new file +29 -0
new file mode 100644
index 0000000..472c9b3
@@ -0,0 +1,29 @@
+#############################################################
+#
+# jquery-ui
+#
+#############################################################
+JQUERY_UI_VERSION = 1.8.20
+JQUERY_UI_SITE = http://jqueryui.com/download
+JQUERY_UI_SOURCE = jquery-ui-$(JQUERY_UI_VERSION).custom.zip
+
+JQUERY_UI_THEME = smoothness
+
+define JQUERY_UI_EXTRACT_CMDS
+	unzip -d $(@D) $(DL_DIR)/$(JQUERY_UI_SOURCE)
+endef
+
+define JQUERY_UI_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0644 -D $(@D)/js/jquery-ui-$(JQUERY_UI_VERSION).custom.min.js \
+		$(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui.js
+	mkdir -p $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)
+	cp -a $(@D)/css/$(JQUERY_UI_THEME) \
+		$(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)
+endef
+
+define JQUERY_UI_UNINSTALL_TARGET_CMDS
+	$(RM) $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui.js
+	$(RM) -r $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/$(JQUERY_UI_THEME)
+endef
+
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 jquery-ui: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

spdawson> From: Simon Dawson <[email protected]> spdawson> Signed-off-by: Simon Dawson <[email protected]>

spdawson> +JQUERY_UI_VERSION = 1.8.20
spdawson> +JQUERY_UI_SITE = http://jqueryui.com/download
spdawson> +JQUERY_UI_SOURCE = jquery-ui-$(JQUERY_UI_VERSION).custom.zip spdawson> +
spdawson> +JQUERY_UI_THEME = smoothness

I've looked at adding it myself, but the problem is the theming. How do you expect to handle this?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 jquery-ui: new package

Quoted 2 lines

I've looked at adding it myself, but the problem is the theming. How do you expect to handle this?

Hmm. Good question; they don't make it easy with the whole "download builder" thing. Any suggestions?

Quoted 16 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson ?<[email protected]> writes:

?spdawson> From: Simon Dawson <[email protected]> ?spdawson> Signed-off-by: Simon Dawson <[email protected]>

?spdawson> +JQUERY_UI_VERSION = 1.8.20
?spdawson> +JQUERY_UI_SITE = http://jqueryui.com/download
?spdawson> +JQUERY_UI_SOURCE = jquery-ui-$(JQUERY_UI_VERSION).custom.zip ?spdawson> +
?spdawson> +JQUERY_UI_THEME = smoothness

I've looked at adding it myself, but the problem is the theming. How do you expect to handle this?

--
Bye, Peter Korsgaard

Signature · 4 lines
http://www.google.com/profiles/spdawson

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
#3 lore raw

PATCH 1/1 jquery-ui: new package

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Simon" == Simon Dawson <[email protected]> writes:

I've looked at adding it myself, but the problem is the theming. How do you expect to handle this?

Simon> Hmm. Good question; they don't make it easy with the whole "download Simon> builder" thing. Any suggestions?

Not really. I gave up and just added a local package with my custom downloaded theme.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 1/1 jquery-ui: new package

I suppose that could be the answer: allow the configuration to specify a custom local path/tarball from which to install the user's custom theme. Would that be an acceptable compromise?