PortSystem 1.0

name                    jna
version                 3.2.7
categories              java
platforms               darwin
maintainers             nomaintainer
description             Access to native shared libraries with pure Java code

long_description        Java Native Access provides Java programs easy \
                        access to native shared libraries (DLLs on Windows) \
                        without writing anything but Java code - no JNI or \
                        native code is required.  This functionality is \
                        comparable to Windows' Platform/Invoke and Python's \
                        ctypes.  Access is dynamic at runtime without code \
                        generation.  JNA's design aims to provide native \
                        access in a natural way with a minimum of effort.  \
                        No boilerplate or generated code is required.  While \
                        some attention is paid to performance, correctness \
                        and ease of use take priority.

homepage                https://jna.dev.java.net/

master_sites            ${homepage}source/browse/*checkout*/${name}/tags/${version}/jnalib/dist/
distfiles               ${name}.jar
fetch.ignore_sslcert    yes
extract.only

checksums               md5 56c4d32d08c89a93159259e0da38d9db \
                        sha1 4f25aa7292f70e721a9b96a6ed49365ba6e03eab \
                        rmd160 93a01009c06ee9821f9677930634211a8ca9e666

depends_lib             bin:java:kaffe

use_configure           no

build { }

destroot {
        set javadir ${destroot}${prefix}/share/java

        xinstall -d -m 755 ${javadir}

        file copy ${distpath}/${name}.jar ${javadir}/
}
