diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-02-26 10:23:57 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-02-26 10:25:24 +0000 |
commit | e42637aeece7bb0e03e08dfec4e5a5331b8fb302 (patch) | |
tree | 36d5eaf8effae14443730f908163f4d3226d8de3 /dev-lang/nim | |
parent | dev-util/diffoscope: drop old (diff) | |
download | gentoo-e42637aeece7bb0e03e08dfec4e5a5331b8fb302.tar.gz gentoo-e42637aeece7bb0e03e08dfec4e5a5331b8fb302.tar.bz2 gentoo-e42637aeece7bb0e03e08dfec4e5a5331b8fb302.zip |
dev-lang/nim: drop old
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-lang/nim')
-rw-r--r-- | dev-lang/nim/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/nim/nim-1.4.2.ebuild | 80 |
2 files changed, 0 insertions, 81 deletions
diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest index e5aeb22470f4..575d3bc3c0a4 100644 --- a/dev-lang/nim/Manifest +++ b/dev-lang/nim/Manifest @@ -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 diff --git a/dev-lang/nim/nim-1.4.2.ebuild b/dev-lang/nim/nim-1.4.2.ebuild deleted file mode 100644 index 9a273afb6271..000000000000 --- a/dev-lang/nim/nim-1.4.2.ebuild +++ /dev/null @@ -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} -} |