summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 21:51:30 +0100
committerSam James <sam@gentoo.org>2021-06-20 21:53:44 +0100
commit475aee15c9714a799f93fb9b25f12624c8d6b53f (patch)
tree5d94302f61f8eed129b9b64305fc630e50a29d09 /dev-libs/flatbuffers
parentmedia-gfx/exiv2: add 0.27.4 (diff)
downloadgentoo-475aee15c9714a799f93fb9b25f12624c8d6b53f.tar.gz
gentoo-475aee15c9714a799f93fb9b25f12624c8d6b53f.tar.bz2
gentoo-475aee15c9714a799f93fb9b25f12624c8d6b53f.zip
dev-libs/flatbuffers: add 2.0.0
Closes: https://bugs.gentoo.org/790806 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/flatbuffers')
-rw-r--r--dev-libs/flatbuffers/Manifest1
-rw-r--r--dev-libs/flatbuffers/flatbuffers-2.0.0.ebuild31
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
index 61fd59662ddc..31ae57f96c33 100644
--- a/dev-libs/flatbuffers/Manifest
+++ b/dev-libs/flatbuffers/Manifest
@@ -1 +1,2 @@
DIST flatbuffers-1.12.0.tar.gz 1145348 BLAKE2B 441123be124ad851efa30bda0d828a764ebaf79ba6692a6e5904000b33818e9de78c3a964037ac93ef562890980c58169141e55354dce86857c02bcd917150d6 SHA512 8a0b88d739fa4694a69d3630140fe89fdd70d50bba4dadd1758d9aa2920cda16700bcafb8d89fe2a09ac907d3f378240c3cb4abc7106318136799836aba4b063
+DIST flatbuffers-2.0.0.tar.gz 1538022 BLAKE2B ccd827a43da39cf831727b439beed0cea216cdf50dbfe70954854bbe388b2c47ed4e78cc87e3fc0d5568034b13baa2ea96480914cc8129747bccbf8ea928847c SHA512 26a06b572c0e4c9685743bd2d2162ac7dcd74b9324624cc3f3ef5b154c0cee7c52a04b77cdc184245d2d6ae38dfdcc4fd66001c318aa8ca001d2bf1d85d66a89
diff --git a/dev-libs/flatbuffers/flatbuffers-2.0.0.ebuild b/dev-libs/flatbuffers/flatbuffers-2.0.0.ebuild
new file mode 100644
index 000000000000..59a0c5212cab
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-2.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Memory efficient serialization library"
+HOMEPAGE="https://google.github.io/flatbuffers/"
+SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~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)
+ )
+
+ use elibc_musl && mycmakeargs+=( -DFLATBUFFERS_LOCALE_INDEPENDENT=0 )
+
+ cmake_src_configure
+}