gradle 1.0 pre1

This commit is contained in:
Micha Glave 2011-04-05 12:24:27 +02:00
parent 2072091f0e
commit 284534480e
2 changed files with 66 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST gradle-0.9.2-all.zip 37500427 RMD160 36cd6ad339f8e01aa05e495eab3e7f6fb596ba3e SHA1 1570f07ec6aea764de78b245cebb5cc64e059b26 SHA256 a9b33c1cb7c056a7bd26b588301ce80f0b6e3872d18b0f1cb80ab74af0e62404 DIST gradle-0.9.2-all.zip 37500427 RMD160 36cd6ad339f8e01aa05e495eab3e7f6fb596ba3e SHA1 1570f07ec6aea764de78b245cebb5cc64e059b26 SHA256 a9b33c1cb7c056a7bd26b588301ce80f0b6e3872d18b0f1cb80ab74af0e62404
DIST gradle-1.0-milestone-1-all.zip 33290522 RMD160 3255dc4c2a9f10af8e660313fdab75f4ac1e8b28 SHA1 2a17a461fe7f879bbcf96c8deb7cca4f73a50749 SHA256 8f03d906183cec6c065028cd80521ff978d1785148e48fd805ae44c1a362fffc
EBUILD gradle-bin-0.9.2.ebuild 1111 RMD160 d6d3e04297d4d643c7b3eda7ea554d990f163404 SHA1 bda4bdf75db332125d6a7c7f54e0eef6119574a9 SHA256 8713d7db86e1fa7b10550d1b16c40858bf68c4a8df9b048135b76c086e77c7df EBUILD gradle-bin-0.9.2.ebuild 1111 RMD160 d6d3e04297d4d643c7b3eda7ea554d990f163404 SHA1 bda4bdf75db332125d6a7c7f54e0eef6119574a9 SHA256 8713d7db86e1fa7b10550d1b16c40858bf68c4a8df9b048135b76c086e77c7df
EBUILD gradle-bin-1.0_pre1-r1.ebuild 1132 RMD160 a3b2db9fb9e5d1778a899a920df7e07a3a527cce SHA1 7339c179940988026fb30e5946d74a453db64dc8 SHA256 fb06275897f495d521ede7697292d5ed66b55b99615cf813117348dc1755cab4

View File

@ -0,0 +1,64 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit java-pkg-2
MY_PN=${PN%%-bin}
MY_PV=${PV/_pre/-milestone-}
MY_PV=${MY_PV/_rc/-rc-}
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Build Tool for Java"
SRC_URI="http://gradle.artifactoryonline.com/gradle/distributions/${MY_P}-all.zip"
HOMEPAGE="http://www.gradle.org/"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND="app-arch/zip"
RDEPEND=">=virtual/jdk-1.5"
IUSE="source doc examples"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
}
src_install() {
local gradle_home="${ROOT}/usr/share/${PN}"
insinto "${gradle_home}"
# source
if use source ; then
java-pkg_dosrc src/*
fi
# docs
if use doc ; then
java-pkg_dojavadoc docs
fi
# examples
if use examples ; then
java-pkg_doexamples samples
fi
# jars
cd lib
for jar in *.jar; do
java-pkg_newjar ${jar} ${jar}
done
# plugin jars
insinto "${gradle_home}/lib/plugins"
doins plugins/*
java-pkg_dolauncher "gradle" --main org.gradle.launcher.GradleMain --java_args "-Dgradle.home=${gradle_home} \${GRADLE_OPTS}"
}