nim: update to 0.19.2
This commit is contained in:
parent
5abdf75173
commit
244c85a4a4
|
@ -1,11 +1,13 @@
|
||||||
# Template file for 'nim'
|
# Template file for 'nim'
|
||||||
pkgname=nim
|
pkgname=nim
|
||||||
version=0.19.0
|
version=0.19.2
|
||||||
revision=1
|
revision=1
|
||||||
_cversion=0.19.0
|
_cversion=0.19.0
|
||||||
_nimbleversion=0.9.0
|
_nimbleversion=0.9.0
|
||||||
depends="gcc"
|
create_wrksrc=yes
|
||||||
|
build_wrksrc=Nim-$version
|
||||||
hostmakedepends="ed"
|
hostmakedepends="ed"
|
||||||
|
depends="gcc"
|
||||||
short_desc="The Nim programming language"
|
short_desc="The Nim programming language"
|
||||||
maintainer="allan <mail@may.mooo.com>"
|
maintainer="allan <mail@may.mooo.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -13,11 +15,9 @@ 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="f6a0b1c7bc227db1f7b8efa3bde0c6f23903c9184beebc99ff0094378c28e1ee
|
checksum="35b7214ede0aa6667c98dab23ad08a8ae9460b3b045a8a1fa2c0b640b7fd6505
|
||||||
68042afae0b24915acac813b52b9ee0a303219e990d3bfa05ca57fb6bbc51578
|
68042afae0b24915acac813b52b9ee0a303219e990d3bfa05ca57fb6bbc51578
|
||||||
d02cc0b1787fa30e6d88a1ee7aa067c1555b7763d2716742d1d10132df550456"
|
d02cc0b1787fa30e6d88a1ee7aa067c1555b7763d2716742d1d10132df550456"
|
||||||
build_wrksrc=Nim-$version
|
|
||||||
create_wrksrc=yes
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mv csources-$_cversion $build_wrksrc/csources
|
mv csources-$_cversion $build_wrksrc/csources
|
||||||
|
@ -31,7 +31,7 @@ do_build() {
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
ed lib/wrappers/openssl.nim <<-EDIT
|
ed lib/wrappers/openssl.nim <<-EDIT
|
||||||
,s/versions = "(/versions = "(.45|/
|
,s/versions = "(/versions = "(.46|/
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
EDIT
|
EDIT
|
||||||
|
@ -60,7 +60,8 @@ do_build() {
|
||||||
for _p in \
|
for _p in \
|
||||||
dist/nimble/src/nimble \
|
dist/nimble/src/nimble \
|
||||||
tools/nimgrep \
|
tools/nimgrep \
|
||||||
nimsuggest/nimsuggest
|
nimsuggest/nimsuggest \
|
||||||
|
nimpretty/nimpretty
|
||||||
do
|
do
|
||||||
bin/nim c -d:release --os:linux --cpu:$_arch --listCmd $_p
|
bin/nim c -d:release --os:linux --cpu:$_arch --listCmd $_p
|
||||||
mv $_p bin
|
mv $_p bin
|
||||||
|
@ -80,7 +81,7 @@ do_install() {
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
vmkdir usr/share/nim
|
vmkdir usr/share/nim
|
||||||
ln -sf /usr/lib/nim/bin/nim ${DESTDIR}/usr/bin/nim
|
ln -sf /usr/lib/nim/bin/nim ${DESTDIR}/usr/bin/nim
|
||||||
for _f in nimble nimsuggest nimgrep; do
|
for _f in nimble nimsuggest nimgrep nimpretty; do
|
||||||
chmod 0755 bin/$_f
|
chmod 0755 bin/$_f
|
||||||
cp bin/$_f ${DESTDIR}/usr/lib/nim/bin
|
cp bin/$_f ${DESTDIR}/usr/lib/nim/bin
|
||||||
ln -sf /usr/lib/nim/bin/$_f ${DESTDIR}/usr/bin/$_f
|
ln -sf /usr/lib/nim/bin/$_f ${DESTDIR}/usr/bin/$_f
|
||||||
|
|
Loading…
Reference in New Issue