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

Last change on this file was 95469, checked in by blair@…, 5 years ago

spring-*: whitespace changes: switch to 4-space indentation.

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