source: trunk/dports/java/spring-framework/Portfile @ 50398

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

New upstream 2.5.6.SEC01 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 50398 2009-04-30 05:43:32Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework
6version                 2.5.6.SEC01
7
8categories              java
9maintainers             jberry openmaintainer
10platforms               darwin
11
12description             Spring application framework for Java
13long_description        Spring is a layered Java/J2EE application framework.
14homepage                http://www.springframework.org/
15
16distname                ${name}-${version}-with-dependencies
17master_sites            http://s3.amazonaws.com/dist.springframework.org/release/SPR
18checksums               md5 b57bae9b69472a5d59c6ee82ca587fd3 \
19                        sha1 876e0b03f1ab18c7796894ba7532c8fa9a9896c4 \
20                        rmd160 8200e5ccb17249201ebf60e01d18ae3fa7cba9b7
21
22use_zip                 yes
23
24depends_lib             bin:java:kaffe
25
26use_configure           no
27
28worksrcdir              ${name}-${version}
29
30build.cmd               true
31
32destroot {
33        # Ensure needed directories
34        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} \
35                ${destroot}${prefix}/share/doc \
36                ${destroot}${prefix}/share/examples
37
38        # Install the framework
39        file copy ${worksrcpath}/dist \
40                ${destroot}${prefix}/share/java/${name}/dist
41
42        # Add symlinks to jars
43        foreach f [glob -tails -directory ${destroot}${prefix}/share/java ${name}/dist/*.jar] {
44                system "cd ${destroot}${prefix}/share/java && ln -s ${f}"
45        }
46
47        # Install the docs
48        file copy ${worksrcpath}/docs \
49                ${destroot}${prefix}/share/doc/${name}
50
51        # Install samples
52        file copy ${worksrcpath}/samples \
53                ${destroot}${prefix}/share/examples/${name}
54}
55
56variant with_libs description {Install libraries used for sample applications} {
57        post-destroot {
58                file copy ${worksrcpath}/lib \
59                        ${destroot}${prefix}/share/java/${name}/lib
60        }
61}
62
63livecheck.check         sourceforge
64livecheck.name          springframework
65livecheck.distname      springframework-2
Note: See TracBrowser for help on using the repository browser.