commit: 053e25924a0ce80ca6aba6d1c4390b1cc6b914c3 Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Mon Oct 17 23:59:52 2016 +0000 Commit: Austin English <wizardedit <AT> gentoo <DOT> org> CommitDate: Tue Oct 18 00:01:30 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=053e2592
dev-java/moshi: initial ebuild Package-Manager: portage-2.3.0 dev-java/moshi/Manifest | 1 + dev-java/moshi/metadata.xml | 11 +++++++++++ dev-java/moshi/moshi-1.1.0.ebuild | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/dev-java/moshi/Manifest b/dev-java/moshi/Manifest new file mode 100644 index 00000000..34bea06 --- /dev/null +++ b/dev-java/moshi/Manifest @@ -0,0 +1 @@ +DIST moshi-parent-1.1.0.tar.gz 85572 SHA256 131e6f72d5f9052bbc4c588ed640873f7fe77efc865768b419b4c7f5652886d3 SHA512 58557f20a84f4b59f0b603b6e6dbe803285f5c066451dac72e9926ca57131b62fddd222b995dc233e1c7120fc7787fa5b2c6ddab33d0b8e69b8ea1147ca06549 WHIRLPOOL 9ccfa575c58920bd13a4926772e65ad9d2437eea9d86854b99fef540effe75cf77aad10ee35246c9cb74391e8e99029a36f2bb09894efcb5df6b43c7c8c8f039 diff --git a/dev-java/moshi/metadata.xml b/dev-java/moshi/metadata.xml new file mode 100644 index 00000000..b2097aa --- /dev/null +++ b/dev-java/moshi/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>j...@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">square/moshi</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/moshi/moshi-1.1.0.ebuild b/dev-java/moshi/moshi-1.1.0.ebuild new file mode 100644 index 00000000..10df768 --- /dev/null +++ b/dev-java/moshi/moshi-1.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 java-pkg-simple + +MY_P="${PN}-parent-${PV}" + +DESCRIPTION="A modern JSON library for Android and Java" +HOMEPAGE="https://github.com/square/moshi" +SRC_URI="https://github.com/square/${PN}/archive/${MY_P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND=" + dev-java/assertj-core:2 + dev-java/junit:4 + dev-java/okio:0 +" + +DEPEND=">=virtual/jdk-1.7 + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.7 + ${CDEPEND}" + +JAVA_GENTOO_CLASSPATH="assertj-core-2,junit-4,okio" + +JAVA_SRC_PATH="${WORKDIR}/${MY_P}/${PN}/src" + +src_prepare() { + # Some don't compile, not putting effort into it now + rm -rf "${WORKDIR}/${PN}-${MY_P}/${PN}"/src/test +}