# -*- 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
PortGroup               java 1.0
PortGroup               github 1.0

github.setup            ehcache ehcache3 3.8.1 v
github.tarball_from releases
name                    ehcache
distname                ${name}-${version}

categories              java
maintainers             nomaintainer
platforms               any
license                 Apache-2

description             Ehcache is a pure Java, in-process object cache.
long_description        Ehcache is a pure Java, in-process cache with the \
    following features: \
    \n 1. Fast \
    \n 2. Simple \
    \n 3. Acts as a pluggable cache for Hibernate \
    \n 4. Small foot print both in terms of size and memory requirements. \
    \n 5. Minimal dependencies. \
    \n 6. Fully documented. See the online documentation, FAQ and the online JavaDoc. \
    \n 7. Comprehensive test coverage. See the Clover test report. \
    \n 8. Scalable to hundreds of caches and large multi-CPU servers. \
    \n 9. Provides LRU, LFU and FIFO cache eviction policies. \
    \n10. Available under the Apache license. Ehcache's copyright and licensing has \
    been reviewed and approved by the Apache Software Foundation, making ehcache \
    suitable for use in Apache projects. \
    \n11. Production tested. All final versions of ehcache are production tested for \
    several weeks on a large and very busy eCommerce site before release.

extract.suffix          .jar
extract.only

supported_archs         noarch

checksums               md5 a6f66597f5aca8104972a79e72d62a04 \
                        sha256 95ed983b906d5d292ea41f561c09e58e9c22574a4fd73958bd9956a645365cfc \
                        rmd160 858c91550036b2687b481c06eeb927c497f85e42 \
                        size 1796698

use_configure           no

build                   {}

pre-destroot {
    xinstall -m 644 ${distpath}/${distfiles} ${distpath}
}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc/${name}
    file copy ${distpath}/${distfiles} ${destroot}${prefix}/share/doc/${name}
}
