summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangjiezhe <wangjiezhe@gmail.com>2024-01-19 18:19:16 +0800
committerJason Zaman <perfinion@gentoo.org>2024-02-03 11:32:43 -0800
commitee8c0d5c59319a5a939dd231c90720bd73b6016f (patch)
treef0e235497bd6eb39deb6207ff41aa96108e7e9d6 /dev-libs/flatbuffers
parentsci-libs/tensorflow: update dependencies (diff)
downloadgentoo-ee8c0d5c59319a5a939dd231c90720bd73b6016f.tar.gz
gentoo-ee8c0d5c59319a5a939dd231c90720bd73b6016f.tar.bz2
gentoo-ee8c0d5c59319a5a939dd231c90720bd73b6016f.zip
Revert "dev-libs/flatbuffers: Remove old"
flatbuffers-23.1.21 is needed for tensorflow-2.13.1 see https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/lite/schema/schema_generated.h#L25 This reverts commit 8bede14312bbf876dd8c1e48ea10f666445ff6a6. Signed-off-by: wangjiezhe <wangjiezhe@gmail.com> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'dev-libs/flatbuffers')
-rw-r--r--dev-libs/flatbuffers/Manifest1
-rw-r--r--dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
index ff76ed194531..16918eaf4e7a 100644
--- a/dev-libs/flatbuffers/Manifest
+++ b/dev-libs/flatbuffers/Manifest
@@ -1 +1,2 @@
+DIST flatbuffers-23.1.21.gh.tar.gz 2181861 BLAKE2B 6368358c21e677feb466245a746b86cebb6d6a4058bb6d593de81bf3c32ddfb9fd475e4bb225d4529ea106253456a5ed1ee6d024b1e2521e02efef171750f428 SHA512 fa62188f773ad044644a58caf1e25bef417dfdea47c9da8a2ea7f997154b4f3976019e32e73cc533696a3d4e45ec4a8402b6df140878dfa2ff078740d61b4b0f
DIST flatbuffers-23.5.26.gh.tar.gz 2257271 BLAKE2B 147425e7c018072f4ae4cdb3e034a4f434362d88d5e27b09375965993c279acfbed36064014c8f4fbe3fb81175ac0aa9b07629675e2c7ad33d59a9c85f2c3bb8 SHA512 cd0a5efad8016e1217d01a181d6b02e546f5693c6412361bfeaee820d5dfe5e2a424cee1963270e851c1a4f936ae8a0032a51c5bb16ee19313e0ecc77dc4ba31
diff --git a/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild b/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild
new file mode 100644
index 000000000000..b8bd61f6bb19
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-23.1.21.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Memory efficient serialization library"
+HOMEPAGE="
+ https://google.github.io/flatbuffers/
+ https://github.com/google/flatbuffers/
+"
+SRC_URI="
+ https://github.com/google/flatbuffers/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+DOCS=( readme.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DFLATBUFFERS_BUILD_FLATLIB=$(usex static-libs)
+ -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+ -DFLATBUFFERS_BUILD_TESTS=$(usex test)
+ -DFLATBUFFERS_BUILD_BENCHMARKS=OFF
+ )
+
+ cmake_src_configure
+}