1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup JetBrains kotlin 1.0.2 |
---|
8 | github.tarball_from releases |
---|
9 | distname ${name}-compiler-${version} |
---|
10 | categories lang java |
---|
11 | platforms darwin |
---|
12 | maintainers madlon-kay.com:aaron+macports openmaintainer |
---|
13 | license Apache-2.0 |
---|
14 | |
---|
15 | description Statically typed programming language for the JVM, \ |
---|
16 | Android and the browser |
---|
17 | |
---|
18 | long_description Kotlin is a pragmatic programming language for JVM \ |
---|
19 | and Android that combines OO and functional features \ |
---|
20 | and is focused on interoperability, safety, clarity \ |
---|
21 | and tooling support. |
---|
22 | |
---|
23 | homepage http://kotlinlang.org/ |
---|
24 | |
---|
25 | checksums rmd160 55d1b702467af0abdf0db980666635ae36794211 \ |
---|
26 | sha256 7f645b3914d0e435c0d7d26dc474684cebba6b5a99e9bbb3c23eef09140b72d4 |
---|
27 | |
---|
28 | depends_run bin:java:kaffe |
---|
29 | |
---|
30 | worksrcdir kotlinc |
---|
31 | |
---|
32 | use_zip yes |
---|
33 | use_configure no |
---|
34 | |
---|
35 | build {} |
---|
36 | |
---|
37 | pre-destroot { |
---|
38 | foreach f [glob ${worksrcpath}/bin/*.bat] { |
---|
39 | delete ${f} |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | destroot { |
---|
44 | xinstall -m 755 -d ${destroot}${prefix}/share/java |
---|
45 | file copy ${worksrcpath} \ |
---|
46 | ${destroot}${prefix}/share/java/${name} |
---|
47 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/ |
---|
48 | file rename ${destroot}${prefix}/share/java/${name}/license \ |
---|
49 | ${destroot}${prefix}/share/doc/${name} |
---|
50 | file rename ${destroot}${prefix}/share/java/${name}/build.txt \ |
---|
51 | ${destroot}${prefix}/share/doc/${name} |
---|
52 | |
---|
53 | foreach f [glob -tails -directory ${destroot}${prefix}/share/java/${name}/bin *] { |
---|
54 | ln -s ../share/java/${name}/bin/${f} ${destroot}${prefix}/bin/${f} |
---|
55 | } |
---|
56 | } |
---|
57 | |
---|
58 | supported_archs noarch |
---|