Ticket #51576: Portfile

File Portfile, 1.9 KB (added by amake (Aaron Madlon-Kay), 8 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        JetBrains kotlin 1.0.2
8github.tarball_from releases
9distname            ${name}-compiler-${version}
10categories          lang java
11platforms           darwin
12maintainers         madlon-kay.com:aaron+macports openmaintainer
13license             Apache-2.0
14
15description         Statically typed programming language for the JVM, \
16                    Android and the browser
17
18long_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
23homepage            http://kotlinlang.org/
24
25checksums           rmd160  55d1b702467af0abdf0db980666635ae36794211 \
26                    sha256  7f645b3914d0e435c0d7d26dc474684cebba6b5a99e9bbb3c23eef09140b72d4
27
28depends_run         bin:java:kaffe
29
30worksrcdir          kotlinc
31
32use_zip             yes
33use_configure       no
34
35build {}
36
37pre-destroot {
38    foreach f [glob ${worksrcpath}/bin/*.bat] {
39        delete ${f}
40    }
41}
42
43destroot {
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
58supported_archs     noarch