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

PortSystem      1.0
PortGroup       java 1.0

name            junit
version         4.13
categories      java devel
license         CPL-1
platforms       darwin
maintainers     nomaintainer
supported_archs noarch

description     Java framework for repeatable tests

long_description \
    JUnit is a simple framework to write repeatable tests. \
    It is an instance of the xUnit architecture for unit \
    testing frameworks.

homepage        https://junit.org/junit4/
master_sites    https://repo1.maven.org/maven2/junit/junit/${version}/
distfiles       ${name}-${version}.jar

checksums   rmd160  45b1bcd0fbe3e069989be2dff0f8f2f2a72b9d76 \
            sha256  4b8532f63bdc0e0661507f947eb324a954d1dbac631ad19c8aa9a00feed1d863 \
            size    381765

use_configure   no
# don't extract anything
extract.only

build {}

set javadir     ${prefix}/share/java

destroot {
    xinstall -d ${destroot}${javadir}
    xinstall -m 0644 ${distpath}/${name}-${version}.jar ${destroot}${javadir}/${name}.jar
}
