diff mbox series

[v3,7/7] package/libodb-boost: new package

Message ID 20200706153040.427457-8-kamel.bouhara@bootlin.com
State Accepted
Headers show
Series ODB: C++ Object-Relational Mapping (ORM): New packages | expand

Commit Message

Kamel BOUHARA July 6, 2020, 3:30 p.m. UTC
This package contains the Boost ODB profile library. The Boost profile
provides support for persisting Boost smart pointers, containers, and
value types with the ODB system.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
---
 DEVELOPERS                             |  1 +
 package/Config.in                      |  1 +
 package/libodb-boost/Config.in         | 16 ++++++++++++++++
 package/libodb-boost/libodb-boost.hash |  7 +++++++
 package/libodb-boost/libodb-boost.mk   | 16 ++++++++++++++++
 5 files changed, 41 insertions(+)
 create mode 100644 package/libodb-boost/Config.in
 create mode 100644 package/libodb-boost/libodb-boost.hash
 create mode 100644 package/libodb-boost/libodb-boost.mk

Comments

Thomas Petazzoni July 12, 2020, 1:43 p.m. UTC | #1
On Mon,  6 Jul 2020 17:30:40 +0200
Kamel Bouhara <kamel.bouhara@bootlin.com> wrote:

> This package contains the Boost ODB profile library. The Boost profile
> provides support for persisting Boost smart pointers, containers, and
> value types with the ODB system.
> 
> Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>

Thanks, I have applied after fixing a few details: check-package
warnings about indentation in Config.in file and about consecutive
empty lines in hash file, but also alphabetic ordering in DEVELOPERS
file as well as spacing in the hash file.

Thanks!

Thomas
Kamel BOUHARA July 15, 2020, 9:33 a.m. UTC | #2
On Sun, Jul 12, 2020 at 03:43:06PM +0200, Thomas Petazzoni wrote:
> On Mon,  6 Jul 2020 17:30:40 +0200
> Kamel Bouhara <kamel.bouhara@bootlin.com> wrote:
>
> > This package contains the Boost ODB profile library. The Boost profile
> > provides support for persisting Boost smart pointers, containers, and
> > value types with the ODB system.
> >
> > Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
>
> Thanks, I have applied after fixing a few details: check-package
> warnings about indentation in Config.in file and about consecutive
> empty lines in hash file, but also alphabetic ordering in DEVELOPERS
> file as well as spacing in the hash file.
>

Hello Thomas,

Well, thanks. I shall try to read the tips and tricks section of the
buildroot manual more deeply next time :)!

Kamel

> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

--
Kamel Bouhara, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
diff mbox series

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index fdab3becc3..8318587fad 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1411,6 +1411,7 @@  F:	package/dtach/
 
 N:	Kamel Bouhara <kamel.bouhara@gmail.com>
 F:	package/libodb-mysql/
+F:	package/libodb-boost/
 
 N:	Karoly Kasza <kaszak@gmail.com>
 F:	package/irqbalance/
diff --git a/package/Config.in b/package/Config.in
index 651241dc0c..d668e1d3e3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1807,6 +1807,7 @@  menu "Other"
 	source "package/libnpth/Config.in"
 	source "package/libnspr/Config.in"
 	source "package/libodb/Config.in"
+	source "package/libodb-boost/Config.in"
 	source "package/libpfm4/Config.in"
 	source "package/libplatform/Config.in"
 	source "package/libplist/Config.in"
diff --git a/package/libodb-boost/Config.in b/package/libodb-boost/Config.in
new file mode 100644
index 0000000000..afa9a9b2a4
--- /dev/null
+++ b/package/libodb-boost/Config.in
@@ -0,0 +1,16 @@ 
+config BR2_PACKAGE_LIBODB_BOOST
+	bool "libodb-boost"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_LIBODB
+	help
+	  This package contains the common ODB runtime library. Every
+	  application that includes code generated by the ODB compiler
+	  will need to link to this library.
+
+	  https://www.codesynthesis.com/products/odb/
+
+comment "libodb-boost needs a toolchain w/ C++, threads"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+        depends on BR2_PACKAGE_BOOST
diff --git a/package/libodb-boost/libodb-boost.hash b/package/libodb-boost/libodb-boost.hash
new file mode 100644
index 0000000000..03b6edacae
--- /dev/null
+++ b/package/libodb-boost/libodb-boost.hash
@@ -0,0 +1,7 @@ 
+# From https://www.codesynthesis.com/projects/libcutl/
+sha1	f813702b2856732e199ae34e3393b8cecff878ef	libodb-boost-2.4.0.tar.bz2
+
+
+# Locally Computed
+sha256  b41bd4aaa3f3c9563cfa41bae19bda1bbcc3652e4430b4ebb1819eef2ffcadf4	libodb-boost-2.4.0.tar.bz2
+sha256	841105a470fc283851c63941510ffd403c726d1910b688f7df95914ab8b1b5a3	LICENSE
diff --git a/package/libodb-boost/libodb-boost.mk b/package/libodb-boost/libodb-boost.mk
new file mode 100644
index 0000000000..679c9d7a38
--- /dev/null
+++ b/package/libodb-boost/libodb-boost.mk
@@ -0,0 +1,16 @@ 
+################################################################################
+#
+# libodb-boost
+#
+################################################################################
+
+LIBODB_BOOST_VERSION_MAJOR = 2.4
+LIBODB_BOOST_VERSION = $(LIBODB_BOOST_VERSION_MAJOR).0
+LIBODB_BOOST_SOURCE = libodb-boost-$(LIBODB_BOOST_VERSION).tar.bz2
+LIBODB_BOOST_SITE = https://www.codesynthesis.com/download/odb/$(LIBODB_BOOST_VERSION_MAJOR)
+LIBODB_BOOST_INSTALL_STAGING = YES
+LIBODB_BOOST_LICENSE = GPL-2.0
+LIBODB_BOOST_LICENSE_FILES = LICENSE
+LIBODB_BOOST_DEPENDENCIES = boost libodb
+
+$(eval $(autotools-package))