1 | # This is a shell archive. Save it in a file, remove anything before |
---|
2 | # this line, and then unpack it by entering "sh file". Note, it may |
---|
3 | # create directories; files and directories will be owned by you and |
---|
4 | # have default permissions. |
---|
5 | # |
---|
6 | # This archive contains: |
---|
7 | # |
---|
8 | # Portfile |
---|
9 | # files/checkstyle |
---|
10 | # |
---|
11 | echo x - Portfile |
---|
12 | sed 's/^X//' >Portfile << 'END-of-Portfile' |
---|
13 | X# $Id$ |
---|
14 | X |
---|
15 | XPortSystem 1.0 |
---|
16 | X |
---|
17 | Xname checkstyle |
---|
18 | Xversion 3.5 |
---|
19 | Xcategories java lang |
---|
20 | Xplatforms darwin |
---|
21 | Xmaintainers dglo@icecube.wisc.edu |
---|
22 | Xdescription CheckStyle is a Java source code analyzer |
---|
23 | Xlong_description Checkstyle is a Java source code analyzer. \ |
---|
24 | X It automates the process of checking Java code, \ |
---|
25 | X and can be made to support almost any coding \ |
---|
26 | X standard. It can also find class design problems, \ |
---|
27 | X duplicate code, or bug patterns like \ |
---|
28 | X double checked locking. |
---|
29 | X |
---|
30 | Xhomepage http://checkstyle.sourceforge.net/ |
---|
31 | Xmaster_sites sourceforge |
---|
32 | Xdistname ${name}-src-${version} |
---|
33 | Xchecksums md5 1b4403f6c03b21c841431678dad92a85 |
---|
34 | Xuse_zip yes |
---|
35 | X |
---|
36 | Xdepends_build bin:ant:apache-ant |
---|
37 | Xdepends_lib bin:java:kaffe |
---|
38 | Xdepends_run lib:XXX:junit |
---|
39 | X |
---|
40 | Xworksrcdir ${name}-src-${version} |
---|
41 | X |
---|
42 | Xuse_configure no |
---|
43 | X |
---|
44 | Xbuild.cmd ant |
---|
45 | Xbuild.target build.bindist |
---|
46 | Xbuild.dir ${worksrcpath} |
---|
47 | Xbuild.env CLASSPATH=${prefix}/share/java/junit.jar |
---|
48 | X |
---|
49 | Xdestroot { |
---|
50 | X xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin |
---|
51 | X reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/${name} |
---|
52 | X xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
---|
53 | X ${destroot}${prefix}/share/doc |
---|
54 | X xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-all-${version}.jar \ |
---|
55 | X ${destroot}${prefix}/share/java/${name}.jar |
---|
56 | X xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-optional-${version}.jar \ |
---|
57 | X ${destroot}${prefix}/share/java/${name}-optional.jar |
---|
58 | X file copy ${worksrcpath}/target/docs \ |
---|
59 | X ${destroot}${prefix}/share/doc/${name} |
---|
60 | X file mkdir ${destroot}${prefix}/share/${name}/ |
---|
61 | X foreach xsl [glob -nocomplain ${worksrcpath}/contrib/*.xsl] { |
---|
62 | X file copy ${xsl} ${destroot}${prefix}/share/${name}/ |
---|
63 | X } |
---|
64 | X} |
---|
65 | END-of-Portfile |
---|
66 | echo x - files/checkstyle |
---|
67 | sed 's/^X//' >files/checkstyle << 'END-of-files/checkstyle' |
---|
68 | X#!/bin/sh |
---|
69 | XPREFIX=_PREFIX_ |
---|
70 | X java -classpath ${PREFIX}/share/java/checkstyle.jar:${PREFIX}/share/java/checkstyle-optional.jar com.puppycrawl.tools/checkstyle.Main "$@" |
---|
71 | Xfi |
---|
72 | X |
---|
73 | END-of-files/checkstyle |
---|
74 | exit |
---|
75 | |
---|