summaryrefslogtreecommitdiff
path: root/dev-libs/flatbuffers
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/flatbuffers')
-rw-r--r--dev-libs/flatbuffers/Manifest1
-rw-r--r--dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild61
-rw-r--r--dev-libs/flatbuffers/flatbuffers-9999.ebuild61
-rw-r--r--dev-libs/flatbuffers/metadata.xml7
4 files changed, 130 insertions, 0 deletions
diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest
new file mode 100644
index 00000000..27fbf0cf
--- /dev/null
+++ b/dev-libs/flatbuffers/Manifest
@@ -0,0 +1 @@
+DIST v1.1.0.tar.gz 289967 SHA256 6ac776d86e1c9ac84497c51aeac5ddc79c9596166abd937dea073e1cc574a673 SHA512 baf9744e6e2501e84d7b51dc6448bb8bf4f5e211313dbf73dbffa1e34648215c956b166630a1d3260cd434d73cafb6fd4396f7bf14f73d9adecf1964cbed2fec WHIRLPOOL a1047176f9a8e1bc66500492aece28db3aec1698dac30d19c670237b185dbac040847cc02bb91c32aedfa16fe9629ea77af8dd13dc96db829368813229757105
diff --git a/dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild b/dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild
new file mode 100644
index 00000000..4be647af
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Memory Efficient Serialization Library"
+HOMEPAGE="http://google.github.io/flatbuffers/"
+SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="-doc -examples -java"
+
+RDEPEND="
+ java? ( virtual/jdk )
+"
+DEPEND="
+ dev-util/cmake
+ ${RDEPEND}
+"
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use java ; then
+ (cd java && \
+ javac com/google/flatbuffers/*.java && \
+ jar cf flatbuffers.jar com/google/flatbuffers/*.class)
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/include
+ doins -r include/flatbuffers
+
+ if use doc ; then
+ dohtml -r docs
+ fi
+
+ if use examples ; then
+ dodoc -r samples
+ fi
+
+ if use java ; then
+ insinto /usr/share/${PN}
+ doins java/flatbuffers.jar
+ fi
+}
diff --git a/dev-libs/flatbuffers/flatbuffers-9999.ebuild b/dev-libs/flatbuffers/flatbuffers-9999.ebuild
new file mode 100644
index 00000000..5534b6ca
--- /dev/null
+++ b/dev-libs/flatbuffers/flatbuffers-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils git-2 cmake-utils
+
+DESCRIPTION="Memory Efficient Serialization Library"
+HOMEPAGE="http://google.github.io/flatbuffers/"
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/google/flatbuffers.git"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="-doc -examples -java"
+
+RDEPEND="
+ java? ( virtual/jdk )"
+DEPEND="
+ dev-util/cmake
+ ${RDEPEND}"
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use java ; then
+ (cd java && \
+ javac com/google/flatbuffers/*.java && \
+ jar cf flatbuffers.jar com/google/flatbuffers/*.class)
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/include
+ doins -r include/flatbuffers
+
+ if use doc ; then
+ dohtml -r docs
+ fi
+
+ if use examples ; then
+ dodoc -r samples
+ fi
+
+ if use java ; then
+ insinto /usr/share/${PN}
+ doins java/flatbuffers.jar
+ fi
+}
diff --git a/dev-libs/flatbuffers/metadata.xml b/dev-libs/flatbuffers/metadata.xml
new file mode 100644
index 00000000..cc3fe249
--- /dev/null
+++ b/dev-libs/flatbuffers/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>