From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C6775158086 for ; Thu, 9 Dec 2021 08:17:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CFAB2BC005; Thu, 9 Dec 2021 08:17:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 577262BC005 for ; Thu, 9 Dec 2021 08:17:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 290D334367E for ; Thu, 9 Dec 2021 08:17:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB6A5206 for ; Thu, 9 Dec 2021 08:17:45 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1639037844.dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/checkstyle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/checkstyle/checkstyle-7.2-r1.ebuild X-VCS-Directories: dev-util/checkstyle/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47 X-VCS-Branch: master Date: Thu, 9 Dec 2021 08:17:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2719245d-3cef-454d-8b26-e6683853b72e X-Archives-Hash: 84834be98048c8a4ced11c3e1f850f59 commit: dc590da2aa2c9f9d646f5cd1ad85bd9aaa009e47 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon Dec 6 10:23:24 2021 +0000 Commit: Miroslav Šulc gentoo 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 pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23196 Signed-off-by: Miroslav Šulc 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 +}