diff --git a/dev-java/gson/Manifest b/dev-java/gson/Manifest new file mode 100644 index 0000000..7754b0d --- /dev/null +++ b/dev-java/gson/Manifest @@ -0,0 +1 @@ +DIST google-gson-2.2.2-release.zip 530698 SHA256 22ef1257d13c172b2941337c77920beb3c6972a55fc3917738d4fc012b3637d2 SHA512 c5622fb0963e6cf7514abc6b7b2baa9d424959d1e9282cc9bcbcd81904ee66e84a0a2a30db4f3b80939e8bab78cee52240108dab09dbef7adc3cb60901b057c1 WHIRLPOOL 44a825b361328579382f9c12fb49d530c9a04b8cdec5308d013774e9f9afa4f2e827d8e0718004ff8c0e1bd4bb4027333c69df1bc9859178988b8d487c190348 diff --git a/dev-java/gson/gson-2.2.2.ebuild b/dev-java/gson/gson-2.2.2.ebuild new file mode 100644 index 0000000..f48383a --- /dev/null +++ b/dev-java/gson/gson-2.2.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java library to convert JSON to Java objects and vice-versa" +HOMEPAGE="http://code.google.com/p/google-gson/" +SRC_URI="http://google-gson.googlecode.com/files/google-${P}-release.zip" +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" + +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}/google-${P}" + +src_unpack() { + unpack ${A} + cd "${S}" || die + unpack "./${P}-sources.jar" +} + +java_prepare() { + rm -v *.jar || die +} + +src_install() { + java-pkg-simple_src_install + dodoc README +}