diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/flatbuffers/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild (renamed from dev-libs/flatbuffers/flatbuffers-1.0-r1.ebuild) | 14 | ||||
-rw-r--r-- | dev-libs/flatbuffers/flatbuffers-9999.ebuild | 64 |
3 files changed, 76 insertions, 6 deletions
diff --git a/dev-libs/flatbuffers/Manifest b/dev-libs/flatbuffers/Manifest index 50bd102..97401b1 100644 --- a/dev-libs/flatbuffers/Manifest +++ b/dev-libs/flatbuffers/Manifest @@ -1 +1,3 @@ -EBUILD flatbuffers-1.0-r1.ebuild 943 SHA256 97177241a333d1eefcfd664d4a2fe982b6f20a1fcb93274135afd21cad0a7397 SHA512 dddd0cf3cfea7b2077ec43a4ddb7a2fdd90707867a63029e47e254ef400150f0ada82b5b0bb96b2a834359302ef0421ec92dcaee427e02be6327c57ddfd1c91d WHIRLPOOL 3c0fae267a70327abc216193e39b02316933adf9cd38f6b8513cee844e5318fa82d20fef79685563d375b75d6af80c954ac4dfe395db70bdd4189836a3d9df11 +DIST v1.1.0.tar.gz 289967 SHA256 6ac776d86e1c9ac84497c51aeac5ddc79c9596166abd937dea073e1cc574a673 SHA512 baf9744e6e2501e84d7b51dc6448bb8bf4f5e211313dbf73dbffa1e34648215c956b166630a1d3260cd434d73cafb6fd4396f7bf14f73d9adecf1964cbed2fec WHIRLPOOL a1047176f9a8e1bc66500492aece28db3aec1698dac30d19c670237b185dbac040847cc02bb91c32aedfa16fe9629ea77af8dd13dc96db829368813229757105 +EBUILD flatbuffers-1.1.0.ebuild 947 SHA256 59d63046bbd283bc0eb9a7476a4b74dabd3806b9a56f464f388b16d212a59554 SHA512 1edb26f093b108e24285f2a82c202ea10baa9dc4d607e82e9a09528c11865a4f7d3bfa41b9ab352ed252e00c51a0ebcf33ec54f8beb8ca8311fa734fdf111ece WHIRLPOOL a780112e4ffadc8e00c8addc5d09bd41327c25ae28af52f0ead28d5a94c783207e9c9d48ba8451490f543ca60131985b09cddb07ae052ee1c3d6b681589deac6 +EBUILD flatbuffers-9999.ebuild 1173 SHA256 bfb279a4b47c2163d98f4e4d0309167e7dc0c00ed767dc9ae60a6bbd0b783b93 SHA512 cd17bcc1272574f63ae5d6a2a5b7379ca0a061a1919640390c886eeabe2276cd9cafb04ec2e3afdc2a26bee186dc317b734ed85d4a99fe0bda75b5d03615c49f WHIRLPOOL 37e2b9b33a5cc2b8a9d8bfe622662c42486456fdc48976d658e0bf3388967dbf07ccc8d0255ff279e5294b8145f0181ea2d922829b0bc72209be96c68a2ce7ac diff --git a/dev-libs/flatbuffers/flatbuffers-1.0-r1.ebuild b/dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild index f94412f..99ba400 100644 --- a/dev-libs/flatbuffers/flatbuffers-1.0-r1.ebuild +++ b/dev-libs/flatbuffers/flatbuffers-1.1.0.ebuild @@ -4,20 +4,24 @@ EAPI=5 -inherit eutils git-r3 +inherit eutils DESCRIPTION="Memory Efficient Serialization Library" HOMEPAGE="http://google.github.io/flatbuffers/" -EGIT_REPO_URI="https://github.com/google/flatbuffers.git" +SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz" LICENSE="Apache" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+doc +examples +java" -RDEPEND="java? ( virtual/jdk )" -DEPEND="dev-util/cmake - ${RDEPEND}" +RDEPEND=" + java? ( virtual/jdk ) +" +DEPEND=" + dev-util/cmake + ${RDEPEND} +" src_compile() { cmake -G "Unix Makefiles" diff --git a/dev-libs/flatbuffers/flatbuffers-9999.ebuild b/dev-libs/flatbuffers/flatbuffers-9999.ebuild new file mode 100644 index 0000000..0332baf --- /dev/null +++ b/dev-libs/flatbuffers/flatbuffers-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=(python{2_7,3_{3,4}}) +inherit eutils distutils-r1 git-r3 + +DESCRIPTION="Memory Efficient Serialization Library" +HOMEPAGE="http://google.github.io/flatbuffers/" +EGIT_REPO_URI="https://github.com/google/flatbuffers.git" + +LICENSE="Apache" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+doc +examples +java +python" + +RDEPEND=" + java? ( virtual/jdk ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND=" + dev-util/cmake + python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) + ${RDEPEND} +" + +src_compile() { + cmake -G "Unix Makefiles" + emake + + if use java ; then + (cd java && \ + javac com/google/flatbuffers/*.java && \ + jar cf flatbuffers.jar com/google/flatbuffers/*.class) + fi +} + +src_install() { + dobin ${WORKDIR}/flatbuffers-${PV}/flatc + + 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 + + if use python ; then + cd python + distutils-r1_src_install + fi +} |