gradle-ebuild found at https://github.com/asssaf/portage.git
This commit is contained in:
parent
0ad8fae0f1
commit
00c8508537
2
dev-java/gradle-bin/Manifest
Normal file
2
dev-java/gradle-bin/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST gradle-0.9.1-all.zip 37013210 RMD160 b6225f696b297a291d61474295015efd78e115ad SHA1 0712f0dfe1dadf6c3771259b23e3c6941e1c6577 SHA256 6b9e2033e856ed99b968d71c2dc5174dc5637c10d5e4cc9502a51e86f45709eb
|
||||
EBUILD gradle-bin-0.9.1.ebuild 1111 RMD160 d6d3e04297d4d643c7b3eda7ea554d990f163404 SHA1 bda4bdf75db332125d6a7c7f54e0eef6119574a9 SHA256 8713d7db86e1fa7b10550d1b16c40858bf68c4a8df9b048135b76c086e77c7df
|
64
dev-java/gradle-bin/gradle-bin-0.9.1.ebuild
Normal file
64
dev-java/gradle-bin/gradle-bin-0.9.1.ebuild
Normal 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/-preview-}
|
||||
MY_PV=${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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user