From patchwork Thu Jun 14 20:02:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 165010 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 20C981007D1 for ; Fri, 15 Jun 2012 06:03:58 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 27CB78D64B; Thu, 14 Jun 2012 20:03:47 +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 7ceukVrpLp3U; Thu, 14 Jun 2012 20:03:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 724CC8D645; Thu, 14 Jun 2012 20:03:36 +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 8E4398F753 for ; Thu, 14 Jun 2012 20:03:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 64B728D62C for ; Thu, 14 Jun 2012 20:03:25 +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 U+GakmL2-h97 for ; Thu, 14 Jun 2012 20:03:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 75EE482963 for ; Thu, 14 Jun 2012 20:03:23 +0000 (UTC) Received: by eeke50 with SMTP id e50so1145197eek.16 for ; Thu, 14 Jun 2012 13:03:21 -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:in-reply-to:references; bh=iHJg051teGz89SxOJcdSpM1WV+aXQtnPCLqdmB4dMTI=; b=nXgCCprf2ISOURVFM0X+N/xV2MD8/WJ9pU29oSkALgX9gxPIGbpiILlelJ+DLmHAHL VGKXXZ2NnmYw+jn+hiz+D5gyCIQ5+5u+Kqxy32aPRNvBTjiG9Bw0Mvxy9E4kxOWMC6N9 OyUCXGrXBB9yB7kzxNcfVYKtMbGe2a0iX4z/1k7l4lWB22niWv/nO+xrzkFsgmd71F+J LrHan+1OvaN/X+XlmC/lThQp39ID7xZWinyKTcW/y6tIs0I5XwvPOHre74Zx1SSc3vu4 8FZ7cILyHjD/jE7TriBStgz7keUBVnIGOfEOHcKMtVU6f6fgKZUrdbWEDCsbi12/Kta4 y+/w== Received: by 10.14.189.12 with SMTP id b12mr778965een.140.1339704201528; Thu, 14 Jun 2012 13:03:21 -0700 (PDT) Received: from localhost.localdomain (host-2-100-182-54.as13285.net. [2.100.182.54]) by mx.google.com with ESMTPS id q53sm22925098eef.8.2012.06.14.13.03.19 (version=SSLv3 cipher=OTHER); Thu, 14 Jun 2012 13:03:20 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 14 Jun 2012 21:02:12 +0100 Message-Id: <1339704133-11220-2-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1339704133-11220-1-git-send-email-spdawson@gmail.com> References: <1339704133-11220-1-git-send-email-spdawson@gmail.com> Subject: [Buildroot] [PATCH 2/2] jquery-ui-themes: 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-themes/Config.in | 21 +++++++++++++++++ package/jquery-ui-themes/jquery-ui-themes.mk | 31 ++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 package/jquery-ui-themes/Config.in create mode 100644 package/jquery-ui-themes/jquery-ui-themes.mk diff --git a/package/Config.in b/package/Config.in index 2f20617..20d7323 100644 --- a/package/Config.in +++ b/package/Config.in @@ -382,6 +382,7 @@ 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-ui-themes/Config.in" source "package/jquery-validation/Config.in" source "package/jsmin/Config.in" endmenu diff --git a/package/jquery-ui-themes/Config.in b/package/jquery-ui-themes/Config.in new file mode 100644 index 0000000..49180f9 --- /dev/null +++ b/package/jquery-ui-themes/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_JQUERY_UI_THEMES + bool "jQuery UI themes" + select BR2_PACKAGE_JQUERY_UI + help + Themes for jQuery UI. + + http://jqueryui.com/ + +config BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH + string "Target install path for CSS" + default "/var/www/stylesheets" + depends on BR2_PACKAGE_JQUERY_UI_THEMES + help + Specify a target install path for CSS files + +config BR2_PACKAGE_JQUERY_UI_THEMES_THEME + string "Name of theme to install" + default "base" + depends on BR2_PACKAGE_JQUERY_UI_THEMES + help + Specify the name of a jQuery UI theme to be installed diff --git a/package/jquery-ui-themes/jquery-ui-themes.mk b/package/jquery-ui-themes/jquery-ui-themes.mk new file mode 100644 index 0000000..e193f51 --- /dev/null +++ b/package/jquery-ui-themes/jquery-ui-themes.mk @@ -0,0 +1,31 @@ +############################################################# +# +# 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 + +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)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/jquery-ui.css + $(INSTALL) -d $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/images + cp -a $(@D)/themes/$(BR2_PACKAGE_JQUERY_UI_THEMES_THEME)/images/*.png \ + $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/images + chmod 0644 $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/images/*.png +endef + +define JQUERY_UI_THEMES_UNINSTALL_TARGET_CMDS + $(RM) $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/jquery-ui.css + $(RM) -r $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_THEMES_CSS_PATH)/images +endef + +$(eval $(call GENTARGETS))