62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
EGIT_REPO_URI="https://github.com/OrnitheMC/nester.git"
|
|
EGIT_COMMIT="2daf5b4e26ccf503594850b3990c5a5867efff83"
|
|
#EGIT_COMMIT="9a94ba6b5e9625c244236ae79c6560d9cdf7abba"
|
|
|
|
inherit git-r3 java-pkg-2
|
|
#inherit git-r3 java-utils-2
|
|
|
|
DESCRIPTION="A tool that puts nested classes back where they belong."
|
|
HOMEPAGE="https://github.com/OrnitheMC/nester"
|
|
SRC_URI="https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.2/asm-9.2.jar
|
|
https://repo.maven.apache.org/maven2/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar
|
|
https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
|
|
https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
|
|
https://maven.ornithemc.net/releases/net/ornithemc/tiny-remapper/0.8.4/tiny-remapper-0.8.4.jar"
|
|
|
|
JAR_FILES="asm-9.2.jar
|
|
asm-util-9.2.jar
|
|
asm-commons-9.2.jar
|
|
asm-tree-9.2.jar
|
|
tiny-remapper-0.8.4.jar"
|
|
|
|
PATCHES="${FILESDIR}/gradle.patch"
|
|
|
|
LICENSE="LGPL-2.1-only"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND=">=virtual/jre-21:0"
|
|
DEPEND="${RDEPEND}
|
|
>=virtual/jdk-21:0
|
|
dev-java/gradle-bin:*"
|
|
|
|
src_unpack() {
|
|
git-r3_fetch
|
|
git-r3_checkout
|
|
|
|
mkdir "${S}/libs" || die "(1) mkdir failed"
|
|
|
|
for jar in ${JAR_FILES}; do
|
|
cp "${DISTDIR}/${jar}" "${S}/libs"
|
|
done
|
|
}
|
|
|
|
src_prepare() {
|
|
default
|
|
java-pkg-2_src_prepare
|
|
}
|
|
|
|
src_compile() {
|
|
GRADLE="gradle --gradle-user-home .gradle --console rich --no-daemon --offline"
|
|
${GRADLE} jar
|
|
}
|
|
|
|
src_install() {
|
|
java-pkg_newjar "build/libs/${PF}.jar"
|
|
java-pkg_dolauncher ${PN} --jar ${PN}.jar
|
|
}
|