File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 11DIST nim-0.16.0.tar.xz 2907076 BLAKE2B 5f14bb2634da32deb810381edf817e3885382ffce0a35db0ae3faca818bb0f5646b1619609e971fbe93ef383f3c4060029bf51a12ef0b4df75ebf0dde12753b5 SHA512 6be1c00328b7e5bdaa9070e1cd0e3c6e1883c5bc1e44e9c574785f9bce93697f05753f598cf6fdaa6c5a66f08c2ad6f7afb8f6650fc3b1c8e461eb0cf80baabd
22DIST nim-0.17.0.tar.xz 25079320 BLAKE2B d01ade93ff299962aeea3dc9c90f0a8fe87acef8c2ee6d7d521d936c680aded0d8383221b7c11c3b2a8d6c28311c939456f271bbc90c1115acaae2c1987fa908 SHA512 90d709b39746fac5582b9df69d3eb9e3b7a39563a98f7a3002f00716b936e4e0d2be47d8b877878318692e6e2b85c08077dfcc20d9059573a1967402c244894b
33DIST nim-0.17.2.tar.xz 4083084 BLAKE2B c1a4134592bb6a57bfaf6174becb409e40075c77042964c639b39fe7b30f094bfc8d404d6e1e4e527a95333a8ee4597477f1052da1af58c3216042bb2f85c826 SHA512 7b4ed1eb1e9067ce72b76b95c43ec74eb38f04611776c174ba6a697254a9253fed61258712fb938f15e662bb3b0d36138194fc8fa89bbcb4d22888263e5e2880
4+ DIST nim-0.18.0.tar.xz 4412632 BLAKE2B f7286542daa4c3502f4edeb9d93e6a69169228a50248f1c5c02421cb8e70c0ab99bc84cc91b35a6227a4974345423eeb3b5ffecdb18e321b0a82eb8fd0879a16 SHA512 8f59cb4a8d44949cdd1154fb44df548005329da8255becf2f54083ce58323ff8d6cf7b2fdd86d4b1f446bd9f977e8eaf4b13c7ca6723da8a10c7b671954de772
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2018 Gentoo Foundation
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=6
5+
6+ inherit bash-completion-r1
7+
8+ DESCRIPTION=" compiled, garbage-collected systems programming language"
9+ HOMEPAGE=" https://nim-lang.org/"
10+ SRC_URI=" https://nim-lang.org/download/${P} .tar.xz"
11+
12+ LICENSE=" MIT"
13+ SLOT=" 0"
14+ KEYWORDS=" ~amd64 ~arm ~x86"
15+ IUSE=" doc +readline test"
16+
17+ DEPEND="
18+ readline? ( sys-libs/readline:0= )
19+ "
20+ RDEPEND=" ${DEPEND} "
21+
22+ nim_use_enable () {
23+ [[ -z $2 ]] && die " usage: nim_use_enable <USE flag> <compiler flag>"
24+ use $1 && echo " -d:$2 "
25+ }
26+
27+ src_compile () {
28+ ./build.sh || die " build.sh failed"
29+
30+ ./bin/nim c koch || die " csources nim failed"
31+ ./koch boot -d:release $( nim_use_enable readline useGnuReadline) || die " koch boot failed"
32+ # build nimble and friends
33+ PATH=" ./bin:$PATH " ./koch tools || die " koch tools failed"
34+
35+ if use doc; then
36+ PATH=" ./bin:$PATH " ./koch web || die " koch web failed"
37+ fi
38+ }
39+
40+ src_test () {
41+ PATH=" ./bin:$PATH " ./koch test || die " test suite failed"
42+ }
43+
44+ src_install () {
45+ PATH=" ./bin:$PATH " ./koch install " ${ED} /usr" || die " koch install failed"
46+ rm -r " ${ED} /usr/nim/doc" || die " failed to remove 'doc'"
47+
48+ dodir /usr/bin
49+ exeinto /usr/nim/bin
50+
51+ local bin_exe
52+ for bin_exe in bin/* ; do
53+ # './koch install' installs only 'nim' binary
54+ # but not the rest
55+ doexe " ${bin_exe} "
56+ dosym ../nim/" ${bin_exe} " /usr/" ${bin_exe} "
57+ done
58+
59+ if use doc; then
60+ insinto /usr/share/doc/${PF}
61+ dodoc doc/* .html
62+ fi
63+
64+ newbashcomp tools/nim.bash-completion ${PN}
65+ }
You can’t perform that action at this time.
0 commit comments