source: trunk/dports/java/checkstyle/Portfile

Last change on this file was 96510, checked in by raimue@…, 5 years ago

java/checkstyle:
Port abandoned, #33337

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 96510 2012-08-12 20:26:11Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    checkstyle
6version                 4.3
7categories              java lang
8platforms               darwin
9maintainers             nomaintainer
10description             CheckStyle is a Java source code analyzer
11long_description        Checkstyle is a Java source code analyzer. \
12                        It automates the process of checking Java code, \
13                        and can be made to support almost any coding \
14                        standard.  It can also find class design problems, \
15                        duplicate code, or bug patterns like \
16                        double checked locking.
17
18homepage                http://checkstyle.sourceforge.net/
19master_sites    sourceforge
20distname                ${name}-src-${version}
21checksums               md5 b1e6288526e9258947b9eeef69d08e6b
22use_zip                 yes
23
24depends_build   bin:ant:apache-ant
25depends_lib             bin:java:kaffe
26depends_run             port:junit
27
28worksrcdir              ${name}-src-${version}
29
30use_configure   no
31
32build.cmd               ant
33build.target    build.bindist
34build.dir               ${worksrcpath}
35build.env               CLASSPATH=${prefix}/share/java/junit.jar
36
37destroot        {
38        xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin
39        reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/${name}
40        xinstall -m 755 -d ${destroot}${prefix}/share/java \
41                ${destroot}${prefix}/share/doc
42        xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-all-${version}.jar \
43                ${destroot}${prefix}/share/java/${name}.jar
44        xinstall -m 644 ${worksrcpath}/target/dist/${name}-${version}/${name}-optional-${version}.jar \
45                ${destroot}${prefix}/share/java/${name}-optional.jar
46        file copy ${worksrcpath}/target/docs \
47                ${destroot}${prefix}/share/doc/${name}
48        file mkdir ${destroot}${prefix}/share/${name}/
49        foreach xsl [glob -nocomplain ${worksrcpath}/contrib/*.xsl] {
50          file copy ${xsl} ${destroot}${prefix}/share/${name}/
51        }
52}
Note: See TracBrowser for help on using the repository browser.