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

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

spring-framework30: new upstream 3.0.7 release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 88904 2012-01-15 02:10:39Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework30
6version                 3.0.7
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 2126ea7f6659e282e62fc36c152e98d7 \
20                        sha1 9f5c5ae3f11f9a9f51387e27e7a3da475e13bf1c \
21                        rmd160 b35c1c60b8c1b90fc459b5a6daacf920ad54ee5b
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.