39 lines
731 B
Bash
39 lines
731 B
Bash
|
# 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
|
||
|
}
|