PortSystem 1.0

name                    spymemcached
version                 2.8.4
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.

homepage                https://code.google.com/p/spymemcached/

master_sites            googlecode
distfiles               spymemcached-${version}.jar \
                        spymemcached-${version}-javadocs.jar
extract.only

checksums               spymemcached-${version}.jar \
                                sha1   e12eeaa3c62d27210e1ab7e4165569ba825b350f \
                                rmd160 fcd145f7295c308b7aee25cf8e2c7a555ad6885d \
                                sha256 4933c18d5a4b053a23904df7d13035bf33eb9d6f1fc28a7993a9a089689769f8 \
                        spymemcached-${version}-javadocs.jar \
                                sha1   af085be34e576264ce6a763a034d651317acf351 \
                                rmd160 8cb3ff6334f0bd600537ca67f26356200239e7dd \
                                sha256 391b27ee156e3d61cb9565dc5dc44d9814c33fe9a1ba9d280c11606d52f64d52

depends_lib             bin:java:kaffe

use_configure           no

build { }

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

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

        file copy ${distpath}/spymemcached-${version}.jar \
                ${javadir}/spymemcached.jar
        system "unzip -q ${distpath}/spymemcached-${version}-javadocs.jar -d ${docdir}/api"
}
