commit
8580441a0b
1 changed files with 19 additions and 26 deletions
|
@ -1,18 +1,18 @@
|
||||||
# Template file for 'nim'
|
# Template file for 'nim'
|
||||||
pkgname=nim
|
pkgname=nim
|
||||||
version=0.11.2
|
version=0.12.0
|
||||||
revision=2
|
revision=1
|
||||||
_csources_commit=c2c13f5a60dc635d1a9746e630cfb127348430cb
|
_csources_commit=c2c13f5a60dc635d1a9746e630cfb127348430cb
|
||||||
depends="gcc"
|
depends="gcc"
|
||||||
hostmakedepends="libzip ed"
|
hostmakedepends="ed"
|
||||||
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"
|
||||||
homepage="http://nim-lang.org/"
|
homepage="http://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
|
||||||
http://github.com/nim-lang/csources/archive/$_csources_commit.tar.gz"
|
http://github.com/nim-lang/csources/archive/$_csources_commit.tar.gz"
|
||||||
checksum="8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6
|
checksum="52e57ad9221e6223e53f612a93046ef9287d92619411ac57a7237dadbf7172bd
|
||||||
876d730d2a7c034b82626d892c65e1b26caa30bc4471c40067a56dc4404a2cfd"
|
876d730d2a7c034b82626d892c65e1b26caa30bc4471c40067a56dc4404a2cfd"
|
||||||
wrksrc=Nim-$version
|
wrksrc=Nim-$version
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
@ -21,6 +21,13 @@ post_extract() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
cd csources
|
||||||
|
sh build.sh
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
bin/nim c koch
|
||||||
|
./koch boot -d:release
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*)
|
arm*)
|
||||||
ed config/nim.cfg <<-EDIT
|
ed config/nim.cfg <<-EDIT
|
||||||
|
@ -29,26 +36,7 @@ do_build() {
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
EDIT
|
EDIT
|
||||||
esac
|
bin/nim c -d:release --os:linux --cpu:arm compiler/nim;;
|
||||||
|
|
||||||
cd csources && sh build.sh
|
|
||||||
cd ..
|
|
||||||
ed koch.nim <<-EDIT
|
|
||||||
,s/-d:useLibzipSrc//
|
|
||||||
w
|
|
||||||
q
|
|
||||||
EDIT
|
|
||||||
ed lib/wrappers/zip/libzip.nim <<-EDIT
|
|
||||||
,s/.2|.1|.0/.4/
|
|
||||||
w
|
|
||||||
q
|
|
||||||
EDIT
|
|
||||||
|
|
||||||
bin/nim c koch
|
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
arm*) bin/nim c -d:release --os:linux --cpu:arm compiler/nim;;
|
|
||||||
*) ./koch boot -d:release
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,5 +48,10 @@ do_install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
|
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
|
||||||
|
cp -r doc examples ${DESTDIR}/usr/lib/nim
|
||||||
|
ln -sf /usr/lib/nim/doc ${DESTDIR}/usr/share/nim/doc
|
||||||
|
ln -sf /usr/lib/nim/examples ${DESTDIR}/usr/share/nim/examples
|
||||||
|
vlicense copying.txt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue