From patchwork Fri Jan 9 21:13:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 427247 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 1668814007D for ; Sat, 10 Jan 2015 08:13:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9CD048B87D; Fri, 9 Jan 2015 21:13:56 +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 E6VD1yO8C0mW; Fri, 9 Jan 2015 21:13:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8124D8B632; Fri, 9 Jan 2015 21:13:55 +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 0EBA81C2987 for ; Fri, 9 Jan 2015 21:13:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 091048B632 for ; Fri, 9 Jan 2015 21:13:55 +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 tz1J-4xLXlm5 for ; Fri, 9 Jan 2015 21:13:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 01C5D8B5A4 for ; Fri, 9 Jan 2015 21:13:53 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id w62so10059209wes.13 for ; Fri, 09 Jan 2015 13:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=L8nmUssZH7+BRGFISToTndw0X8bJNqwWBCZUiPX60ps=; b=Zsd4u2YrDOCxBk4cmII4Bhm7TuaQ+IDv3x1OknGWIpOylwzspSsG1zyTi3LVuJ59Ae jJtzgHmgE54fGuT8nchi0WfwfasFm2QznnKDpZBktv374f+I3UfrjEiJrZSuFTnW4MR6 VaIKReZYWdvdtkzjA7njgSYLLY9U/lyUNf1a6xD5QW672oPnFtJN2PzNI0PtAj7kQUHp E0ycLX1VVwcWOy1C8nkeR70tpBgkncrIZymT1bP9/PNzLyYLK0IstSdxtg0vuqodUtK9 jPR1tcDB1Uv1d8ToLF+7gT/bxTyZ5F7pEPMKahID+7N9AKZoTkx9MP9YnE8ckaV5jdje wlsw== X-Received: by 10.180.90.16 with SMTP id bs16mr8652612wib.4.1420838032602; Fri, 09 Jan 2015 13:13:52 -0800 (PST) Received: from user-Lenovo-IdeaPad-Z500.localdomain (x2f11c50.dyn.telefonica.de. [2.241.28.80]) by mx.google.com with ESMTPSA id kn7sm11380600wjc.45.2015.01.09.13.13.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Jan 2015 13:13:51 -0800 (PST) From: Yegor Yefremov To: buildroot@busybox.net Date: Fri, 9 Jan 2015 22:13:38 +0100 Message-Id: <1420838018-2511-1-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] bootstrap: 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Yegor Yefremov --- package/Config.in | 1 + package/bootstrap/Config.in | 7 +++++++ package/bootstrap/bootstrap.hash | 2 ++ package/bootstrap/bootstrap.mk | 22 ++++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 package/bootstrap/Config.in create mode 100644 package/bootstrap/bootstrap.hash create mode 100644 package/bootstrap/bootstrap.mk diff --git a/package/Config.in b/package/Config.in index 5ece4a5..8476773 100644 --- a/package/Config.in +++ b/package/Config.in @@ -740,6 +740,7 @@ menu "Hardware handling" endmenu menu "Javascript" + source "package/bootstrap/Config.in" source "package/explorercanvas/Config.in" source "package/flot/Config.in" source "package/jquery/Config.in" diff --git a/package/bootstrap/Config.in b/package/bootstrap/Config.in new file mode 100644 index 0000000..743d8a3 --- /dev/null +++ b/package/bootstrap/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_BOOTSTRAP + bool "bootstrap" + help + Bootstrap is the most popular HTML, CSS, and JS framework + for developing responsive, mobile first projects on the web. + + http://getbootstrap.com diff --git a/package/bootstrap/bootstrap.hash b/package/bootstrap/bootstrap.hash new file mode 100644 index 0000000..acb06b4 --- /dev/null +++ b/package/bootstrap/bootstrap.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 95ca4a02aff37570660c81a87065b53ebc281c33fa86b91a6a7a650eee10678f bootstrap-3.3.1-dist.zip diff --git a/package/bootstrap/bootstrap.mk b/package/bootstrap/bootstrap.mk new file mode 100644 index 0000000..e78f88b --- /dev/null +++ b/package/bootstrap/bootstrap.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# bootstrap +# +################################################################################ + +BOOTSTRAP_VERSION = 3.3.1 +BOOTSTRAP_SITE = https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION) +BOOTSTRAP_SOURCE = bootstrap-$(BOOTSTRAP_VERSION)-dist.zip +BOOTSTRAP_LICENSE = MIT + +define BOOTSTRAP_EXTRACT_CMDS + unzip $(DL_DIR)/$(BOOTSTRAP_SOURCE) -d $(@D) +endef + +define BOOTSTRAP_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/var/www/bootstrap + $(TAR) c -C $(@D) dist | \ + $(TAR) x -C $(TARGET_DIR)/var/www/bootstrap --strip-components=1 +endef + +$(eval $(generic-package))