# $Id: Portfile 26575 2007-06-28 22:22:34Z blair@macports.org $ PortSystem 1.0 name spring-framework version 2.0.6 categories java maintainers jberry@macports.org openmaintainer@macports.org platforms darwin description Spring application framework for Java long_description Spring is a layered Java/J2EE application framework. homepage http://www.springframework.org/ distname ${name}-${version}-with-dependencies master_sites sourceforge:springframework checksums md5 fe0e687e49b1aa95381fa9aab89113b9 \ sha1 58848c219cbee97b666c698f3bcb5faead51fb94 \ rmd160 d4e7347c38367a65c4d715e72f58b2b4e227b4e0 use_zip yes depends_build bin:ant:apache-ant depends_lib bin:java:kaffe use_configure no worksrcdir ${name}-${version} build.cmd ant build.target alljars # This variant builds spring with debug information -- useful if # you're tracing into it in a debugger. variant debug { build.args-append -Ddebug=true } destroot { # Ensure needed directories xinstall -m 755 -d ${destroot}${prefix}/share/java \ ${destroot}${prefix}/share/doc \ ${destroot}${prefix}/share/examples # Install the framework file copy ${worksrcpath}/dist \ ${destroot}${prefix}/share/java/${name} # Add symlinks to jars foreach f [glob -tails -directory ${destroot}${prefix}/share/java ${name}/*.jar] { system "cd ${destroot}${prefix}/share/java && ln -s ${f}" } # Install the docs file copy ${worksrcpath}/docs \ ${destroot}${prefix}/share/doc/${name} # Install samples file copy ${worksrcpath}/samples \ ${destroot}${prefix}/share/examples/${name} } livecheck.check sourceforge livecheck.name springframework livecheck.distname springframework-2