diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-22 11:40:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-22 11:40:06 +0100 |
commit | 7a86906b67693cc65671d3e1476835d3a7e13092 (patch) | |
tree | 9de1b9e2cf77833183d4e5ffab2e94d0403ef725 /dev-java/protobuf-java | |
parent | d56d144655e3785864da43c9acb6c228ef9360ae (diff) |
gentoo resync : 22.06.2019
Diffstat (limited to 'dev-java/protobuf-java')
-rw-r--r-- | dev-java/protobuf-java/protobuf-java-3.8.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/protobuf-java/protobuf-java-3.8.0.ebuild b/dev-java/protobuf-java/protobuf-java-3.8.0.ebuild new file mode 100644 index 000000000000..4e6cb44f488b --- /dev/null +++ b/dev-java/protobuf-java/protobuf-java-3.8.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 2008-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# True Authors: Arfrever Frehtes Taifersar Arahesis and others + +EAPI="6" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" + EGIT_SUBMODULES=() +fi + +DESCRIPTION="Google's Protocol Buffers - Java bindings" +HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" +if [[ "${PV}" == "9999" ]]; then + SRC_URI="" +else + SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" +fi + +LICENSE="BSD" +SLOT="0/19" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~sh ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +DEPEND="~dev-libs/protobuf-${PV} + >=virtual/jdk-1.7" +RDEPEND=">=virtual/jre-1.7 + !<dev-libs/protobuf-3[java(-)]" + +S="${WORKDIR}/protobuf-${PV}/java" + +if [[ "${PV}" == "9999" ]]; then + EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" +fi + +src_prepare() { + default + java-pkg-2_src_prepare +} + +src_compile() { + "${EPREFIX}/usr/bin/protoc" --java_out=core/src/main/java -I../src ../src/google/protobuf/descriptor.proto || die + JAVA_SRC_DIR="core/src/main/java" JAVA_JAR_FILENAME="protobuf.jar" java-pkg-simple_src_compile +} + +src_install() { + JAVA_SRC_DIR="core/src/main/java" JAVA_JAR_FILENAME="protobuf.jar" java-pkg-simple_src_install +} |