summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Udvare <audvare@gmail.com>2022-05-01 19:25:38 -0400
committerSam James <sam@gentoo.org>2022-05-02 01:34:25 +0100
commita64de84916ff1c28df4a93f903235d08276258ab (patch)
treecf0c33230807e823ff88485d6227aaf4a4e33726 /dev-libs/flatbuffers
parentprofiles/arch/s390/s390x: unmask USE=rust (diff)
downloadgentoo-a64de84916ff1c28df4a93f903235d08276258ab.tar.gz
gentoo-a64de84916ff1c28df4a93f903235d08276258ab.tar.bz2
gentoo-a64de84916ff1c28df4a93f903235d08276258ab.zip
dev-libs/flatbuffers: add 2.0.6
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Udvare <audvare@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25281 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.6.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
index 7bb90e6d049c..36742322397f 100644
--- a/dev-libs/flatbuffers/Manifest
+++ b/dev-libs/flatbuffers/Manifest
@@ -1 +1,2 @@
DIST flatbuffers-2.0.0.tar.gz 1538022 BLAKE2B ccd827a43da39cf831727b439beed0cea216cdf50dbfe70954854bbe388b2c47ed4e78cc87e3fc0d5568034b13baa2ea96480914cc8129747bccbf8ea928847c SHA512 26a06b572c0e4c9685743bd2d2162ac7dcd74b9324624cc3f3ef5b154c0cee7c52a04b77cdc184245d2d6ae38dfdcc4fd66001c318aa8ca001d2bf1d85d66a89
+DIST flatbuffers-2.0.6.tar.gz 1724250 BLAKE2B b6969b28dba753c4551b33d27409d9925c10a640ae860264f8054c19a470ce3da366c0bf7917bf7fe4f6cb57acbfbe1837f175fde40b84d311df6d1378d146ce SHA512 be631f34064c28d81876bf137c796e9736623cf2cc4f2a05dd45372e7195729c99fad1fa795f8ce71a408756a842edbdc0c3bc714a7cf63203a1de8681d86fb6
diff --git a/dev-libs/flatbuffers/flatbuffers-2.0.6.ebuild b/dev-libs/flatbuffers/flatbuffers-2.0.6.ebuild
new file mode 100644
index 000000000000..af7ea27ef27b
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-2.0.6.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 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"
+# From 1.2.0->2.0.0, incremented SONAME, although the interface didn't actually change.
+# (Apparently to adopt semver.)
+SLOT="0/2"
+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
+}