nim: update to 1.0.0
This commit is contained in:
parent
5ed047da4e
commit
832bfbd6c8
1 changed files with 14 additions and 14 deletions
|
@ -1,23 +1,23 @@
|
||||||
# Template file for 'nim'
|
# Template file for 'nim'
|
||||||
pkgname=nim
|
pkgname=nim
|
||||||
version=0.20.0
|
version=1.0.0
|
||||||
revision=1
|
revision=1
|
||||||
_cversion=0.20.0
|
_cversion=0.20.0
|
||||||
_nimbleversion=0.10.2
|
_nimbleversion=0.11.0
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc=Nim-$version
|
build_wrksrc=Nim-$version
|
||||||
hostmakedepends="ed"
|
hostmakedepends="ed"
|
||||||
depends="gcc"
|
depends="gcc"
|
||||||
short_desc="The Nim programming language"
|
short_desc="Nim programming language"
|
||||||
maintainer="allan <mail@may.mooo.com>"
|
maintainer="allan <mail@may.mooo.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://nim-lang.org/"
|
homepage="https://nim-lang.org/"
|
||||||
distfiles="https://github.com/nim-lang/Nim/archive/v${version}.tar.gz
|
distfiles="https://github.com/nim-lang/Nim/archive/v${version}.tar.gz
|
||||||
https://github.com/nim-lang/csources/archive/v${_cversion}.tar.gz>csources-${_cversion}.tar.gz
|
https://github.com/nim-lang/csources/archive/v${_cversion}.tar.gz>csources-${_cversion}.tar.gz
|
||||||
https://github.com/nim-lang/nimble/archive/v${_nimbleversion}.tar.gz>nimble-${_nimbleversion}.tar.gz"
|
https://github.com/nim-lang/nimble/archive/v${_nimbleversion}.tar.gz>nimble-${_nimbleversion}.tar.gz"
|
||||||
checksum="53f96a92cd1a46360b1fab44720d331536bbd18993a81746e973af46fdad8fbb
|
checksum="6d93d25da6b5ef4e0223acb1f1abadf06be1019a8137491ddc7c6fa030e638c3
|
||||||
5e6fd15d90df1a8cb7614c4ffc70aa8c4198cd854d7742016202b96dd0228d3c
|
5e6fd15d90df1a8cb7614c4ffc70aa8c4198cd854d7742016202b96dd0228d3c
|
||||||
ef62b38ad41f9d84b4c9206b10541f1dc7498edda16b2031d96eaa873f4f9730"
|
a31d06128f3d1014d68297aa5cd264023d202cae74746d78ba84e335af3399d2"
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mv csources-$_cversion $build_wrksrc/csources
|
mv csources-$_cversion $build_wrksrc/csources
|
||||||
|
@ -27,17 +27,17 @@ post_extract() {
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
cd csources
|
cd csources
|
||||||
CC=cc LD=cc CFLAGS="-Os -pipe" LDFLAGS= sh build.sh
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686*)
|
||||||
|
CC=cc LD=cc CFLAGS="-Os -pipe" LDFLAGS= \
|
||||||
|
sh build.sh --cpu i686;;
|
||||||
|
*)
|
||||||
|
CC=cc LD=cc CFLAGS="-Os -pipe" LDFLAGS= sh build.sh;;
|
||||||
|
esac
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
ed lib/wrappers/openssl.nim <<-EDIT
|
|
||||||
,s/versions = "(/versions = "(.46|/
|
|
||||||
w
|
|
||||||
q
|
|
||||||
EDIT
|
|
||||||
|
|
||||||
bin/nim c koch
|
bin/nim c koch
|
||||||
./koch boot -d:release
|
./koch boot -d:release -d:danger
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
aarch64*) _arch=arm64;;
|
aarch64*) _arch=arm64;;
|
||||||
|
@ -62,7 +62,7 @@ do_build() {
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
EDIT
|
EDIT
|
||||||
bin/nim c -d:release --os:linux --cpu:$_arch --listCmd compiler/nim
|
bin/nim c -d:release -d:danger --os:linux --cpu:$_arch --listCmd compiler/nim
|
||||||
for _p in \
|
for _p in \
|
||||||
dist/nimble/src/nimble \
|
dist/nimble/src/nimble \
|
||||||
tools/nimgrep \
|
tools/nimgrep \
|
||||||
|
|
Loading…
Reference in a new issue