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

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

Conflict with spring-framework31.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 75971 2011-02-14 02:42:52Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework30
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
25conflicts               spring-framework31
26depends_lib             bin:java:kaffe
27
28use_configure           no
29
30worksrcdir              spring-framework-${full_version}
31
32build.cmd               true
33
34destroot {
35        # Ensure needed directories
36        xinstall -m 755 -d ${destroot}${prefix}/share \
37                ${destroot}${prefix}/share/doc/${name} \
38                ${destroot}${prefix}/share/examples
39
40        # Install the framework
41        file copy ${worksrcpath}/dist ${destroot}${prefix}/share/java
42        foreach f [glob ${destroot}${prefix}/share/java/*.jar] {
43                file rename ${f} [strsed ${f} s/-${full_version}//]
44        }
45
46        # Install the docs
47        foreach f {changelog.txt license.txt notice.txt readme.txt} {
48                file copy ${worksrcpath}/${f} \
49                        ${destroot}${prefix}/share/doc/${name}/${f}
50        }
51        file copy ${worksrcpath}/docs/javadoc-api \
52                ${destroot}${prefix}/share/doc/${name}/api
53        file copy ${worksrcpath}/docs/spring-framework-reference \
54                ${destroot}${prefix}/share/doc/${name}/reference
55}
Note: See TracBrowser for help on using the repository browser.