source: trunk/dports/java/spring-framework30/Portfile @ 83079

Last change on this file since 83079 was 83079, checked in by blair@…, 8 years ago

spring-framework30: new upstream 3.0.6 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 83079 2011-08-25 16:49:03Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework30
6version                 3.0.6
7set full_version        ${version}.RELEASE
8
9categories              java
10maintainers             blair
11platforms               darwin
12
13description             Spring application framework for Java
14long_description        Spring is a layered Java/J2EE application framework.
15homepage                http://www.springsource.org/about
16
17distname                spring-framework-${full_version}-with-docs
18master_sites            http://s3.amazonaws.com/dist.springframework.org/release/SPR
19checksums               md5 f075a216b297bbf1e245c41deac3656a \
20                        sha1 5ec49578ed6e8500b6855f83885643c2ee739f49 \
21                        rmd160 1cd35226551b0794496a2d5f81ac25544bb23da4
22
23use_zip                 yes
24
25conflicts               spring-framework31
26depends_lib             bin:java:kaffe
27
28use_configure           no
29
30worksrcdir              spring-framework-${full_version}
31
32build.cmd               true
33
34destroot {
35        # Ensure needed directories
36        xinstall -m 755 -d ${destroot}${prefix}/share \
37                ${destroot}${prefix}/share/doc/${name} \
38                ${destroot}${prefix}/share/examples
39
40        # Install the framework
41        file copy ${worksrcpath}/dist ${destroot}${prefix}/share/java
42        foreach f [glob ${destroot}${prefix}/share/java/*.jar] {
43                file rename ${f} [strsed ${f} s/-${full_version}//]
44        }
45
46        # Install the docs
47        foreach f {changelog.txt license.txt notice.txt readme.txt} {
48                file copy ${worksrcpath}/${f} \
49                        ${destroot}${prefix}/share/doc/${name}/${f}
50        }
51        file copy ${worksrcpath}/docs/javadoc-api \
52                ${destroot}${prefix}/share/doc/${name}/api
53        file copy ${worksrcpath}/docs/spring-framework-reference \
54                ${destroot}${prefix}/share/doc/${name}/reference
55}
Note: See TracBrowser for help on using the repository browser.