From 81fe75c855f9a598695f83b7384713820383efe4 Mon Sep 17 00:00:00 2001 From: Semyon Kolganov Date: Thu, 6 Apr 2017 18:41:17 +0300 Subject: [PATCH] fmt: new package Signed-off-by: Semyon Kolganov [Thomas: - add entry to DEVELOPERS file - add missing wchar dependency - minor tweaks.] Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/fmt/Config.in | 11 +++++++++++ package/fmt/fmt.hash | 2 ++ package/fmt/fmt.mk | 18 ++++++++++++++++++ 5 files changed, 35 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/DEVELOPERS b/DEVELOPERS index e1713cf4c3..629ea4bbaa 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1411,6 +1411,9 @@ F: package/kyua/ F: package/lutok/ F: package/yaml-cpp/ +N: Semyon Kolganov +F: package/fmt/ + N: Sergio Prado F: package/libgdiplus/ F: package/mongodb/ diff --git a/package/Config.in b/package/Config.in index fe4c0ae4bc..a4855a9e42 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 0000000000..979d940931 --- /dev/null +++ b/package/fmt/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_FMT + bool "fmt" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + 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++, wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR diff --git a/package/fmt/fmt.hash b/package/fmt/fmt.hash new file mode 100755 index 0000000000..beb120b123 --- /dev/null +++ b/package/fmt/fmt.hash @@ -0,0 +1,2 @@ +# Locally calculated +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 0000000000..b7e3db03b6 --- /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.30.2