diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/checkstyle | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/checkstyle')
-rw-r--r-- | dev-util/checkstyle/Manifest | 4 | ||||
-rw-r--r-- | dev-util/checkstyle/checkstyle-4.4.ebuild | 96 | ||||
-rw-r--r-- | dev-util/checkstyle/checkstyle-5.4.ebuild | 83 | ||||
-rw-r--r-- | dev-util/checkstyle/checkstyle-5.5.ebuild | 86 | ||||
-rw-r--r-- | dev-util/checkstyle/metadata.xml | 8 |
5 files changed, 277 insertions, 0 deletions
diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest new file mode 100644 index 000000000000..1480612111db --- /dev/null +++ b/dev-util/checkstyle/Manifest @@ -0,0 +1,4 @@ +DIST checkstyle-5.4-maven-build.xml.tar.bz2 3236 SHA256 4b286857c265b765fcf71deb8684cdd1bb7d1264fd0ee45a924d91031652d590 SHA512 23cfcb519984fd9d7a59d8534c712d69c02aabc28e9f6eb7abff948728361cc208bf84d19f30dc81ae8870f6b361ca0382be60c4ab7b7b0298e59a175197138e WHIRLPOOL 32992aa00d228be5f0819e856f13752eba9694cf46e98b3c9229c5ef45a7c37c1c6367a1457487ec5ab63f9d808b1470727f44e5b7d194961520a34b55253f72 +DIST checkstyle-5.4-src.tar.gz 731222 SHA256 2c8b04a914a7835eaa355c058f7a4c52af308f8190d07fb3cbf9943cf751b8a8 SHA512 4f20fe8c48ea638c3390b07d94a54180663d939dce455b492ae19397ddf81e617f36e9aa4700e88c5081b7369a0e03d0d59bf2ee988325f15565fd66faadb5e6 WHIRLPOOL 5cd60912a4acf125c5a44ba35ed60d4e5acd7e48dfcd084195dbe30910d37f42b272f670c0e7f25406fdd95f9befd5c5cd42a27bfd2a7e62c7faa07b2bf612af +DIST checkstyle-5.5-src.tar.gz 744584 SHA256 0de571f2769b4ded9c681c9b1e51c7f783aca7fb7f47467f1f39c38bd1717aa1 SHA512 2327e14fc6fe9516d9518e4cbccb2e0f41e50bf891b7a3655dd29601b5eb3d2895d7df841f394d08d7dfac7ab774a01e22f98226259dc28a210d478699ea5c9a WHIRLPOOL e29303b656090a2f617850d2edb7f3f41db912399d334d6d8a7f7c50a96c7cfdb8134e46b65cec762ce565b1709de98a870880cdd8e18af03f594b9a2141609a +DIST checkstyle-src-4.4.tar.gz 2567907 SHA256 7081074124e2dde062b06cbb489a1338e04623b986094e9b63f31c50be2f9f38 SHA512 4cce16b70e901bdcee0d3ac864f51cef54965d37223a11e59b7b9d34603b404da0cc8207431481feb5f0e649b5f55a5ef05aebfceeb37f938246f8722867174d WHIRLPOOL ae3b1f3161caac22235d20b018b035b4bf1e042f5fb930b620b6eae8692a1825fe382649a3d360794a8cb3d48135ea1e3e8597865ed10c0e868d9440e9287240 diff --git a/dev-util/checkstyle/checkstyle-4.4.ebuild b/dev-util/checkstyle/checkstyle-4.4.ebuild new file mode 100644 index 000000000000..08c1e5018608 --- /dev/null +++ b/dev-util/checkstyle/checkstyle-4.4.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" +WANT_ANT_TASKS="ant-antlr ant-nodeps" +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-src-${PV}" +DESCRIPTION="A development tool to help programmers write Java code that adheres to a coding standard" +HOMEPAGE="http://checkstyle.sourceforge.net" +SRC_URI="mirror://sourceforge/checkstyle/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +COMMON_DEP=">=dev-java/antlr-2.7.7:0[java] + dev-java/commons-beanutils:1.7 + dev-java/commons-cli:1 + dev-java/commons-logging:0 + dev-java/commons-collections:0" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +DEPEND="!test? ( >=virtual/jdk-1.4 ) + test? ( >=virtual/jdk-1.5 ) + ${COMMON_DEP} + test? ( + dev-java/ant-junit + dev-java/ant-trax + dev-java/emma:0 + )" + +S="${WORKDIR}/${MY_P}" + +# So that we can generate 1.4 bytecode for dist +# and 1.5 for tests +JAVA_PKG_BSFIX="off" + +java_prepare() { + cd "${S}/lib" + rm -v *.jar || die + java-pkg_jar-from antlr + java-pkg_jar-from commons-beanutils-1.7 + java-pkg_jar-from commons-cli-1 + java-pkg_jar-from commons-logging + java-pkg_jar-from commons-collections +} + +src_compile() { + eant compile.checkstyle $(use_doc) + jar cfm ${PN}.jar config/manifest.mf -C target/checkstyle . || die "jar failed" +} + +src_test() { + java-pkg_jar-from --build-only --into lib junit + java-pkg_jar-from --build-only --into lib emma + ANT_TASKS="emma ant-nodeps ant-junit ant-trax" eant run.tests +} + +src_install() { + java-pkg_dojar ${PN}.jar + + dodoc README RIGHTS.antlr || die + use doc && java-pkg_dojavadoc target/docs/api + use source && java-pkg_dosrc src/${PN}/com + + # Install check files + insinto /usr/share/checkstyle/checks + for file in *.xml; do + [[ "${file}" != build.xml ]] && doins ${file} + done + + # Install extra files + insinto /usr/share/checkstyle/contrib + doins -r contrib/* + + java-pkg_dolauncher ${PN} \ + --main com.puppycrawl.tools.checkstyle.Main + + java-pkg_dolauncher ${PN}-gui \ + --main com.puppycrawl.tools.checkstyle.gui.Main + + # Make the ant tasks available to ant + java-pkg_register-ant-task +} + +pkg_postinst() { + elog "Checkstyle is located at /usr/bin/checkstyle" + elog "Check files are located in /usr/share/checkstyle/checks/" +} diff --git a/dev-util/checkstyle/checkstyle-5.4.ebuild b/dev-util/checkstyle/checkstyle-5.4.ebuild new file mode 100644 index 000000000000..6f573a054548 --- /dev/null +++ b/dev-util/checkstyle/checkstyle-5.4.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A development tool to help programmers write Java code that adheres to a coding standard" +HOMEPAGE="http://checkstyle.sourceforge.net" +SRC_URI="mirror://sourceforge/checkstyle/${P}-src.tar.gz + http://dev.gentoo.org/~sera/distfiles/${P}-maven-build.xml.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP=" + dev-java/ant-core:0 + >=dev-java/antlr-2.7.7:0[java] + dev-java/commons-beanutils:1.7 + dev-java/commons-cli:1 + dev-java/commons-logging:0 + dev-java/guava:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.5" +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.5 + dev-java/ant-nodeps:0 + test? ( + dev-java/ant-junit + dev-java/junit:4 + )" + +java_prepare() { + EPATCH_OPTS="-p1" epatch "${WORKDIR}"/maven-build.xml.patch + + # maven ant:ant can't handle it. + pushd src/checkstyle/com/puppycrawl/tools/checkstyle/grammars > /dev/null || die + java -cp $(java-pkg_getjars antlr) antlr.Tool java.g || die + popd > /dev/null +} + +JAVA_PKG_BSFIX_NAME="maven-build.xml" +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc" +JAVA_ANT_ENCODING="iso-8859-1" + +EANT_BUILD_XML="maven-build.xml" +EANT_GENTOO_CLASSPATH="ant-core,antlr,commons-beanutils-1.7,commons-cli-1,commons-logging,guava" +EANT_BUILD_TARGET="package" +EANT_ANT_TASKS="ant-nodeps" +EANT_NEEDS_TOOLS="true" + +src_test() { + EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar + + dodoc README + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/${PN}/com + + # Install check files + insinto /usr/share/checkstyle/checks + doins suppressions.xml sun_checks.xml import-control.xml checkstyle_checks.xml + + # Install extra files + insinto /usr/share/checkstyle/contrib + doins -r contrib/* + + 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/checkstyle-5.5.ebuild b/dev-util/checkstyle/checkstyle-5.5.ebuild new file mode 100644 index 000000000000..6c5161721912 --- /dev/null +++ b/dev-util/checkstyle/checkstyle-5.5.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A development tool to help programmers write Java code that adheres to a coding standard" +HOMEPAGE="http://checkstyle.sourceforge.net" +SRC_URI="mirror://sourceforge/checkstyle/${P}-src.tar.gz + http://dev.gentoo.org/~sera/distfiles/${PN}-5.4-maven-build.xml.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +COMMON_DEP=" + dev-java/ant-core:0 + >=dev-java/antlr-2.7.7:0[java] + dev-java/commons-beanutils:1.7 + dev-java/commons-cli:1 + dev-java/commons-logging:0 + dev-java/guava:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.5" +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.5 + dev-java/ant-nodeps:0 + test? ( + dev-java/ant-junit + dev-java/junit:4 + )" + +java_prepare() { + cp ../${PN}-5.4/maven-build.xml . || die + echo "maven.build.finalName=${P}" > maven-build.properties || die + + epatch "${WORKDIR}"/maven-build.xml.patch + + # maven ant:ant can't handle it. + pushd src/checkstyle/com/puppycrawl/tools/checkstyle/grammars > /dev/null || die + java -cp $(java-pkg_getjars antlr) antlr.Tool java.g || die + popd > /dev/null +} + +JAVA_PKG_BSFIX_NAME="maven-build.xml" +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc" +JAVA_ANT_ENCODING="iso-8859-1" + +EANT_BUILD_XML="maven-build.xml" +EANT_GENTOO_CLASSPATH="ant-core,antlr,commons-beanutils-1.7,commons-cli-1,commons-logging,guava" +EANT_BUILD_TARGET="package" +EANT_ANT_TASKS="ant-nodeps" +EANT_NEEDS_TOOLS="true" + +src_test() { + EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar + + dodoc README + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/${PN}/com + + # Install check files + insinto /usr/share/checkstyle/checks + doins suppressions.xml sun_checks.xml import-control.xml checkstyle_checks.xml + + # Install extra files + insinto /usr/share/checkstyle/contrib + doins -r contrib/* + + 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..d62c88bb40f0 --- /dev/null +++ b/dev-util/checkstyle/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="sourceforge">checkstyle</remote-id> + </upstream> +</pkgmetadata> |