# -*- 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

name                JOSM
version             19017
categories          gis editors java
license             GPL-2+
supported_archs     i386 x86_64

maintainers         {@sikmir disroot.org:sikmir} openmaintainer

description         An extensible editor for OpenStreetMap
long_description    ${name} is a feature-rich editor for the \
                    experienced OSM mappers.
homepage            https://josm.openstreetmap.de

master_sites        ${homepage}/download/macosx/
distname            josm-macos-${version}-java21

checksums           rmd160  a20e5c72161d35d7c26c9586cc456a94df830c36 \
                    sha256  aff97d373eb3c2d9d0da8a211d18976f6d512d8c93e919dfe65a56fecb8efd5c \
                    size    82783351

extract.mkdir       yes

use_configure       no
use_zip             yes

build {}

destroot {
    copy ${worksrcpath}/JOSM.app ${destroot}${applications_dir}
}

livecheck.type          regex
livecheck.url           https://josm.openstreetmap.de/download/macosx/
livecheck.regex         {josm-macos-(\d+)-java21\.zip}
