# $Id: Portfile 75972 2011-02-14 02:43:17Z blair@macports.org $ PortSystem 1.0 name spring-framework31 set real_version 3.1.0 set full_version ${real_version}.M1 version 0.0.${real_version} categories java maintainers blair platforms darwin description Spring application framework for Java long_description Spring is a layered Java/J2EE application framework. homepage http://www.springsource.org/about distname spring-framework-${full_version}-with-docs master_sites http://s3.amazonaws.com/dist.springframework.org/milestone/SPR checksums md5 ca933fbaf5a6d722565a338b7dbb2790 \ sha1 8ac30fe16974b78073b648f4b60b7da5ac3a822b \ rmd160 d9a4292056db3dbb99f36762c05357c51c1d116d use_zip yes conflicts spring-framework30 depends_lib bin:java:kaffe use_configure no worksrcdir spring-framework-${full_version} build.cmd true destroot { # Ensure needed directories xinstall -m 755 -d ${destroot}${prefix}/share \ ${destroot}${prefix}/share/doc/${name} \ ${destroot}${prefix}/share/examples # Install the framework file copy ${worksrcpath}/dist ${destroot}${prefix}/share/java foreach f [glob ${destroot}${prefix}/share/java/*.jar] { file rename ${f} [strsed ${f} s/-${full_version}//] } # Install the docs foreach f {changelog.txt license.txt notice.txt readme.txt} { file copy ${worksrcpath}/${f} \ ${destroot}${prefix}/share/doc/${name}/${f} } file copy ${worksrcpath}/docs/javadoc-api \ ${destroot}${prefix}/share/doc/${name}/api file copy ${worksrcpath}/docs/spring-framework-reference \ ${destroot}${prefix}/share/doc/${name}/reference }