A development tool to help programmers write Java code that adheres to a coding standard. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 17105 [details] ebuild for checkstyle 3.1 Would like feedback from someone who wrote similar ebuilds. I haven't written many, and would like all the advice anyone can give.
Created attachment 17106 [details] ebuild for checkstyle 3.1 Would like feedback from someone who wrote similar ebuilds. I haven't written many, and would like all the advice anyone can give.
Created attachment 17130 [details] ebuild for checkstyle 3.1 Sorry about the double-post earlier. I got a server error and didn't think it went through. I updated the ebuild to depend on libraries that are in portage, but are also included with checkstyle, and then not installing the ones that come with checkstyle.
Created attachment 17302 [details] ebuild for checkstyle 3.1 Last one, I swear! All I changed was added the sample check files to be installed. I realized that I needed those and so would most people.
Latest 3.x version is 3.2. Bumping the version is all that is required to get it to build. I don't think checkstyle 3.1 works with the newest version of regexp, but I'm not sure of any exact version dependencies. I have the latest stable version of all the dependencies, and it works fine with 3.2.
Created attachment 25748 [details] checkstyle-3.3 ebuild Here is one for the latest checkstyle-3.3. I added moving the contrib directory so that people using ant and the transforms still have a convenient way to get to the stylesheets. I also bumped the jdk requirement because the checkstyle website claims that the ant task requires a 1.4 jdk for JAXP. I initially had trouble getting this to work according to the instructions on the website, but it turns out that there's are wrong. They recommend not having checkstyle on the classpath. This isn't true for the src build. antlr needs checkstyle on the classpath. Should we inform the user of this somehow after emerging checkstyle? Because it's very easy to think the build is faulty because there aren't many documented solutions. (I've submitted a bug to checkstyle.sf.net about it)
Created attachment 25749 [details] checkstyle-3.3 diff from checkstyle-3.1 ebuild Here's a diff with a few more changes. I tried to fix the header, but repoman still complains about it and a few of the dependencies. I'm not sure how to fix them honestly... I also removed every arch keyword except ~x86. I only have x86 and this is the only place that I tested it.
In portage now, thanks ;)