From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EF1961382C5 for ; Sun, 4 Mar 2018 17:06:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29DD5E0880; Sun, 4 Mar 2018 17:06:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 030B4E0880 for ; Sun, 4 Mar 2018 17:06:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E86CB335CBA for ; Sun, 4 Mar 2018 17:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 785ED248 for ; Sun, 4 Mar 2018 17:06:24 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1520183175.c2b6ae3fe67aa84f1de91f0d0d4779d9e836713f.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/nim/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/nim/nim-0.18.0.ebuild X-VCS-Directories: dev-lang/nim/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: c2b6ae3fe67aa84f1de91f0d0d4779d9e836713f X-VCS-Branch: master Date: Sun, 4 Mar 2018 17:06:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 33fd297a-7751-403d-92d1-584e2e708af6 X-Archives-Hash: 5759cd7d53bfab3b4a355f35da66775c commit: c2b6ae3fe67aa84f1de91f0d0d4779d9e836713f Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Mar 4 17:05:56 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Mar 4 17:06:15 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2b6ae3f dev-lang/nim: add custome command logging, use makeopts Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-lang/nim/nim-0.18.0.ebuild | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/dev-lang/nim/nim-0.18.0.ebuild b/dev-lang/nim/nim-0.18.0.ebuild index 72b78f95f1c..0f55aec3856 100644 --- a/dev-lang/nim/nim-0.18.0.ebuild +++ b/dev-lang/nim/nim-0.18.0.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit bash-completion-r1 +inherit bash-completion-r1 multiprocessing DESCRIPTION="compiled, garbage-collected systems programming language" HOMEPAGE="https://nim-lang.org/" @@ -22,30 +22,35 @@ DEPEND=" test? ( net-libs/nodejs ) " +_run() { + echo "$@" + "$@" || die "'$*' failed" +} + nim_use_enable() { [[ -z $2 ]] && die "usage: nim_use_enable " use $1 && echo "-d:$2" } src_compile() { - ./build.sh || die "build.sh failed" + _run ./build.sh - ./bin/nim c koch || die "csources nim failed" - ./koch boot -d:release $(nim_use_enable readline useGnuReadline) || die "koch boot failed" + _run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch + _run ./koch boot --parallelBuild:$(makeopts_jobs) -d:release $(nim_use_enable readline useGnuReadline) # build nimble and friends - PATH="./bin:$PATH" ./koch tools || die "koch tools failed" + PATH="./bin:$PATH" _run ./koch tools if use doc; then - PATH="./bin:$PATH" ./koch web || die "koch web failed" + PATH="./bin:$PATH" _run ./koch web fi } src_test() { - PATH="./bin:$PATH" ./koch test || die "test suite failed" + PATH="./bin:$PATH" _run ./koch test } src_install() { - PATH="./bin:$PATH" ./koch install "${ED}/usr" || die "koch install failed" + PATH="./bin:$PATH" _run ./koch install "${ED}/usr" rm -r "${ED}/usr/nim/doc" || die "failed to remove 'doc'" dodir /usr/bin