# $Id: Portfile 83079 2011-08-25 16:49:03Z blair@macports.org $ PortSystem 1.0 name spring-framework30 version 3.0.6 set full_version ${version}.RELEASE 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/release/SPR checksums md5 f075a216b297bbf1e245c41deac3656a \ sha1 5ec49578ed6e8500b6855f83885643c2ee739f49 \ rmd160 1cd35226551b0794496a2d5f81ac25544bb23da4 use_zip yes conflicts spring-framework31 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 }