mrustc-0.10.1.54.0.ebuild (1181B)
- # Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
- # Distributed under the terms of the GNU General Public License v2
- EAPI=8
- inherit verify-sig
- MRUSTC_V="0.10"
- RUSTC_V="1.54.0"
- DESCRIPTION="Alternative rust compiler (re-implementation)"
- HOMEPAGE="https://github.com/thepowersgang/mrustc"
- SRC_URI="
- https://static.rust-lang.org/dist/rustc-${RUSTC_V}-src.tar.xz
- verify-sig? ( https://static.rust-lang.org/dist/rustc-${RUSTC_V}-src.tar.xz.asc )
- https://github.com/thepowersgang/mrustc/archive/refs/tags/v${MRUSTC_V}.tar.gz -> mrustc-${MRUSTC_V}.tar.gz
- "
- LICENSE="MIT"
- SLOT="0"
- KEYWORDS="~amd64"
- IUSE="verify-sig"
- DEPENDS="sys-libs/zlib:="
- DOCS=( docs/ Notes/ README.md )
- src_prepare() {
- default
- sed -i \
- -e 's/\$(shell git symbolic-ref -q --short HEAD || git describe --tags --exact-match)/v${PV}/' \
- -e 's/\$(shell git diff-index --quiet HEAD; echo $$?)/0/' \
- Makefile || die
- sed -i '/objcopy --only-keep-debug/,/strip/d' Makefile || die
- sed -i '/objcopy --only-keep-debug/,/strip/d' tools/minicargo/Makefile || die
- }
- src_compile() {
- emake all
- emake -C tools/minicargo
- }
- src_install() {
- einstalldocs
- dobin bin/mrustc
- dobin bin/minicargo
- }