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

+1
View File
@@ -0,0 +1 @@
DIST google-java-format-1.22.0-all-deps.jar 3612615 BLAKE2B 3ee584e261daf50254056e58cd685377e7b9c45708e26fe38b72e4b0e2a19b2fe3504d60089de5c1b86d88f546d24a93db56a8e771d163982555473bf26cd8d4 SHA512 eaade1a5db4d4958cb052256fdd5bb25eb0b50e3b59282c4b754b776631916c1c49fc2b88e61f2a144f13c89b53a5806c956cebfc382deac42cc56c139f0f634
@@ -0,0 +1,10 @@
#!/bin/bash
exec java \
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
-jar '/usr/share/google-java-format/google-java-format-all-deps.jar' "$@"
@@ -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}"
}
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE
pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>lyraile</name>
<email>iamoatiz@gmail.com</email>
</maintainer>
<upstream>
<remote-id type="github">google/google-java-format</remote-id>
</upstream>
</pkgmetadata>