# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            spring-javaconfig
set realversion 1.0.0.M4
version         0.2.${realversion}
revision        2

categories      java
license         Apache-2
maintainers     nomaintainer
supported_archs noarch
platforms       any

description     Type-safe, pure-Java way to configure applications
long_description \
    The Spring JavaConfig project provides a type-safe, \
    pure-Java option for configuring Spring Application \
    Contexts.  While most people currently use XML to \
    configure bean definitions in their Application \
    Contexts, Spring's versatility and metadata based \
    internal handling of bean definitions means \
    alternatives to XML config are easy to implement.
homepage        http://www.springframework.org/javaconfig

distname        ${name}-${realversion}
master_sites    http://s3.amazonaws.com/dist.springframework.org/milestone/SJC
checksums       rmd160  3bdc3d2d9a925008515238dd939ed2daf0cf8286 \
                sha256  daf4b66989d0cd0cb39bced63edc45214f64b5fe811c3412dc1fe3ddc2dbe473 \
                size    15363909

use_zip         yes

depends_lib     port:spring-framework25 \
                port:cglib

use_configure   no

worksrcdir      ${name}

build {}

destroot {
    # Ensure needed directories
    xinstall -m 755 -d ${destroot}${prefix}/share/java \
        ${destroot}${prefix}/share/doc

    file copy ${worksrcpath}/dist/org.springframework.config.java-${realversion}.jar \
        ${destroot}${prefix}/share/java/${name}.jar

    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
