dev-java/google-java-format: new package, add 1.22.0

Signed-off-by: oatiz <iamoatiz@gmail.com>
This commit is contained in:
oatiz authored and 梁永祥 committed 2024-07-05 22:35:29 +08:00
1 parent 2802d2ba59
commit c0588ebe36
4 files changed
+47

No files matched your search

@@ -0,0 +1,24 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Reformats Java source code to comply with Google Java Style."
HOMEPAGE="https://github.com/google/google-java-format"
SRC_URI="https://github.com/google/google-java-format/releases/download/v${PV}/${P}-all-deps.jar"
S="${WORKDIR}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
RDEPEND="virtual/jdk:17"
DEPEND="${RDEPEND}"
src_install() {
insinto "/usr/share/${PN}"
newins "${DISTDIR}/${P}-all-deps.jar" "google-java-format-all-deps.jar"
dobin "${FILESDIR}/${PN}"
}