source: trunk/dports/java/spring-framework3/Portfile @ 64204

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

New upstream 3.0.1 release.

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