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

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

spring-framework30: add license.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[50847]1# $Id: Portfile 95413 2012-07-12 04:47:53Z blair@macports.org $
2
3PortSystem 1.0
4
[75914]5name                    spring-framework30
[88904]6version                 3.0.7
[61666]7set full_version        ${version}.RELEASE
[50847]8
[60632]9categories              java
[95413]10license                 Apache-2.0
[60632]11maintainers             blair
12platforms               darwin
[50847]13
[60632]14description             Spring application framework for Java
15long_description        Spring is a layered Java/J2EE application framework.
16homepage                http://www.springsource.org/about
[50847]17
[61665]18distname                spring-framework-${full_version}-with-docs
[61666]19master_sites            http://s3.amazonaws.com/dist.springframework.org/release/SPR
[88904]20checksums               md5 2126ea7f6659e282e62fc36c152e98d7 \
21                        sha1 9f5c5ae3f11f9a9f51387e27e7a3da475e13bf1c \
22                        rmd160 b35c1c60b8c1b90fc459b5a6daacf920ad54ee5b
[50847]23
[60632]24use_zip                 yes
[50847]25
[75971]26conflicts               spring-framework31
[60632]27depends_lib             bin:java:kaffe
[50847]28
[60632]29use_configure           no
[50847]30
[61665]31worksrcdir              spring-framework-${full_version}
[50847]32
[60632]33build.cmd               true
[50847]34
35destroot {
[60632]36        # Ensure needed directories
37        xinstall -m 755 -d ${destroot}${prefix}/share \
38                ${destroot}${prefix}/share/doc/${name} \
39                ${destroot}${prefix}/share/examples
[50847]40
[60632]41        # Install the framework
42        file copy ${worksrcpath}/dist ${destroot}${prefix}/share/java
43        foreach f [glob ${destroot}${prefix}/share/java/*.jar] {
[61665]44                file rename ${f} [strsed ${f} s/-${full_version}//]
[60632]45        }
[50847]46
[60632]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
[50847]56}
Note: See TracBrowser for help on using the repository browser.