Merge pull request #1546 from allan/nim

nim: update to 0.11.2
This commit is contained in:
Juan RP 2015-05-12 18:30:38 +02:00
commit 5e70ecd2e7
1 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'nim' # Template file for 'nim'
pkgname=nim pkgname=nim
version=0.11.0 version=0.11.2
revision=1 revision=1
depends="gcc" depends="gcc"
hostmakedepends="libzip git ed" hostmakedepends="libzip git ed"
@ -9,7 +9,7 @@ maintainer="allan <mail@may.mooo.com>"
license="MIT" license="MIT"
homepage="http://nim-lang.org/" homepage="http://nim-lang.org/"
distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz" distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz"
checksum=3b594547ca673f37bd3ea28ab18954523652df862976f94a0dadae71f6ba27aa checksum=8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6
wrksrc=Nim-$version wrksrc=Nim-$version
post_extract() { post_extract() {
@ -21,7 +21,7 @@ post_extract() {
do_build() { do_build() {
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
arm*) arm*)
ed >/dev/null 2>&1 config/nim.cfg <<-EDIT ed config/nim.cfg <<-EDIT
,s/^arm.linux.gcc.exe .*/arm.linux.gcc.exe = "$CC"/ ,s/^arm.linux.gcc.exe .*/arm.linux.gcc.exe = "$CC"/
,s/^arm.linux.gcc.linkerexe .*/arm.linux.gcc.linkerexe = "$CC"/ ,s/^arm.linux.gcc.linkerexe .*/arm.linux.gcc.linkerexe = "$CC"/
w w
@ -31,12 +31,17 @@ do_build() {
cd csources && sh build.sh cd csources && sh build.sh
cd .. cd ..
ed koch.nim <<-EDIT
ed >/dev/null 2>&1 koch.nim <<-EDIT
,s/-d:useLibzipSrc// ,s/-d:useLibzipSrc//
w w
q q
EDIT EDIT
ed lib/wrappers/zip/libzip.nim <<-EDIT
,s/.2|.1|.0/.4/
w
q
EDIT
bin/nim c koch bin/nim c koch
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
@ -53,6 +58,5 @@ do_install() {
fi fi
vmkdir usr/bin vmkdir usr/bin
ln -s /usr/lib/nim/bin/nim \ ln -sf /usr/lib/nim/bin/nim ${DESTDIR}/usr/bin/nim
${DESTDIR}/usr/bin/nim
} }