public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/checkstyle/
Date: Mon, 21 Nov 2016 23:10:50 +0000 (UTC)	[thread overview]
Message-ID: <1479769371.384042d1d843768f05b3b50852d46e83742ff65f.chewi@gentoo> (raw)

commit:     384042d1d843768f05b3b50852d46e83742ff65f
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 21 23:02:51 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 23:02:51 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=384042d1

dev-util/checkstyle: Version bump to 7.2, EAPI bump to 6

Package-Manager: portage-2.3.2

 dev-util/checkstyle/Manifest              |  1 +
 dev-util/checkstyle/checkstyle-7.2.ebuild | 67 +++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest
index 0e0d068..26db3d4 100644
--- a/dev-util/checkstyle/Manifest
+++ b/dev-util/checkstyle/Manifest
@@ -1,2 +1,3 @@
 DIST checkstyle-5.4-maven-build.xml.tar.bz2 3236 SHA256 4b286857c265b765fcf71deb8684cdd1bb7d1264fd0ee45a924d91031652d590 SHA512 23cfcb519984fd9d7a59d8534c712d69c02aabc28e9f6eb7abff948728361cc208bf84d19f30dc81ae8870f6b361ca0382be60c4ab7b7b0298e59a175197138e WHIRLPOOL 32992aa00d228be5f0819e856f13752eba9694cf46e98b3c9229c5ef45a7c37c1c6367a1457487ec5ab63f9d808b1470727f44e5b7d194961520a34b55253f72
 DIST checkstyle-5.5-src.tar.gz 744584 SHA256 0de571f2769b4ded9c681c9b1e51c7f783aca7fb7f47467f1f39c38bd1717aa1 SHA512 2327e14fc6fe9516d9518e4cbccb2e0f41e50bf891b7a3655dd29601b5eb3d2895d7df841f394d08d7dfac7ab774a01e22f98226259dc28a210d478699ea5c9a WHIRLPOOL e29303b656090a2f617850d2edb7f3f41db912399d334d6d8a7f7c50a96c7cfdb8134e46b65cec762ce565b1709de98a870880cdd8e18af03f594b9a2141609a
+DIST checkstyle-7.2.tar.gz 3359817 SHA256 8f5c262a3f2e1194b60d6b837b8eefbe6fe63fba57be4acb20f0709919870523 SHA512 ee99d96d99a3f75097297cfda46e3647e57213bcb8b78098251a21c3fe0b4bb774393848d444f721d4bea83173581c89377a9d250157d6e6a225239da81d955f WHIRLPOOL 1da3e380bd3842ee6fda3210225e62f5e179d0232eabffaff0ba9347263f564db08750b84e6736184b4f56cc63b30aa8dba52d6e5412f5bdcd0845f1f770c5f5

diff --git a/dev-util/checkstyle/checkstyle-7.2.ebuild b/dev-util/checkstyle/checkstyle-7.2.ebuild
new file mode 100644
index 00000000..083d43d
--- /dev/null
+++ b/dev-util/checkstyle/checkstyle-7.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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 ~x86-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.3:1
+	dev-java/commons-logging:0
+	dev-java/guava:20
+"
+
+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
+}


             reply	other threads:[~2016-11-21 23:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-21 23:10 James Le Cuirot [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
2021-12-09  8:17 Miroslav Šulc
2017-09-01 20:13 James Le Cuirot
2017-09-01 20:13 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=1479769371.384042d1d843768f05b3b50852d46e83742ff65f.chewi@gentoo \
    --to=chewi@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