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 AD32D13835A for ; Wed, 24 Feb 2021 08:16:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB160E0841; Wed, 24 Feb 2021 08:16:57 +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 B393EE0841 for ; Wed, 24 Feb 2021 08:16:57 +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 4CAE2335D46 for ; Wed, 24 Feb 2021 08:16:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 92891C3 for ; Wed, 24 Feb 2021 08:16:54 +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: <1614154610.bc9a087710d64005c348119993cf854ed97c5dbf.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/nim/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/nim/Manifest dev-lang/nim/nim-1.4.4.ebuild X-VCS-Directories: dev-lang/nim/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: bc9a087710d64005c348119993cf854ed97c5dbf X-VCS-Branch: master Date: Wed, 24 Feb 2021 08:16:54 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ee2401eb-e31c-4495-a832-dae66422ce02 X-Archives-Hash: beea0f2408f60131c561b009df39113f commit: bc9a087710d64005c348119993cf854ed97c5dbf Author: Sergei Trofimovich gentoo org> AuthorDate: Wed Feb 24 08:12:16 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Feb 24 08:16:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc9a0877 dev-lang/nim: bump up to 1.4.4 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> dev-lang/nim/Manifest | 1 + dev-lang/nim/nim-1.4.4.ebuild | 80 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest index a8f288975e8..e5aeb22470f 100644 --- a/dev-lang/nim/Manifest +++ b/dev-lang/nim/Manifest @@ -1 +1,2 @@ DIST nim-1.4.2.tar.xz 4770616 BLAKE2B 95561a22fedaa1eb42f099589b7b13e6833d1804d1d9bf8c4ec6514a4db89622d7f678b19ce9bed1c3ac5dffa3956b73e6b12fa6335f8e39a8b0dee90ae50457 SHA512 a357eaa5ef6c71b296fe6c53ed25be8b864a2895871a4ef6f23f2d31ce1c17d6dfb12eaf2bb8e71d122b7cf46746873109f424388ac2b6e84826699c1c5493fe +DIST nim-1.4.4.tar.xz 4686420 BLAKE2B ad59365b07c04bace859f18f5bbbc8178e21ae69ab7e87dd68d80f6c95bbfdb6e738057e543c4fb562af07cc2085204c1a4f6a2bf7c0352f51f6b46f3cb680d1 SHA512 42db962295a6014ccb3e2df3c07248a3abac863169f16af0c947dc97ca1ada683484f95773dc5fc11118001e9a48f116787d34d71aa77bef18877ce04e1f4fe9 diff --git a/dev-lang/nim/nim-1.4.4.ebuild b/dev-lang/nim/nim-1.4.4.ebuild new file mode 100644 index 00000000000..3c52ea807c2 --- /dev/null +++ b/dev-lang/nim/nim-1.4.4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 multiprocessing toolchain-funcs + +DESCRIPTION="compiled, garbage-collected systems programming language" +HOMEPAGE="https://nim-lang.org/" +SRC_URI="https://nim-lang.org/download/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+readline test" + +RESTRICT=test # need to sort out depends and numerous failures + +RDEPEND=" + readline? ( sys-libs/readline:0= ) +" +DEPEND=" + ${DEPEND} + test? ( net-libs/nodejs ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.20.0-paths.patch +) + +_run() { + echo "$@" + "$@" || die "'$*' failed" +} + +nim_use_enable() { + [[ -z $2 ]] && die "usage: nim_use_enable " + use $1 && echo "-d:$2" +} + +src_configure() { + export XDG_CACHE_HOME=${T}/cache #667182 + tc-export CC LD + + # Override default CC=gcc. + echo "gcc.exe = \"$(tc-getCC)\"" >> config/nim.cfg || die + echo "gcc.linkerexe = \"$(tc-getCC)\"" >> config/nim.cfg || die + echo "gcc.cpp.exe = \"$(tc-getCXX)\"" >> config/nim.cfg || die + echo "gcc.cpp.linkerexe = \"$(tc-getCXX)\"" >> config/nim.cfg || die +} + +src_compile() { + + _run ./build.sh + + _run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch + _run ./koch boot --parallelBuild:$(makeopts_jobs) -d:release $(nim_use_enable readline useGnuReadline) + PATH="./bin:$PATH" _run ./koch tools --parallelBuild:$(makeopts_jobs) +} + +src_test() { + PATH="./bin:$PATH" _run ./koch test --parallelBuild:$(makeopts_jobs) +} + +src_install() { + PATH="./bin:$PATH" _run ./koch install "${ED}" + rm -r "${ED}/usr/share/nim/doc" || die "failed to remove 'doc'" + + exeinto /usr/bin + + local bin_exe + for bin_exe in bin/*; do + # './koch install' installs only 'nim' binary + # but not the rest + [[ ${bin_exe} == bin/nim ]] && continue + doexe "${bin_exe}" + done + + newbashcomp tools/nim.bash-completion ${PN} +}