From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-936286-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id AFB93139696
	for <garchives@archives.gentoo.org>; Sat,  4 Mar 2017 12:30:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D4E4721C038;
	Sat,  4 Mar 2017 12:30:29 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A1F3D21C038
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 Mar 2017 12:30:29 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9C0CA341752
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 Mar 2017 12:30:28 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 35A2B5C15
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 Mar 2017 12:30:27 +0000 (UTC)
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" <kensington@gentoo.org>
Message-ID: <1488630610.456830ff7ae1bdb49a658580f44ca06e1895a3cf.kensington@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/flatbuffers/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/flatbuffers/Manifest dev-libs/flatbuffers/flatbuffers-1.6.0.ebuild dev-libs/flatbuffers/metadata.xml
X-VCS-Directories: dev-libs/flatbuffers/
X-VCS-Committer: kensington
X-VCS-Committer-Name: Michael Palimaka
X-VCS-Revision: 456830ff7ae1bdb49a658580f44ca06e1895a3cf
X-VCS-Branch: master
Date: Sat,  4 Mar 2017 12:30:27 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 104ec465-5afd-428e-a12f-8ee6a814199d
X-Archives-Hash: 350c61a180e7e80f037c017a38896884

commit:     456830ff7ae1bdb49a658580f44ca06e1895a3cf
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  4 11:51:53 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Mar  4 12:30:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=456830ff

dev-libs/flatbuffers: new package

Package-Manager: Portage-2.3.4, Repoman-2.3.2

 dev-libs/flatbuffers/Manifest                 |  1 +
 dev-libs/flatbuffers/flatbuffers-1.6.0.ebuild | 33 +++++++++++++++++++++++++++
 dev-libs/flatbuffers/metadata.xml             |  8 +++++++
 3 files changed, 42 insertions(+)

diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
new file mode 100644
index 00000000000..0640c010d59
--- /dev/null
+++ b/dev-libs/flatbuffers/Manifest
@@ -0,0 +1 @@
+DIST flatbuffers-1.6.0.tar.gz 440968 SHA256 768c50ebf5823f8cde81a9e38ffff115c8f5a5d031a37520d0024e7b9c6cd22e SHA512 d1e4d47cac663010eda58ca801e6da5e9d54104115dbb70b125b9251041611229e39c17a4b63f06eee2424f3cdd733b8efa49c723759ad533a07d33ef8406bcc WHIRLPOOL 1572de7bf181d00bbdf68d27b6ce369693f7eeb4a27aa56adfd9eb46554c520d0a66350eb2db071c5b4a8fb00b2bf67cb06732a2c7d1e716d2347ea72a4882a0

diff --git a/dev-libs/flatbuffers/flatbuffers-1.6.0.ebuild b/dev-libs/flatbuffers/flatbuffers-1.6.0.ebuild
new file mode 100644
index 00000000000..80004da2362
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-1.6.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 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_prepare() {
+	sed -i -e "s/DESTINATION lib/DESTINATION $(get_libdir)/" CMakeLists.txt || die
+
+	cmake-utils_src_prepare
+}
+
+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
+}

diff --git a/dev-libs/flatbuffers/metadata.xml b/dev-libs/flatbuffers/metadata.xml
new file mode 100644
index 00000000000..2fdbf33d963
--- /dev/null
+++ b/dev-libs/flatbuffers/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>kde@gentoo.org</email>
+		<name>Gentoo KDE Project</name>
+	</maintainer>
+</pkgmetadata>