diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-09-09 10:42:54 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-09-09 10:43:02 +0100 |
commit | 825ce3a7ac5e34943946823852013b43335ec3ac (patch) | |
tree | 896e3b7eb98107dc8322348d37941ff31dd080f1 | |
parent | sec-policy: Release of SELinux policies 2.20170805-r1 (diff) | |
download | gentoo-825ce3a7ac5e34943946823852013b43335ec3ac.tar.gz gentoo-825ce3a7ac5e34943946823852013b43335ec3ac.tar.bz2 gentoo-825ce3a7ac5e34943946823852013b43335ec3ac.zip |
dev-lang/nim: bump up to 0.17.2
Package-Manager: Portage-2.3.8, Repoman-2.3.3
-rw-r--r-- | dev-lang/nim/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/nim/nim-0.17.2.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-lang/nim/Manifest b/dev-lang/nim/Manifest index 2dbcb31fa7fc..4a51ca3b99a3 100644 --- a/dev-lang/nim/Manifest +++ b/dev-lang/nim/Manifest @@ -1,2 +1,3 @@ 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 +DIST nim-0.17.2.tar.xz 4083084 SHA256 aaff1b5023fc4a5708f1d7d9fd8e2a29f1a7f58bf496532ff1e9d7e7c7ec82bd SHA512 7b4ed1eb1e9067ce72b76b95c43ec74eb38f04611776c174ba6a697254a9253fed61258712fb938f15e662bb3b0d36138194fc8fa89bbcb4d22888263e5e2880 WHIRLPOOL c48b1447c38978675e4e3ac3698ab3ab585242776ef3781b03d125d4379786076c2e06d4687b2f155a707510c4634017fc320a42a113c11e25b75258b9f1bc1b diff --git a/dev-lang/nim/nim-0.17.2.ebuild b/dev-lang/nim/nim-0.17.2.ebuild new file mode 100644 index 000000000000..f26909ecc79b --- /dev/null +++ b/dev-lang/nim/nim-0.17.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 + +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="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 + + newbashcomp tools/nim.bash-completion ${PN} +} |