wok-current rev 25576
Up nimrod (1.6.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 17:57:27 2023 +0000 (20 months ago) |
parents | 610b24fa3c65 |
children | e483324933fa |
files | nimrod/receipt |
line diff
1.1 --- a/nimrod/receipt Sat May 13 16:42:09 2023 +0000 1.2 +++ b/nimrod/receipt Sat May 13 17:57:27 2023 +0000 1.3 @@ -1,17 +1,18 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="nimrod" 1.7 -VERSION="0.9.2" 1.8 +VERSION="1.6.12" 1.9 CATEGORY="development" 1.10 SHORT_DESC="The Nimrod programming language." 1.11 MAINTAINER="admin@trixarian.net" 1.12 LICENSE="GPL" 1.13 -TARBALL="nimrod_$VERSION.zip" 1.14 +TARBALL="nim-$VERSION.tar.xz" 1.15 WEB_SITE="https://min-lang.org/" 1.16 -WGET_URL="http://nimrod-code.org/download/$TARBALL" 1.17 +WGET_URL="https://nim-lang.org/download/$TARBALL" 1.18 +PROVIDES="nim" 1.19 1.20 -DEPENDS="gcc glibc-base readline" 1.21 -BUILD_DEPENDS="gcc glibc-dev readline-dev" 1.22 +DEPENDS="glibc-base readline" 1.23 +BUILD_DEPENDS="gcc83 glibc-dev readline-dev" 1.24 1.25 # What is the latest version available today? 1.26 current_version() 1.27 @@ -23,22 +24,24 @@ 1.28 # Rules to configure and make the package. 1.29 compile_rules() 1.30 { 1.31 - cd $src 1.32 sed -i "s/uname -m/echo $ARCH/" build.sh 1.33 chmod +x build.sh 1.34 chmod +x install.sh 1.35 - ./build.sh 1.36 - ./bin/nimrod c -d:release koch 1.37 - ./koch boot -d:release 1.38 + CC=gcc-83 ./build.sh 1.39 + export PATH=$PATH:$src/bin 1.40 + ./bin/nim c -d:release koch 1.41 + ./bin/nim r ./koch.nim boot -d:release 1.42 ./install.sh $DESTDIR 1.43 } 1.44 1.45 # Rules to gen a SliTaz package suitable for Tazpkg. 1.46 genpkg_rules() 1.47 { 1.48 - mkdir -p $fs/usr/share/nimrod $fs/usr/lib 1.49 - cp -a $install/nimrod/bin $fs/usr 1.50 - cp -a $install/nimrod/config $fs/etc 1.51 - cp -a $install/nimrod/lib $fs/usr/lib/nimrod 1.52 - cp -a $install/nimrod/doc $fs/usr/share/nimrod 1.53 + mkdir -p $fs/usr/lib $fs/usr/share/nim 1.54 + cp -a $install/nim/bin $fs/usr 1.55 + cp -a $install/nim/config $fs/etc 1.56 + cp -a $install/nim/lib $fs/usr/lib/nim 1.57 + cp -a $install/nim/nim.nimble $fs/usr/lib/nim 1.58 + cp -a $install/nim/compile $fs/usr/lib/nim 1.59 + cp -a $install/nim/doc $fs/usr/share/nim 1.60 }