diff mbox series

[1/5] package/double-conversion: new package

Message ID 20220725152522.1579992-2-thomas.petazzoni@bootlin.com
State Accepted
Headers show
Series Very initial Qt6 packaging | expand

Commit Message

Thomas Petazzoni July 25, 2022, 3:25 p.m. UTC
From: Peter Seiderer <ps.report@gmx.net>

Both the target and host variants of this package will be needed by
qt6base.

Our reading of double-conversion/utils.h in the code base seems to
show that all architectures currently supported in Buildroot (to the
exception of csky, which we intend to remove, and is anyway not
usable/testable today) are supported by double-conversion.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 DEVELOPERS                                       |  2 ++
 package/Config.in                                |  1 +
 package/double-conversion/Config.in              | 11 +++++++++++
 package/double-conversion/double-conversion.hash |  3 +++
 package/double-conversion/double-conversion.mk   | 14 ++++++++++++++
 5 files changed, 31 insertions(+)
 create mode 100644 package/double-conversion/Config.in
 create mode 100644 package/double-conversion/double-conversion.hash
 create mode 100644 package/double-conversion/double-conversion.mk
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 2a07ae100b..c580d3ebd8 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2320,6 +2320,7 @@  F:	package/bcm2835/
 F:	package/ddrescue/
 F:	package/dejavu/
 F:	package/dillo/
+F:	package/double-conversion/
 F:	package/edid-decode/
 F:	package/ell/
 F:	package/ghostscript-fonts/
@@ -2835,6 +2836,7 @@  F:	package/cloop/
 F:	package/cmake/
 F:	package/cramfs/
 F:	package/dmidecode/
+F:	package/double-conversion/
 F:	package/flashrom/
 F:	package/gcc/
 F:	package/genext2fs/
diff --git a/package/Config.in b/package/Config.in
index bd3d167487..b9a17c12ba 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1951,6 +1951,7 @@  menu "Other"
 	source "package/cracklib/Config.in"
 	source "package/dawgdic/Config.in"
 	source "package/ding-libs/Config.in"
+	source "package/double-conversion/Config.in"
 	source "package/eigen/Config.in"
 	source "package/elfutils/Config.in"
 	source "package/ell/Config.in"
diff --git a/package/double-conversion/Config.in b/package/double-conversion/Config.in
new file mode 100644
index 0000000000..b858b56c27
--- /dev/null
+++ b/package/double-conversion/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_DOUBLE_CONVERSION
+	bool "double-conversion"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Provides binary-decimal and decimal-binary routines for
+	  IEEE doubles.
+
+	  https://github.com/google/double-conversion
+
+comment "double-conversion needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/double-conversion/double-conversion.hash b/package/double-conversion/double-conversion.hash
new file mode 100644
index 0000000000..8124ec2f82
--- /dev/null
+++ b/package/double-conversion/double-conversion.hash
@@ -0,0 +1,3 @@ 
+# Locally computed:
+sha256  3dbcdf186ad092a8b71228a5962009b5c96abde9a315257a3452eb988414ea3b  double-conversion-3.2.0.tar.gz
+sha256  4af93c12062c58058378de2397dc1c92bbff9ddfb1d583a01c84127557ce97ca  COPYING
diff --git a/package/double-conversion/double-conversion.mk b/package/double-conversion/double-conversion.mk
new file mode 100644
index 0000000000..ae46fa06fe
--- /dev/null
+++ b/package/double-conversion/double-conversion.mk
@@ -0,0 +1,14 @@ 
+################################################################################
+#
+# double-conversion
+#
+################################################################################
+
+DOUBLE_CONVERSION_VERSION = 3.2.0
+DOUBLE_CONVERSION_SITE = $(call github,google,double-conversion,v$(DOUBLE_CONVERSION_VERSION))
+DOUBLE_CONVERSION_LICENSE = BSD-3-Clause
+DOUBLE_CONVERSION_LICENSE_FILES = COPYING
+DOUBLE_CONVERSION_INSTALL_STAGING = YES
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))