1 |
commit: 0505eb31327b7f781547a2a7ec9d683da99dd88d |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 2 09:37:01 2018 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 2 11:40:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0505eb31 |
7 |
|
8 |
dev-libs/flatbuffers: revision bump installs missing flatc |
9 |
|
10 |
This resolves a regression introduced in 1.8.0. |
11 |
|
12 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
13 |
|
14 |
dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild | 32 ++++++++++++++++++++++++ |
15 |
1 file changed, 32 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild b/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..4a387f3894c |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/flatbuffers/flatbuffers-1.8.0-r1.ebuild |
22 |
@@ -0,0 +1,32 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit cmake-utils flag-o-matic |
29 |
+ |
30 |
+DESCRIPTION="Memory efficient serialization library" |
31 |
+HOMEPAGE="https://google.github.io/flatbuffers/" |
32 |
+SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="Apache-2.0" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64" |
37 |
+IUSE="static-libs test" |
38 |
+ |
39 |
+src_configure() { |
40 |
+ append-cppflags -std=c++11 |
41 |
+ |
42 |
+ local mycmakeargs=( |
43 |
+ -DFLATBUFFERS_BUILD_FLATLIB=$(usex static-libs) |
44 |
+ -DFLATBUFFERS_BUILD_SHAREDLIB=ON |
45 |
+ -DFLATBUFFERS_BUILD_TESTS=$(usex test) |
46 |
+ ) |
47 |
+ |
48 |
+ cmake-utils_src_configure |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ cmake-utils_src_install |
53 |
+ dobin "${CMAKE_BUILD_DIR}"/flatc |
54 |
+} |