source: trunk/dports/java/spring-framework30/Portfile @ 95413

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

spring-framework30: add license.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 95413 2012-07-12 04:47:53Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework30
6version                 3.0.7
7set full_version        ${version}.RELEASE
8
9categories              java
10license                 Apache-2.0
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 2126ea7f6659e282e62fc36c152e98d7 \
21                        sha1 9f5c5ae3f11f9a9f51387e27e7a3da475e13bf1c \
22                        rmd160 b35c1c60b8c1b90fc459b5a6daacf920ad54ee5b
23
24use_zip                 yes
25
26conflicts               spring-framework31
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.