From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/checkstyle/
Date: Thu, 9 Dec 2021 08:17:45 +0000 (UTC) [thread overview]
Message-ID: <1639037844.dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47.fordfrog@gentoo> (raw)
commit: dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Dec 6 10:23:24 2021 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Dec 9 08:17:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc590da2
dev-util/checkstyle: EAPI 8, fix missing dependency
Closes: https://bugs.gentoo.org/791283
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/23196
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-util/checkstyle/checkstyle-7.2-r1.ebuild | 67 ++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/dev-util/checkstyle/checkstyle-7.2-r1.ebuild b/dev-util/checkstyle/checkstyle-7.2-r1.ebuild
new file mode 100644
index 000000000000..5411c86efbbd
--- /dev/null
+++ b/dev-util/checkstyle/checkstyle-7.2-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Development tool to help write Java code that adheres to a coding standard"
+HOMEPAGE="https://github.com/checkstyle/checkstyle"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+CP_DEPEND="
+ dev-java/ant-core:0
+ >=dev-java/antlr-2.7.7-r7:0
+ dev-java/antlr:4
+ dev-java/commons-beanutils:1.7
+ dev-java/commons-cli:1
+ dev-java/commons-logging:0
+ dev-java/guava:20
+ dev-java/jaxb-api:2
+"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-1.8:*"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="${S}/src/main/java"
+
+src_configure() {
+ JAVA_GENTOO_CLASSPATH_EXTRA=$(java-config --tools)
+}
+
+src_compile() {
+ local PKG
+
+ PKG=com/puppycrawl/tools/checkstyle/grammars
+ cd "${S}"/src/main/resources/${PKG} || die
+ antlr -o "${JAVA_SRC_DIR}"/${PKG} java.g || die
+
+ PKG+=/javadoc
+ cd "${S}"/src/main/resources/${PKG} || die
+ antlr4 -o "${JAVA_SRC_DIR}"/${PKG} -package ${PKG//\//.} JavadocLexer.g4 || die
+ antlr4 -o "${JAVA_SRC_DIR}"/${PKG} -package ${PKG//\//.} JavadocParser.g4 || die
+
+ cd "${S}" || die
+ java-pkg-simple_src_compile
+ java-pkg_addres ${PN}.jar src/main/resources
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.md
+
+ java-pkg_dolauncher ${PN} \
+ --main com.puppycrawl.tools.checkstyle.Main
+
+ java-pkg_dolauncher ${PN}-gui \
+ --main com.puppycrawl.tools.checkstyle.gui.Main
+}
next reply other threads:[~2021-12-09 8:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 8:17 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-02-25 8:11 [gentoo-commits] repo/gentoo:master commit in: dev-util/checkstyle/ Miroslav Šulc
2022-02-25 7:57 Agostino Sarubbo
2022-02-25 7:55 Agostino Sarubbo
2017-09-01 20:13 James Le Cuirot
2017-09-01 20:13 James Le Cuirot
2016-11-21 23:10 James Le Cuirot
2016-01-14 21:44 James Le Cuirot
2016-01-14 21:44 James Le Cuirot
2016-01-02 23:11 James Le Cuirot
2015-12-06 23:06 James Le Cuirot
2015-12-06 23:06 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1639037844.dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox