All of lore.kernel.org
 help / color / mirror / Atom feed
From: Semyon Kolganov <semenak94@mail.ru>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv5] fmt: new package
Date: Thu,  6 Apr 2017 18:41:17 +0300	[thread overview]
Message-ID: <1491493277-19334-1-git-send-email-semenak94@mail.ru> (raw)
In-Reply-To: <fmt: new package>

Signed-off-by: Semyon Kolganov <semenak94@mail.ru>

Changes between v4 and v5:
 - added dependcy from LIBSTDCPP to fmt

Changes between v3 and v4:
 - fixed misprint

Changes between v2 and v3:
 - removed Staging section in fmt.mk file
 - formatting fixes
 - added dependency from w/ C++

Changes between v1 and v2:
 - formatting fixes
 - added right license
 - using Github helper to download
---
 package/Config.in     |  1 +
 package/fmt/Config.in | 10 ++++++++++
 package/fmt/fmt.hash  |  4 ++++
 package/fmt/fmt.mk    | 18 ++++++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/fmt/Config.in
 create mode 100755 package/fmt/fmt.hash
 create mode 100755 package/fmt/fmt.mk

diff --git a/package/Config.in b/package/Config.in
index 71bd44a..2bd55ec 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1433,6 +1433,7 @@ endmenu
 menu "Text and terminal handling"
 	source "package/augeas/Config.in"
 	source "package/enchant/Config.in"
+	source "package/fmt/Config.in"
 	source "package/icu/Config.in"
 	source "package/libcli/Config.in"
 	source "package/libedit/Config.in"
diff --git a/package/fmt/Config.in b/package/fmt/Config.in
new file mode 100644
index 0000000..4c68357
--- /dev/null
+++ b/package/fmt/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_FMT
+	bool "fmt"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  fmt is an open-source formatting library for C++. It can be used
+	  as a safe alternative to printf or as a fast alternative to
+	  IOStreams.
+
+comment "fmt needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/fmt/fmt.hash b/package/fmt/fmt.hash
new file mode 100755
index 0000000..31d4eaa
--- /dev/null
+++ b/package/fmt/fmt.hash
@@ -0,0 +1,4 @@
+# Calculated on http://onlinemd5.com/
+sha1	c7026a04f05331004888bf0ab8ef2ef3c002933c fmt-3.0.1.tar.gz
+# Calculated on http://onlinemd5.com/
+sha256	dce62ab75a161dd4353a98364feb166d35e7eea382169d59d9ce842c49c55bad fmt-3.0.1.tar.gz
diff --git a/package/fmt/fmt.mk b/package/fmt/fmt.mk
new file mode 100755
index 0000000..b7e3db0
--- /dev/null
+++ b/package/fmt/fmt.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# fmt
+#
+################################################################################
+
+FMT_VERSION = 3.0.1
+FMT_SITE = $(call github,fmtlib,fmt,$(FMT_VERSION))
+FMT_LICENSE = BSD-2-Clause
+FMT_LICENSE_FILES = LICENSE.rst
+FMT_INSTALL_STAGING = YES
+
+FMT_CONF_OPTS = \
+	-DHAVE_OPEN=ON \
+	-DFMT_INSTALL=ON \
+	-DFMT_TEST=OFF
+
+$(eval $(cmake-package))
-- 
2.7.4

  parent reply	other threads:[~2017-04-06 15:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fmt: new package>
2017-04-06 10:30 ` [Buildroot] [PATCH] fmt: new package Semyon Kolganov
2017-04-06 10:53   ` Thomas Petazzoni
2017-04-06 12:02 ` [Buildroot] [PATCHv2] fmt: new package PATCHv2 Semyon Kolganov
2017-04-06 14:00   ` Thomas Petazzoni
2017-04-06 14:17 ` [Buildroot] [PATCHv3] fmt: new package PACKAGEv3 Semyon Kolganov
2017-04-06 14:27 ` [Buildroot] [PATCHv4] fmt: new package Semyon Kolganov
2017-04-06 15:29   ` Baruch Siach
2017-04-06 15:41 ` Semyon Kolganov [this message]
2017-04-06 20:14   ` [Buildroot] [PATCHv5] " Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491493277-19334-1-git-send-email-semenak94@mail.ru \
    --to=semenak94@mail.ru \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.