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

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

spring-framework31: add license.

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