You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
IUSE="doc"
|
||
|
JAVA_PKG_IUSE="source"
|
||
|
|
||
|
inherit java-pkg-2
|
||
|
|
||
|
MY_PN=${PN%%-bin}
|
||
|
MY_P="${MY_PN}-${PV/_rc/-rc-}"
|
||
|
|
||
|
DESCRIPTION="A project automation and build tool with a Groovy based DSL"
|
||
|
SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip"
|
||
|
HOMEPAGE="https://www.gradle.org/"
|
||
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="${PV}"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
3 years ago
|
DEPEND="app-eselect/eselect-gradle"
|
||
4 years ago
|
BDEPEND="app-arch/unzip"
|
||
3 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
>=virtual/jre-1.8:*
|
||
|
"
|
||
4 years ago
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
3 years ago
|
src_compile() {
|
||
|
:
|
||
|
}
|
||
|
|
||
4 years ago
|
src_install() {
|
||
4 years ago
|
local gradle_dir="/usr/share/${PN}-${SLOT}"
|
||
4 years ago
|
|
||
3 years ago
|
if use source; then
|
||
|
java-pkg_dosrc src
|
||
|
fi
|
||
4 years ago
|
|
||
|
docinto html
|
||
|
dodoc -r docs/release-notes.html
|
||
3 years ago
|
if use doc; then
|
||
4 years ago
|
dodoc -r docs/{dsl,userguide}
|
||
|
java-pkg_dojavadoc docs/javadoc
|
||
|
fi
|
||
|
|
||
3 years ago
|
insinto "${gradle_dir}"
|
||
|
doins -r bin/ lib/
|
||
|
fperms 755 "${gradle_dir}/bin/gradle"
|
||
|
dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
eselect gradle update ifunset
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
eselect gradle update ifunset
|
||
4 years ago
|
}
|