# -*- 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
PortGroup                   java 1.0

name                        directory-studio
version                     2.0.0.v20210717-M17
categories                  databases
platforms                   darwin
supported_archs             x86_64
license                     Apache-2
maintainers                 nomaintainer

description                 Apache Directory Studio - The Eclipse-based LDAP browser and directory client
long_description            Apache Directory Studio is a complete directory tooling platform intended to \
                            be used with any LDAP server however it is particularly designed for use with \
                            ApacheDS. It is an Eclipse RCP application, composed of several Eclipse (OSGi) \
                            plugins, that can be easily upgraded with additional ones. These plugins can \
                            even run within Eclipse itself.

homepage                    https://directory.apache.org/studio/

master_sites                https://downloads.apache.org/directory/studio/${version}/

distname                    ApacheDirectoryStudio-${version}-macosx.cocoa.x86_64
use_dmg                     yes

checksums                   rmd160  d1379aec14bc326ca97eceba220379c8f25531cb \
                            sha256  1f024ed122256ec69cc148ff628ed3103f47e95d3cdd0b66ed806afcc68d29ec \
                            size    141019379

java.version                1.8+
java.fallback               openjdk11

use_configure               no
build                       {}

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

livecheck.type              regex
livecheck.url               ${homepage}/update/product/compositeContent.xml
livecheck.regex             {/directory/studio/([0-9.vM-]+)/update/eclipse}
