summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-11-21 23:02:51 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-11-21 23:02:51 +0000
commit384042d1d843768f05b3b50852d46e83742ff65f (patch)
tree2c88725a6a1e5efe1fc27ad5de1047b01bb7b336 /dev-util/checkstyle
parentdev-java/commons-cli: Bump to 1.3.1, EAPI bump to 6 (diff)
downloadgentoo-384042d1d843768f05b3b50852d46e83742ff65f.tar.gz
gentoo-384042d1d843768f05b3b50852d46e83742ff65f.tar.bz2
gentoo-384042d1d843768f05b3b50852d46e83742ff65f.zip
dev-util/checkstyle: Version bump to 7.2, EAPI bump to 6
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-util/checkstyle')
-rw-r--r--dev-util/checkstyle/Manifest1
-rw-r--r--dev-util/checkstyle/checkstyle-7.2.ebuild67
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest
index 0e0d068feaa3..26db3d461e39 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 000000000000..083d43d16172
--- /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
+}