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

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

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