From patchwork Mon Jul 20 14:50:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ignacy_Gaw=C4=99dzki?= X-Patchwork-Id: 497758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 1A0AC140D4F for ; Tue, 21 Jul 2015 00:51:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1FAAE8A1CE; Mon, 20 Jul 2015 14:51:29 +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 fUkqBM+llEww; Mon, 20 Jul 2015 14:51:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1EA67911A4; Mon, 20 Jul 2015 14:51:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 01F7A1C0FDB for ; Mon, 20 Jul 2015 14:51:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E9FE4A3E02 for ; Mon, 20 Jul 2015 14:51:24 +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 mVT1tQYQDHZ4 for ; Mon, 20 Jul 2015 14:51:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.qult.net (str75-3-78-193-33-39.fbxo.proxad.net [78.193.33.39]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3DD1EA3E46 for ; Mon, 20 Jul 2015 14:51:22 +0000 (UTC) Received: from zenon.in.qult.net ([192.168.64.1] helo=zenon) by mail.qult.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZHCPZ-0004xA-Ad; Mon, 20 Jul 2015 16:51:21 +0200 Received: from ig by zenon with local (Exim 4.84) (envelope-from ) id 1ZHCPT-0005Cf-MU; Mon, 20 Jul 2015 16:51:15 +0200 From: =?UTF-8?q?Ignacy=20Gaw=C4=99dzki?= To: buildroot@buildroot.org Date: Mon, 20 Jul 2015 16:50:44 +0200 Message-Id: <1437403844-19942-1-git-send-email-ignacy.gawedzki@green-communications.fr> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: =?UTF-8?q?Ignacy=20Gaw=C4=99dzki?= Subject: [Buildroot] [PATCH v2 1/1] angularjs: new package. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Ignacy Gawędzki --- package/Config.in | 1 + package/angularjs/Config.in | 79 ++++++++++++++++++++++++++++++++++++++++ package/angularjs/angularjs.hash | 2 + package/angularjs/angularjs.mk | 38 +++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 package/angularjs/Config.in create mode 100644 package/angularjs/angularjs.hash create mode 100644 package/angularjs/angularjs.mk diff --git a/package/Config.in b/package/Config.in index 20ecd38..ba7523e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -873,6 +873,7 @@ menu "Hardware handling" endmenu menu "Javascript" + source "package/angularjs/Config.in" source "package/bootstrap/Config.in" source "package/explorercanvas/Config.in" source "package/flot/Config.in" diff --git a/package/angularjs/Config.in b/package/angularjs/Config.in new file mode 100644 index 0000000..2c02530 --- /dev/null +++ b/package/angularjs/Config.in @@ -0,0 +1,79 @@ +config BR2_PACKAGE_ANGULARJS + bool "AngularJS" + help + AngularJS web application framework. + + http://angularjs.org + +if BR2_PACKAGE_ANGULARJS + +menuconfig BR2_ANGULARJS_MODULES + bool "Select AngularJS modules" + help + Select which modules to install. Choose N to install all the + modules. + +if BR2_ANGULARJS_MODULES + +config BR2_ANGULARJS_MODULE_ANIMATE + bool "animate" + help + The ngAnimate module provides support for CSS-based animations + (keyframes and transitions) as well as JavaScript-based animations + via callback hooks. Animations are not enabled by default, however, + by including ngAnimate then the animation hooks are enabled for an + Angular app. + +config BR2_ANGULARJS_MODULE_ARIA + bool "aria" + help + The ngAria module provides support for common ARIA attributes that + convey state or semantic information about the application for users + of assistive technologies, such as screen readers. + +config BR2_ANGULARJS_MODULE_COOKIES + bool "cookies" + help + The ngCookies module provides a convenient wrapper for reading and + writing browser cookies. + +config BR2_ANGULARJS_MODULE_MESSAGE_FORMAT + bool "message-format" + help + The ngMessageFormat module is used recognize MessageFormat extensions + in interpolation expressions. + +config BR2_ANGULARJS_MODULE_MESSAGES + bool "messages" + help + The ngMessages module provides enhanced support for displaying + messages within templates (typically within forms or when rendering + message objects that return key/value data). + +config BR2_ANGULARJS_MODULE_RESOURCE + bool "resource" + help + The ngResource module provides interaction support with RESTful + services via the $resource service. + +config BR2_ANGULARJS_MODULE_ROUTE + bool "route" + help + The ngRoute module provides routing and deeplinking services and + directives for angular apps. + +config BR2_ANGULARJS_MODULE_SANITIZE + bool "sanitize" + help + The ngSanitize module provides functionality to sanitize HTML. + +config BR2_ANGULARJS_MODULE_TOUCH + bool "touch" + help + The ngTouch module provides touch events and other helpers for + touch-enabled devices. The implementation is based on jQuery Mobile + touch event handling (jquerymobile.com). + +endif + +endif diff --git a/package/angularjs/angularjs.hash b/package/angularjs/angularjs.hash new file mode 100644 index 0000000..100b6dc --- /dev/null +++ b/package/angularjs/angularjs.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 a99e3c22b54178b7646856efd95e825650d32d3125904a28216aeba52e221bad angular-1.4.3.zip diff --git a/package/angularjs/angularjs.mk b/package/angularjs/angularjs.mk new file mode 100644 index 0000000..556ee3d --- /dev/null +++ b/package/angularjs/angularjs.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# angularjs +# +################################################################################ + +ANGULARJS_VERSION = 1.4.3 +ANGULARJS_SOURCE = angular-$(ANGULARJS_VERSION).zip +ANGULARJS_SITE = https://code.angularjs.org/$(ANGULARJS_VERSION)/ +ANGULARJS_LICENSE = MIT +# There's no separate license file in the archive, so use angular.js instead. +ANGULARJS_LICENSE_FILES = angular-$(ANGULARJS_VERSION)/angular.js + +define ANGULARJS_EXTRACT_CMDS + unzip $(DL_DIR)/$(ANGULARJS_SOURCE) -d $(@D) +endef + +ANGULARJS_FILES = angular + +ANGULARJS_MODULES = animate aria cookies message-format messages resource \ + route sanitize touch + +ifeq ($(BR2_ANGULARJS_MODULES),y) +ANGULARJS_FILES += $(foreach mod,$(ANGULARJS_MODULES),\ + $(if $(BR2_ANGULARJS_MODULE_$(call UPPERCASE,$(mod))),\ + angular-$(mod))) +else +ANGULARJS_FILES += $(foreach mod,$(ANGULARJS_MODULES),angular-$(mod)) +endif + +define ANGULARJS_INSTALL_TARGET_CMDS + $(foreach f,$(ANGULARJS_FILES),\ + $(INSTALL) -m 0644 -D \ + $(@D)/angular-$(ANGULARJS_VERSION)/$(f).min.js \ + $(TARGET_DIR)/var/www/$(f).js$(sep)) +endef + +$(eval $(generic-package))