Permalink
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (43 sloc) 1.88 KB
# -*- 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 github 1.0
github.setup JetBrains kotlin 1.2.70 v
github.tarball_from releases
distname ${name}-compiler-${version}
categories lang java
platforms darwin
maintainers {breun.nl:nils @breun} openmaintainer
license Apache-2
description Statically typed programming language for the JVM, \
Android and the browser
long_description Kotlin is a pragmatic programming language for JVM \
and Android that combines OO and functional features \
and is focused on interoperability, safety, clarity \
and tooling support.
homepage https://kotlinlang.org/
checksums rmd160 ea76b00af7b91feb1d8e498360d04ff2d975ba68 \
sha256 a23a40a3505e78563100b9e6cfd7f535fbf6593b69a5c470800fbafbeccf8434 \
size 37177896
depends_run bin:java:kaffe
worksrcdir kotlinc
use_zip yes
use_configure no
build {}
pre-destroot {
delete {*}[glob ${worksrcpath}/bin/*.bat]
}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java
file copy ${worksrcpath} \
${destroot}${prefix}/share/java/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/doc/
file rename ${destroot}${prefix}/share/java/${name}/license \
${destroot}${prefix}/share/doc/${name}
foreach f [glob -tails -directory ${destroot}${prefix}/share/java/${name}/bin *] {
ln -s ../share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${f}
}
}
supported_archs noarch
livecheck.type regex
livecheck.url https://kotlinlang.org/
livecheck.regex "Latest version: (\\d+(?:\\.\\d+)*(?:-\\d+)?)</p>"