dev-lang/nim: drop old

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2021-02-26 10:25:24 +00:00
parent 07934ab714
commit e42637aeec
2 changed files with 0 additions and 81 deletions
-1
View File
@@ -1,2 +1 @@
DIST nim-1.4.2.tar.xz 4770616 BLAKE2B 95561a22fedaa1eb42f099589b7b13e6833d1804d1d9bf8c4ec6514a4db89622d7f678b19ce9bed1c3ac5dffa3956b73e6b12fa6335f8e39a8b0dee90ae50457 SHA512 a357eaa5ef6c71b296fe6c53ed25be8b864a2895871a4ef6f23f2d31ce1c17d6dfb12eaf2bb8e71d122b7cf46746873109f424388ac2b6e84826699c1c5493fe
DIST nim-1.4.4.tar.xz 4686420 BLAKE2B ad59365b07c04bace859f18f5bbbc8178e21ae69ab7e87dd68d80f6c95bbfdb6e738057e543c4fb562af07cc2085204c1a4f6a2bf7c0352f51f6b46f3cb680d1 SHA512 42db962295a6014ccb3e2df3c07248a3abac863169f16af0c947dc97ca1ada683484f95773dc5fc11118001e9a48f116787d34d71aa77bef18877ce04e1f4fe9
-80
View File
@@ -1,80 +0,0 @@
# Copyright 1999-2020 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 flag> <compiler flag>"
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}
}