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

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

New upstream 3.0.5 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 73461 2010-11-14 03:21:20Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework3
6version                 3.0.5
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 37d7ede240f78ae8cf18c7f9524257e7 \
20                        sha1 aa337743a74d0b1df03b4e49e39607c5290a1862 \
21                        rmd160 2dd123800ec445dfd74335decf7f0ae98decef50
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.