diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-06-29 17:39:27 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-06-29 17:39:27 +0000 |
commit | 0900fec729974c11df2059e906557cc42cd1b49b (patch) | |
tree | aae7f2e09ea2fcd3899e43646a46730c94b7a246 /dev-util/checkstyle | |
parent | . (diff) | |
download | historical-0900fec729974c11df2059e906557cc42cd1b49b.tar.gz historical-0900fec729974c11df2059e906557cc42cd1b49b.tar.bz2 historical-0900fec729974c11df2059e906557cc42cd1b49b.zip |
version bump + enable ant task, thanks too Christopher G. Stach II <cgs@ldsys.net> in 93239
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'dev-util/checkstyle')
-rw-r--r-- | dev-util/checkstyle/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/checkstyle/Manifest | 12 | ||||
-rw-r--r-- | dev-util/checkstyle/checkstyle-3.5.ebuild | 67 | ||||
-rw-r--r-- | dev-util/checkstyle/files/digest-checkstyle-3.5 | 1 |
4 files changed, 82 insertions, 6 deletions
diff --git a/dev-util/checkstyle/ChangeLog b/dev-util/checkstyle/ChangeLog index 2e1396e7c2f4..62a064e80249 100644 --- a/dev-util/checkstyle/ChangeLog +++ b/dev-util/checkstyle/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/checkstyle # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/ChangeLog,v 1.13 2005/05/14 16:10:54 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/ChangeLog,v 1.14 2005/06/29 17:39:27 axxo Exp $ + +*checkstyle-3.5 (29 Jun 2005) + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> +checkstyle-3.5.ebuild: + version bump + enable ant task, thanks too Christopher G. Stach II + <cgs@ldsys.net> in 93239 *checkstyle-3.4-r4 (14 May 2005) diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest index a9f93b3afbff..df7412cecf22 100644 --- a/dev-util/checkstyle/Manifest +++ b/dev-util/checkstyle/Manifest @@ -1,14 +1,16 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 454b78058c6e1087707fb1fee8ae8bfc ChangeLog 2291 +MD5 c12084de68604616a3369c233569d3a7 checkstyle-3.5.ebuild 2142 +MD5 f2928639e4a802b8de0c3b0c3367cbe8 ChangeLog 2487 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 MD5 ea373f431692187a1d73f569c261c35e checkstyle-3.4-r4.ebuild 2056 +MD5 33db541757525575ba7e6d18913875f1 files/digest-checkstyle-3.5 71 MD5 ee7955e25b09c5307250330d16910077 files/digest-checkstyle-3.4-r4 71 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) +Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFChiMh06ebR+OMO78RAjCJAJ9pGk0Em4OMJ0GosNYc9larAJ/hSgCgkLvU -L2Z8JdgCv2kJBUJQxuH44nQ= -=LATx +iD8DBQFCwtzp/rLF9B432nYRAvggAJ97+N2nU5WE6qwGmuUPKNQkPO3mnACgvWga +8hr80pJzXFpiXtdRczWWQqc= +=GrU/ -----END PGP SIGNATURE----- diff --git a/dev-util/checkstyle/checkstyle-3.5.ebuild b/dev-util/checkstyle/checkstyle-3.5.ebuild new file mode 100644 index 000000000000..d80faf44dde1 --- /dev/null +++ b/dev-util/checkstyle/checkstyle-3.5.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/checkstyle/checkstyle-3.5.ebuild,v 1.1 2005/06/29 17:39:27 axxo Exp $ + +inherit java-pkg + +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/${PN}-src-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc jikes" +RESTRICT="primaryuri" + +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + jikes? ( dev-java/jikes )" +RDEPEND=">=virtual/jre-1.3 + dev-java/antlr + =dev-java/commons-beanutils-1.6* + =dev-java/commons-cli-1* + dev-java/commons-collections + dev-java/commons-logging + =dev-java/jakarta-regexp-1.3*" +S=${WORKDIR}/${PN}-src-${PV} + +src_unpack() { + unpack ${A} + cd ${S}/lib + rm *.jar + java-pkg_jar-from antlr + java-pkg_jar-from commons-beanutils-1.6 + java-pkg_jar-from commons-cli-1 + java-pkg_jar-from commons-collections + java-pkg_jar-from commons-logging + java-pkg_jar-from jakarta-regexp-1.3 jakarta-regexp.jar jakarta-regexp-1.3.jar +} + +src_compile() { + local antflags="compile.checkstyle" + use doc && antflags="${antflags} javadoc" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "ant :(" +} + +src_install() { + insinto /usr/share/checkstyle + jar cfm ${PN}.jar config/manifest.mf -C target/checkstyle . + java-pkg_dojar ${PN}.jar + use doc && java-pkg_dohtml -r docs/* + dodoc README RIGHTS.antlr TODO + mv docs/checkstyle_checks.xml ${D}/usr/share/checkstyle/checkstyle_checks.xml + mv docs/sun_checks.xml ${D}/usr/share/checkstyle/sun_checks.xml + mv contrib ${D}/usr/share/checkstyle + + echo '#!/bin/bash' > checkstyle + echo '' >> checkstyle + echo '`java-config -J` -cp `java-config -p checkstyle,antlr,commons-beanutils-1.6,commons-cli-1,commons-collections,commons-logging,jakarta-regexp-1.3` com.puppycrawl.tools.checkstyle.Main "$@"' >> checkstyle + + insinto /usr + dobin checkstyle + + dodir /usr/share/ant-core/lib + dosym /usr/share/${PN}/lib/${PN}.jar /usr/share/ant-core/lib/ +} diff --git a/dev-util/checkstyle/files/digest-checkstyle-3.5 b/dev-util/checkstyle/files/digest-checkstyle-3.5 new file mode 100644 index 000000000000..7868b2be8029 --- /dev/null +++ b/dev-util/checkstyle/files/digest-checkstyle-3.5 @@ -0,0 +1 @@ +MD5 868736a6617d58bbc4efcf85984423fd checkstyle-src-3.5.tar.gz 1962069 |