# -*- 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 Okapi version 1.47.0 categories aqua textproc java license Apache-2 maintainers {amake @amake} openmaintainer description A set of tools for localization and translation long_description The Okapi Framework is a cross-platform and free open-source set of \ components and applications that offer extensive support for localizing \ and translating documentation and software. homepage https://okapiframework.org/ platforms {darwin any} supported_archs x86_64 arm64 master_sites https://okapiframework.org/binaries/main/${version} if {${configure.build_arch} eq "x86_64"} { distname okapi-apps_cocoa-macosx-x86_64_${version} checksums rmd160 4b0d249012e50be9614b188a658e5a0a073af5ee \ sha256 775b104ea2999102085ecc609b9cf5299876a8aecef8ceee143db59d245280c5 \ size 42547696 } elseif {${configure.build_arch} eq "arm64"} { distname okapi-apps_cocoa-macosx-aarch64_${version} checksums rmd160 ea6ec3fa712adffa8f34a30653d932fa2c277e0a \ sha256 d3bc1c524ca4bba66f1a700ce883c7d93be6ac21247b05e06307b0f4a509b7c1 \ size 42575481 } use_dmg yes use_configure no java.version 11+ java.fallback openjdk11 build {} destroot { set okapi_home ${applications_dir}/${name} copy {*}[glob ${worksrcpath}/${name}_*] ${destroot}${okapi_home} proc wrapper_script {script_name script_target} { global destroot prefix applications_dir name upvar okapi_home ok_home set cli_script ${destroot}${prefix}/bin/${script_name} set fp [open $cli_script w] puts $fp "#!/bin/sh" puts $fp "exec \"${ok_home}/${script_target}\" \"$@\"" close $fp system "chmod +x ${cli_script}" } wrapper_script tikal tikal.sh wrapper_script rainbow Rainbow.app/Contents/MacOS/rainbow.sh } universal_variant no livecheck.type regex livecheck.url https://okapiframework.org/binaries/main/ livecheck.regex {([0-9]+(?:\.[0-9a-z]+)*)/}