Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : kotlin-native | name : kotlin-native | ||||
| version : 1.3.72 | version : 1.3.72 | ||||
| release : 5 | release : 6 | ||||
| source : | source : | ||||
| - https://github.com/JetBrains/kotlin-native/archive/v1.3.72.tar.gz : 1f53ec1996b0f79ca615549fa5dc8485ef356cfab413212dceac64362ea6a13d | - https://github.com/JetBrains/kotlin-native/archive/v1.3.72.tar.gz : 1f53ec1996b0f79ca615549fa5dc8485ef356cfab413212dceac64362ea6a13d | ||||
| - https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz : a9ebf55170bdbe5e089dbf884e0bc52065b5b7bc52e9354415e25a36e10e56c5 | - https://download.jetbrains.com/kotlin/native/clang-llvm-8.0.0-linux-x86-64.tar.gz : a9ebf55170bdbe5e089dbf884e0bc52065b5b7bc52e9354415e25a36e10e56c5 | ||||
| - https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-2-linux-mips.tar.gz : b1703b2f0e1fc9e5620330f1d43c00b85ae65289796a51b827db81335207ff01 | - https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-2-linux-mips.tar.gz : b1703b2f0e1fc9e5620330f1d43c00b85ae65289796a51b827db81335207ff01 | ||||
| - https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz : ca25fc933fe45deb142f2672d3773227a65e652ebeb7bc6cc8425f747c5f8912 | - https://download.jetbrains.com/kotlin/native/target-gcc-toolchain-3-linux-x86-64.tar.gz : ca25fc933fe45deb142f2672d3773227a65e652ebeb7bc6cc8425f747c5f8912 | ||||
| - https://download.jetbrains.com/kotlin/native/target-toolchain-2-linux-android_ndk.tar.gz : c53c127a26eec3e471a2f8fcb88484b8b22832aafd9115205b33beb84255dd10 | - https://download.jetbrains.com/kotlin/native/target-toolchain-2-linux-android_ndk.tar.gz : c53c127a26eec3e471a2f8fcb88484b8b22832aafd9115205b33beb84255dd10 | ||||
| - https://download.jetbrains.com/kotlin/native/target-sysroot-1-android_ndk.tar.gz : 7dafa395f57c72dd728ad032516903fd711c1f2f1eaeaf997065431eec65ff36 | - https://download.jetbrains.com/kotlin/native/target-sysroot-1-android_ndk.tar.gz : 7dafa395f57c72dd728ad032516903fd711c1f2f1eaeaf997065431eec65ff36 | ||||
| - https://download.jetbrains.com/kotlin/native/target-sysroot-1-linux-glibc-arm64.tar.gz : 09983b77875e376b5ae05eeff470d371e8c2832f492b3dbf92cbe08ef240d00b | - https://download.jetbrains.com/kotlin/native/target-sysroot-1-linux-glibc-arm64.tar.gz : 09983b77875e376b5ae05eeff470d371e8c2832f492b3dbf92cbe08ef240d00b | ||||
| - https://download.jetbrains.com/kotlin/native/target-sysroot-2-mipsel.tar.gz : 8ecdc6382db848ce55938c516bbea0ebd9fc20e7f6df478e9af41d467b6fa683 | - https://download.jetbrains.com/kotlin/native/target-sysroot-2-mipsel.tar.gz : 8ecdc6382db848ce55938c516bbea0ebd9fc20e7f6df478e9af41d467b6fa683 | ||||
| - https://download.jetbrains.com/kotlin/native/target-sysroot-2-raspberrypi.tar.gz : b0c7db1e5408d336baefa1af1f766e977ce05cc256bd24fb36be29d9816be71e | - https://download.jetbrains.com/kotlin/native/target-sysroot-2-raspberrypi.tar.gz : b0c7db1e5408d336baefa1af1f766e977ce05cc256bd24fb36be29d9816be71e | ||||
| license : Apache-2.0 | license : Apache-2.0 | ||||
| component : programming | component : programming | ||||
| summary : Standalone compiler toolchain for native Kotlin applications and libraries | summary : Standalone compiler toolchain for native Kotlin applications and libraries | ||||
| description: | | description: | | ||||
| Kotlin/Native is a LLVM backend for the Kotlin compiler, runtime implementation and native code generation facility using LLVM toolchain. | Kotlin/Native is a LLVM backend for the Kotlin compiler, runtime implementation and native code generation facility using LLVM toolchain. | ||||
| Kotlin/Native is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS, embedded targets), or where developer is willing to produce reasonably-sized self-contained program without need to ship an additional execution runtime. | Kotlin/Native is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS, embedded targets), or where developer is willing to produce reasonably-sized self-contained program without need to ship an additional execution runtime. | ||||
| networking : true | networking : true | ||||
| environment: | | environment: | | ||||
| export JAVA_HOME=/usr/lib64/openjdk-11 | export JAVA_HOME=/usr/lib64/openjdk-11 | ||||
| # prevents Gradle, Konan, and Java from failing to create files in ~ | # prevents Gradle and Konan from failing to create files in ~ | ||||
| export JAVA_OPTS="-Djava.util.prefs.userRoot=$workdir/.java" | |||||
| export GRADLE_USER_HOME="$workdir/.gradle" | export GRADLE_USER_HOME="$workdir/.gradle" | ||||
| export KONAN_DATA_DIR="$workdir/.konan" | export KONAN_DATA_DIR="$workdir/.konan" | ||||
| # prevents Gradle from dying due to being unable to identify some terminals like Kitty | |||||
| export TERM=xterm-256color | |||||
| builddeps : | builddeps : | ||||
| - openjdk-11 | - gradle | ||||
| rundeps : | rundeps : | ||||
| - openjdk-11 | - openjdk-11 | ||||
| setup : | | setup : | | ||||
| mkdir -p $KONAN_DATA_DIR/dependencies/ | mkdir -p $KONAN_DATA_DIR/dependencies/ | ||||
| for FILE in $sources/*.tar.gz; do | for FILE in $sources/*.tar.gz; do | ||||
| if [[ $FILE != *"%version%"* ]]; then | if [[ $FILE != *"%version%"* ]]; then | ||||
| tar xzf $FILE -C $KONAN_DATA_DIR/dependencies/ | tar xzf $FILE -C $KONAN_DATA_DIR/dependencies/ | ||||
| echo $(basename -s .tar.gz $FILE) >> $KONAN_DATA_DIR/dependencies/.extracted | echo $(basename -s .tar.gz $FILE) >> $KONAN_DATA_DIR/dependencies/.extracted | ||||
| fi | fi | ||||
| done | done | ||||
| cat $pkgfiles/gradle.properties >> gradle.properties | cat $pkgfiles/gradle.properties >> gradle.properties | ||||
| ./gradlew dependencies:update | |||||
| %patch -p1 < $pkgfiles/use-cpp-11-as-std-version.patch | %patch -p1 < $pkgfiles/use-cpp-11-as-std-version.patch | ||||
| %patch -p1 < $pkgfiles/fix-plugin-compile-error-with-gradle-641.patch | |||||
| gradle dependencies:update | |||||
| build : | | build : | | ||||
| ./gradlew bundle | gradle bundle | ||||
| install : | | install : | | ||||
| mkdir -p $installdir/usr/share/kotlin-native | mkdir -p $installdir/usr/share/kotlin-native | ||||
| cp -r dist/* $installdir/usr/share/kotlin-native/ | cp -r dist/* $installdir/usr/share/kotlin-native/ | ||||
| chmod -R 00644 $installdir/usr/share/kotlin-native | chmod -R 00644 $installdir/usr/share/kotlin-native | ||||
| chmod -R +x $installdir/usr/share/kotlin-native/bin | chmod -R +x $installdir/usr/share/kotlin-native/bin | ||||
| mkdir -p $installdir/usr/bin | mkdir -p $installdir/usr/bin | ||||
| cd $installdir/usr/share/kotlin-native/bin | cd $installdir/usr/share/kotlin-native/bin | ||||
| for FILE in *; do | for FILE in *; do | ||||
| cp $pkgfiles/java-shim.sh $installdir/usr/bin/$FILE | cp $pkgfiles/java-shim.sh $installdir/usr/bin/$FILE | ||||
| echo "/usr/share/kotlin-native/bin/$FILE \"\$@\"" >> $installdir/usr/bin/$FILE | echo "/usr/share/kotlin-native/bin/$FILE \"\$@\"" >> $installdir/usr/bin/$FILE | ||||
| chmod +x $installdir/usr/bin/$FILE | chmod +x $installdir/usr/bin/$FILE | ||||
| done | done | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.