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

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

The distribution site for the Spring Framework changed, update master_sites.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 42503 2008-11-22 18:10:57Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework
6version                 2.5.6
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 f70bca9859cc2afae70cf5183c54c906 \
19                        sha1 b67a3070e834d83341bcab2865294d5eea8a42f9 \
20                        rmd160 02e0b6f0683eef50bc5006744915eb8e0171a386
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.