From patchwork Tue May 15 08:40:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 159256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id DC395B6FB6 for ; Tue, 15 May 2012 18:40:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A200810023C; Tue, 15 May 2012 08:40:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fiWhfBAd-RH4; Tue, 15 May 2012 08:40:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 142FD1017DF; Tue, 15 May 2012 08:40:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 851498F753 for ; Tue, 15 May 2012 08:40:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3DB358C91F for ; Tue, 15 May 2012 08:40:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjpHzbTllafC for ; Tue, 15 May 2012 08:40:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bk0-f43.google.com (mail-bk0-f43.google.com [209.85.214.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 72F2C8C8C9 for ; Tue, 15 May 2012 08:40:09 +0000 (UTC) Received: by bkty5 with SMTP id y5so10232403bkt.16 for ; Tue, 15 May 2012 01:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=LULZ3QMa2TUyVa9KmNAE+wnk+Q3a2zV6zLkzIaa68BY=; b=y+CLOC4wSI+SF8ERS6J/Zitwgd1FV6csJZgze/zO+/G6okhBzpFKZURpXWF2X4/81T hrmFrHIQJqFKErS8++bs4Cy4IeIx8mIs/HHiEDK6m8ZKQu5v9zVfy00qjvdrcLIkkB5c zRXSQBDZLMPEuIxH4t2KsVXvYZkwB/syMbw3YQRxMdAnVGfJnu7a7ijLzaVJXOm73Wxk 4e9ChqB1wLYqEx3A7SQKQNUmqWhEFG3RBKCXiRt530yfi0kvmAuN8NjV7B+4aiQUqfkt vE1ScnG73eb0fgsYv/K/6YPm+dsypeN7FhSU/cWI7OOk27fY/xxyYwxL/aQ/2DSrbaoi rpaw== Received: by 10.204.153.15 with SMTP id i15mr4338307bkw.74.1337071207360; Tue, 15 May 2012 01:40:07 -0700 (PDT) Received: from localhost.localdomain (host-78-151-35-48.as13285.net. [78.151.35.48]) by mx.google.com with ESMTPS id z14sm39742802bky.15.2012.05.15.01.40.05 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 01:40:06 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Tue, 15 May 2012 09:40:03 +0100 Message-Id: <1337071203-5841-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH] jquery-ui: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson Signed-off-by: Simon Dawson --- 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 diff --git a/package/Config.in b/package/Config.in index fb1b08f..acbbdbd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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 diff --git a/package/jquery-ui/Config.in b/package/jquery-ui/Config.in new file mode 100644 index 0000000..073a40a --- /dev/null +++ b/package/jquery-ui/Config.in @@ -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 diff --git a/package/jquery-ui/jquery-ui.mk b/package/jquery-ui/jquery-ui.mk new file mode 100644 index 0000000..472c9b3 --- /dev/null +++ b/package/jquery-ui/jquery-ui.mk @@ -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))