source: trunk/dports/java/spring-framework3/Portfile @ 50847

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

New port for Spring Framework 3.0.0.M3.

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