gentoo-ebuilds/dev-java/gradle-bin/gradle-bin-8.7.ebuild
Arthur Zamarin e095787852
dev-java/gradle-bin: dekeyword x86
After a message to gentoo-dev ML, and no reply from any user on x86,

we decided to dekeyword most Java packages from x86, and reverse

dependencies of them.

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-10-17 18:30:49 +03:00

61 lines
1.1 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
DEPEND="app-eselect/eselect-gradle"
BDEPEND="app-arch/unzip"
RDEPEND="
${DEPEND}
>=virtual/jre-1.8:*
"
S="${WORKDIR}/${MY_P}"
src_compile() {
:
}
src_install() {
local gradle_dir="/usr/share/${PN}-${SLOT}"
if use source; then
java-pkg_dosrc src
fi
docinto html
dodoc -r docs/release-notes.html
if use doc; then
dodoc -r docs/{dsl,userguide}
java-pkg_dojavadoc docs/javadoc
fi
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
}