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

PortSystem              1.0
PortGroup               github 1.0
PortGroup               maven 1.0

github.setup            couchbase spymemcached 2.12.3
github.tarball_from     archive

categories              java
license                 MIT
platforms               any
supported_archs         noarch
maintainers             nomaintainer
description             A high performance, distributed object caching system.

long_description        Memcached is a high-performance, distributed \
                        memory object caching system, generic in nature, \
                        but intended for use in speeding up dynamic web \
                        applications by alleviating database load.  This \
                        Port provides a native Java client written by \
                        Dustin Sallings.

checksums               rmd160  95d02a59bf9a7fe70f89a4e2a0e37199d4dce5c6 \
                        sha256  31f1e804e6cfc58ee71b666684e2521f1cf71ba325652500417db1decb9d7cdc \
                        size    452986

java.version            1.6+
java.fallback           openjdk11

destroot {
        set javadir ${destroot}${prefix}/share/java
        set docdir ${destroot}${prefix}/share/doc/${name}

        xinstall -d -m 755 ${javadir}
        xinstall -d -m 755 ${docdir}

        xinstall -m 644 \
                [glob -directory ${worksrcpath}/target/ ${name}-*.jar] \
                ${javadir}/${name}.jar

        xinstall -m 644 \
                ${worksrcpath}/LICENSE.txt \
                ${worksrcpath}/README.markdown \
                ${docdir}
}
