commit:     0505eb31327b7f781547a2a7ec9d683da99dd88d
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  2 09:37:01 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Feb  2 11:40:23 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0505eb31

dev-libs/flatbuffers: revision bump installs missing flatc

This resolves a regression introduced in 1.8.0.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild | 32 ++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild 
b/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild
new file mode 100644
index 00000000000..4a387f3894c
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils flag-o-matic
+
+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"
+IUSE="static-libs test"
+
+src_configure() {
+       append-cppflags -std=c++11
+
+       local mycmakeargs=(
+               -DFLATBUFFERS_BUILD_FLATLIB=$(usex static-libs)
+               -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+               -DFLATBUFFERS_BUILD_TESTS=$(usex test)
+       )
+
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+       dobin "${CMAKE_BUILD_DIR}"/flatc
+}

Reply via email to