[150108] trunk/dports/lang

cal at macports.org cal at macports.org
Tue Jul 12 13:27:52 PDT 2016


Revision: 150108
          https://trac.macports.org/changeset/150108
Author:   cal at macports.org
Date:     2016-07-12 13:27:52 -0700 (Tue, 12 Jul 2016)
Log Message:
-----------
new port: kotlin, closes #51576

Added Paths:
-----------
    trunk/dports/lang/kotlin/
    trunk/dports/lang/kotlin/Portfile

Added: trunk/dports/lang/kotlin/Portfile
===================================================================
--- trunk/dports/lang/kotlin/Portfile	                        (rev 0)
+++ trunk/dports/lang/kotlin/Portfile	2016-07-12 20:27:52 UTC (rev 150108)
@@ -0,0 +1,58 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+PortGroup           github 1.0
+
+github.setup        JetBrains kotlin 1.0.2
+github.tarball_from releases
+distname            ${name}-compiler-${version}
+categories          lang java
+platforms           darwin
+maintainers         madlon-kay.com:aaron+macports openmaintainer
+license             Apache-2.0
+
+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            http://kotlinlang.org/
+
+checksums           rmd160  55d1b702467af0abdf0db980666635ae36794211 \
+                    sha256  7f645b3914d0e435c0d7d26dc474684cebba6b5a99e9bbb3c23eef09140b72d4
+
+depends_run         bin:java:kaffe
+
+worksrcdir          kotlinc
+
+use_zip             yes
+use_configure       no
+
+build {}
+
+pre-destroot {
+    foreach f [glob ${worksrcpath}/bin/*.bat] {
+        delete ${f}
+    }
+}
+
+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}
+    file rename ${destroot}${prefix}/share/java/${name}/build.txt \
+        ${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


Property changes on: trunk/dports/lang/kotlin/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160712/3b8978ec/attachment.html>


More information about the macports-changes mailing list