Files
2019-07-19 13:40:08 +00:00

66 lines
1.8 KiB
Plaintext

PortSystem 1.0
name spring-framework25
version 2.5.6.SEC01
categories java
license Apache-2
maintainers nomaintainer
platforms darwin
description Spring application framework for Java
long_description \
Spring is a layered Java/J2EE application framework.
homepage http://www.springframework.org/
distname spring-framework-${version}-with-dependencies
master_sites http://s3.amazonaws.com/dist.springframework.org/release/SPR
checksums md5 b57bae9b69472a5d59c6ee82ca587fd3 \
sha1 876e0b03f1ab18c7796894ba7532c8fa9a9896c4 \
rmd160 8200e5ccb17249201ebf60e01d18ae3fa7cba9b7
use_zip yes
depends_lib bin:java:kaffe
use_configure no
worksrcdir spring-framework-${version}
build {}
destroot {
# Ensure needed directories
xinstall -m 755 -d \
${destroot}${prefix}/share/java/${name} \
${destroot}${prefix}/share/doc \
${destroot}${prefix}/share/examples
# Install the framework
file copy ${worksrcpath}/dist \
${destroot}${prefix}/share/java/${name}/dist
# Add symlinks to jars
foreach f [glob -tails -directory ${destroot}${prefix}/share/java ${name}/dist/*.jar] {
system "cd ${destroot}${prefix}/share/java && ln -s ${f}"
}
# Install the docs
file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
# Install samples
file copy ${worksrcpath}/samples \
${destroot}${prefix}/share/examples/${name}
}
variant with_libs description {Install libraries used for sample applications} {
post-destroot {
file copy ${worksrcpath}/lib \
${destroot}${prefix}/share/java/${name}/lib
}
}
livecheck.type sourceforge
livecheck.name springframework
livecheck.distname springframework-2