source: trunk/dports/java/spring-framework25/Portfile @ 93047

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

spring-framework25: license

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