mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
@@ -12,7 +12,7 @@ HOMEPAGE="https://nim-lang.org/"
|
||||
COPYRIGHT="2006-2024 Andreas Rumpf
|
||||
2017-2024 Nim contributors"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://nim-lang.org/download/nim-$portVersion.tar.xz"
|
||||
SOURCE_DIR="nim-$portVersion"
|
||||
CHECKSUM_SHA256="5702da844700d3129db73170b5c606adbdfb87e82b816c0d91107ea20a65df16"
|
||||
@@ -50,6 +50,7 @@ PROVIDES="
|
||||
cmd:nimgrep$secondaryArchSuffix = $portVersion
|
||||
cmd:nimpretty$secondaryArchSuffix = $portVersion
|
||||
cmd:nimsuggest$secondaryArchSuffix = $portVersion
|
||||
lib:libnimrtl$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -83,6 +84,7 @@ BUILD()
|
||||
sh build.sh
|
||||
bin/nim c koch
|
||||
./koch boot -d:release
|
||||
(cd lib && ../bin/nim c --app:lib -d:createNimRtl -d:release nimrtl.nim)
|
||||
./koch tools
|
||||
|
||||
# Docs
|
||||
@@ -95,6 +97,9 @@ INSTALL()
|
||||
"$developDocDir"
|
||||
./koch install "$libDir"
|
||||
|
||||
cp -a dist "$libDir/nim/"
|
||||
install -m 755 lib/libnimrtl.so "$libDir/libnimrtl.so"
|
||||
|
||||
install -t "$libDir/nim/bin" -m 755 bin/{nimsuggest,nimgrep,nimpretty,nimble}
|
||||
ln -st "$binDir" "$libDir/nim/bin"/*
|
||||
|
||||
@@ -103,11 +108,12 @@ INSTALL()
|
||||
|
||||
mv -T "$libDir/nim/doc" "$docDir"
|
||||
|
||||
complierPkgDir="$dataDir/nimble/pkgs/compiler-$portVersion"
|
||||
install -d -m 755 "$complierPkgDir"
|
||||
mv -t "$complierPkgDir" "$libDir/nim"/compiler
|
||||
### disable the compilerPkgDir for now since it breaks nimble
|
||||
#complierPkgDir="$dataDir/nimble/pkgs/compiler-$portVersion"
|
||||
#install -d -m 755 "$complierPkgDir"
|
||||
#mv -t "$complierPkgDir" "$libDir/nim"/compiler
|
||||
# Apparantly you need some files in docDir for the compiler sources to work
|
||||
ln -s "$docDir" "$complierPkgDir/doc"
|
||||
#ln -s "$docDir" "$complierPkgDir/doc"
|
||||
|
||||
install -t "$settingsDir/nim" -m 644 "$portDir/additional-files/config.nims"
|
||||
# Completions
|
||||
|
||||
Reference in New Issue
Block a user