1 |
commit: 31823df6e0e369700e8790e80e922ba0ff59bf6d |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 22:39:05 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 22:43:28 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31823df6 |
7 |
|
8 |
dev-lang/nim: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-lang/nim/Manifest | 1 - |
14 |
dev-lang/nim/nim-1.2.2.ebuild | 86 ------------------------------------------- |
15 |
2 files changed, 87 deletions(-) |
16 |
|
17 |
diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest |
18 |
index 7ef15cd44d7..cf08663261a 100644 |
19 |
--- a/dev-lang/nim/Manifest |
20 |
+++ b/dev-lang/nim/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST nim-1.2.2.tar.xz 5680316 BLAKE2B e7c0b2d3f4624f4287c364bc7e9571c21bd41327ab35ef4f6c23b0d1e70ad3e41fa944464299b252faac4fe34a8a15625ef732083a41a02cc5686892162b6f4d SHA512 95f7b03a091113382298d438d27641cf612fc187a29bda66c3b88a4b6d29f5c20a33dd22c63cbd402f4ccd921bf05fbd144a8bea9c6155ab865b4b5d14b93a13 |
23 |
DIST nim-1.2.4.tar.xz 5680128 BLAKE2B d8bb186862bf8c8e7e20dd5d1035013c6d48de777512658736ddcd49723e5789dc1e8fe6b5dc8bfbda36d204aeaeba3fdb4e10c6d7955fdc47d9fe78ce17082c SHA512 ed5dd7a744229685c9c034700eb0f7d7c51030ea344c1c371cf2731632fd3376b577a3a9731ed79d65a8fb69f3507a8a88408f2e5c46359a8bbd3b3092d991cc |
24 |
|
25 |
diff --git a/dev-lang/nim/nim-1.2.2.ebuild b/dev-lang/nim/nim-1.2.2.ebuild |
26 |
deleted file mode 100644 |
27 |
index 78fadad3c55..00000000000 |
28 |
--- a/dev-lang/nim/nim-1.2.2.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,86 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-inherit bash-completion-r1 multiprocessing toolchain-funcs |
37 |
- |
38 |
-DESCRIPTION="compiled, garbage-collected systems programming language" |
39 |
-HOMEPAGE="https://nim-lang.org/" |
40 |
-SRC_URI="https://nim-lang.org/download/${P}.tar.xz" |
41 |
- |
42 |
-LICENSE="MIT" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~amd64 ~arm ~x86" |
45 |
-IUSE="doc +readline test" |
46 |
- |
47 |
-RESTRICT=test # need to sort out depends and numerous failures |
48 |
- |
49 |
-RDEPEND=" |
50 |
- readline? ( sys-libs/readline:0= ) |
51 |
-" |
52 |
-DEPEND=" |
53 |
- ${DEPEND} |
54 |
- test? ( net-libs/nodejs ) |
55 |
-" |
56 |
- |
57 |
-PATCHES=( |
58 |
- "${FILESDIR}"/${PN}-0.20.0-paths.patch |
59 |
-) |
60 |
- |
61 |
-_run() { |
62 |
- echo "$@" |
63 |
- "$@" || die "'$*' failed" |
64 |
-} |
65 |
- |
66 |
-nim_use_enable() { |
67 |
- [[ -z $2 ]] && die "usage: nim_use_enable <USE flag> <compiler flag>" |
68 |
- use $1 && echo "-d:$2" |
69 |
-} |
70 |
- |
71 |
-src_configure() { |
72 |
- export XDG_CACHE_HOME=${T}/cache #667182 |
73 |
- tc-export CC LD |
74 |
- |
75 |
- # Override default CC=gcc. |
76 |
- echo "gcc.exe = \"$(tc-getCC)\"" >> config/nim.cfg || die |
77 |
- echo "gcc.linkerexe = \"$(tc-getCC)\"" >> config/nim.cfg || die |
78 |
-} |
79 |
- |
80 |
-src_compile() { |
81 |
- |
82 |
- _run ./build.sh |
83 |
- |
84 |
- _run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch |
85 |
- _run ./koch boot --parallelBuild:$(makeopts_jobs) -d:release $(nim_use_enable readline useGnuReadline) |
86 |
- # build nimble and friends |
87 |
- # --stable to avoid pulling HEAD nimble |
88 |
- PATH="./bin:$PATH" _run ./koch --stable tools --parallelBuild:$(makeopts_jobs) |
89 |
- |
90 |
- if use doc; then |
91 |
- # TODO: '--parallelBuild:' does ont seem to work |
92 |
- PATH="./bin:$PATH" _run ./koch doc --parallelBuild:$(makeopts_jobs) |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
-src_test() { |
97 |
- PATH="./bin:$PATH" _run ./koch test --parallelBuild:$(makeopts_jobs) |
98 |
-} |
99 |
- |
100 |
-src_install() { |
101 |
- PATH="./bin:$PATH" _run ./koch install "${ED}" |
102 |
- rm -r "${ED}/usr/share/nim/doc" || die "failed to remove 'doc'" |
103 |
- |
104 |
- exeinto /usr/bin |
105 |
- |
106 |
- local bin_exe |
107 |
- for bin_exe in bin/*; do |
108 |
- # './koch install' installs only 'nim' binary |
109 |
- # but not the rest |
110 |
- [[ ${bin_exe} == bin/nim ]] && continue |
111 |
- doexe "${bin_exe}" |
112 |
- done |
113 |
- |
114 |
- use doc && dodoc doc/html/*.html |
115 |
- newbashcomp tools/nim.bash-completion ${PN} |
116 |
-} |