diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/checkstyle | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/checkstyle')
-rw-r--r-- | dev-util/checkstyle/Manifest | 3 | ||||
-rw-r--r-- | dev-util/checkstyle/checkstyle-7.2.ebuild | 66 | ||||
-rw-r--r-- | dev-util/checkstyle/metadata.xml | 12 |
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest new file mode 100644 index 000000000000..11f0daed07bf --- /dev/null +++ b/dev-util/checkstyle/Manifest @@ -0,0 +1,3 @@ +DIST checkstyle-7.2.tar.gz 3359817 BLAKE2B 45cb74f6d2ff49cc218537cb9b5f95764a61a506f3aad8e265c809a0fecf9da47e8902ccc3afc312cddf3260d763b9d98a7e148c9382ed4107931cd189841170 SHA512 ee99d96d99a3f75097297cfda46e3647e57213bcb8b78098251a21c3fe0b4bb774393848d444f721d4bea83173581c89377a9d250157d6e6a225239da81d955f +EBUILD checkstyle-7.2.ebuild 1600 BLAKE2B d61930952f75fa6b13c127d7aaca67093425cc906641561eab2a935da8802c271a05c3c9aaae79717b12a00383afb94955665553cb18174f6ba929f186b41078 SHA512 07c364b86aa8c6d4f0b6b228c777a8d1d62b3adb684b1dae0d78741d6729161493f1700c853bbc7e4546e31a1ec4bc97c0731a5d92b8b3258e7085df4ee2b8de +MISC metadata.xml 377 BLAKE2B babe8dd16a427da17ad7255b39076b80d2a12e8b9b8eaeaea1b3d9633135b0cb262ca6e935a69f2895d06e48bbcf2df007f434b6db83f6039bd255dc9a790e34 SHA512 1a335de522055af5d8ec2ecd498528a66802b1fbb34e6b4be5e333c77b4b096ec38d0b7a8e5af7162315b4e8c3a99242c9246255fdd153566e258b808d50492a diff --git a/dev-util/checkstyle/checkstyle-7.2.ebuild b/dev-util/checkstyle/checkstyle-7.2.ebuild new file mode 100644 index 000000000000..0036872cb55c --- /dev/null +++ b/dev-util/checkstyle/checkstyle-7.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} diff --git a/dev-util/checkstyle/metadata.xml b/dev-util/checkstyle/metadata.xml new file mode 100644 index 000000000000..6c0addb7ff01 --- /dev/null +++ b/dev-util/checkstyle/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">checkstyle</remote-id> + <remote-id type="github">checkstyle/checkstyle</remote-id> + </upstream> +</pkgmetadata> |