diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-05-18 21:22:04 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-05-18 21:23:16 +0100 |
commit | b2058e9a785ef46f077c256370c3ef570e641946 (patch) | |
tree | 675ff4e126796471fe5704d880044a8da160755d /dev-lang | |
parent | dev-python/setuptools: arm64 stable (bug 617156). (diff) | |
download | gentoo-b2058e9a785ef46f077c256370c3ef570e641946.tar.gz gentoo-b2058e9a785ef46f077c256370c3ef570e641946.tar.bz2 gentoo-b2058e9a785ef46f077c256370c3ef570e641946.zip |
dev-lang/nim: bump up to 0.17.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/nim/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/nim/nim-0.17.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest index 529675271dde..fc9f2cf7a4b2 100644 --- a/dev-lang/nim/Manifest +++ b/dev-lang/nim/Manifest @@ -2,3 +2,4 @@ DIST nim-0.14.2.tar.xz 4778444 SHA256 8f8d38d70ed57164795fc55e19de4c11488fcd31db DIST nim-0.15.0.tar.xz 3786260 SHA256 c514535050b2b2156147bbe6e23aafe07cd996b2afa2c81fa9a09e1cd8c669fb SHA512 b115ed08e888a1a92fca601ca5580815ed7c1e8baf158a4bc6d351933f99a06fb4725983feae2fded50ce46c46c5b3ca6485671e66eb71962dc2a2956bc83fd8 WHIRLPOOL 15312851dbeda771dfa6f9a061d6a8358e847668efba2a31f8506c4b9398bd96d02d587c55bab0955714d6894877c3cbf7be9625e4802ca17a150c678b5b245a DIST nim-0.15.2.tar.xz 3251764 SHA256 905df2316262aa2cbacae067acf45fc05c2a71c8c6fde1f2a70c927ebafcfe8a SHA512 708bcb5e4defed46982eff6434e9a54505d744e65336129f0fadc187ec3e6d538974b67ad1d0305e7d55e33582bfaa87c52224335d169517714a9f07b533eda6 WHIRLPOOL fae86470d350aca4c65fcdc73a02a3f94eb288642a7294374581eb0e3bc3cc5e92d0bc48a2daec16fee54a1376722289886f7438fbf13b8645305f38d26ab902 DIST nim-0.16.0.tar.xz 2907076 SHA256 9e199823be47cba55e62dd6982f02cf0aad732f369799fec42a4d8c2265c5167 SHA512 6be1c00328b7e5bdaa9070e1cd0e3c6e1883c5bc1e44e9c574785f9bce93697f05753f598cf6fdaa6c5a66f08c2ad6f7afb8f6650fc3b1c8e461eb0cf80baabd WHIRLPOOL 425454faab87c0144712c50a114f9fc05dd2676b8d85b1de1cb7569403d60a557c41990ca03bfa04156289e49f1d2e6906a5b798341f642cea9c325546b38e41 +DIST nim-0.17.0.tar.xz 25079320 SHA256 36e18dd9384f6c67e6d0199b871b43e774a0af30532698184d6f5a9cc9ac7a9b SHA512 90d709b39746fac5582b9df69d3eb9e3b7a39563a98f7a3002f00716b936e4e0d2be47d8b877878318692e6e2b85c08077dfcc20d9059573a1967402c244894b WHIRLPOOL 5c934a10e7c67a11964436ba3fe332320a6cc9fff15f93ce71e844024e48f77e6a809212882338ac6b3024bb15d2b0314068b643c251c65dfa258bb6daa52599 diff --git a/dev-lang/nim/nim-0.17.0.ebuild b/dev-lang/nim/nim-0.17.0.ebuild new file mode 100644 index 000000000000..0807e9d664e5 --- /dev/null +++ b/dev-lang/nim/nim-0.17.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="compiled, garbage-collected systems programming language" +HOMEPAGE="http://nim-lang.org/" +SRC_URI="http://nim-lang.org/download/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc +readline test" + +DEPEND=" + readline? ( sys-libs/readline:0= ) +" +RDEPEND="${DEPEND}" + +nim_use_enable() { + [[ -z $2 ]] && die "usage: nim_use_enable <USE flag> <compiler flag>" + use $1 && echo "-d:$2" +} + +src_compile() { + ./build.sh || die "build.sh failed" + + ./bin/nim c koch || die "csources nim failed" + ./koch boot -d:release $(nim_use_enable readline useGnuReadline) || die "koch boot failed" + + if use doc; then + PATH="./bin:$PATH" ./koch web || die "koch web failed" + fi +} + +src_test() { + PATH="./bin:$PATH" ./koch test || die "test suite failed" +} + +src_install() { + ./koch install "${D}/usr" || die "koch install failed" + rm -r "${D}/usr/nim/doc" || die "failed to remove 'doc'" + + dodir /usr/bin + dosym ../nim/bin/nim /usr/bin/nim + + if use doc; then + insinto /usr/share/doc/${PF} + dodoc doc/*.html + fi +} |