source: trunk/dports/java/spring-framework31/Portfile @ 75972

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

Move the "conflicts" line next to the "depends_lib" line.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 75972 2011-02-14 02:43:17Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    spring-framework31
6set real_version        3.1.0
7set full_version        ${real_version}.M1
8version                 0.0.${real_version}
9
10categories              java
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/milestone/SPR
20checksums               md5 ca933fbaf5a6d722565a338b7dbb2790 \
21                        sha1 8ac30fe16974b78073b648f4b60b7da5ac3a822b \
22                        rmd160 d9a4292056db3dbb99f36762c05357c51c1d116d
23
24use_zip                 yes
25
26conflicts               spring-framework30
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.