Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] bootstrap: new package
@ 2015-01-09 21:13 Yegor Yefremov
  2015-01-10 11:11 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Yegor Yefremov @ 2015-01-09 21:13 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 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))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] bootstrap: new package
  2015-01-09 21:13 [Buildroot] [PATCH] bootstrap: new package Yegor Yefremov
@ 2015-01-10 11:11 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-01-10 11:11 UTC (permalink / raw)
  To: buildroot

Dear Yegor Yefremov,

On Fri,  9 Jan 2015 22:13:38 +0100, Yegor Yefremov wrote:

> +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

This is really a convoluted way of doing:

	cp -dpfr $(@D)/dist/* $(TARGET_DIR)/var/www/bootstrap/

so I've changed to use that instead, and applied.

However, can you submit a follow-up patch to remove the unneeded files
from the target? Or copy only the ones that are used? Both the full JS
and CSS files are added, in addition to the minimized ones, I don't
think that's useful. I'm also not sure what the big .css.map file is.

Can you look into this?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-10 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 21:13 [Buildroot] [PATCH] bootstrap: new package Yegor Yefremov
2015-01-10 11:11 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox