logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 14f7b8e1463e5fe79ff3a7126477b24927b0c15f
parent 9f1dc1a676b47c74e4448dcd7342008c48f371c6
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 24 Sep 2022 10:34:38 +0200

dev-lang/mrustc: New Package

Diffstat:

Adev-lang/mrustc/Manifest1+
Adev-lang/mrustc/mrustc-0.10.ebuild31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/dev-lang/mrustc/Manifest b/dev-lang/mrustc/Manifest @@ -0,0 +1 @@ +DIST mrustc-0.10.tar.gz 1180322 BLAKE2B 8fc34888076ca61e0115a0934c10c9357c7a3e76ed7fdde555082f9922d1d54bf9d759add7bd6ef57e30913748f2f1633f17e8ffed07ed12bc60b7f09e718bd8 SHA512 6d6e002700d97aed9d08ca3ab17574cfe83b8029067a9060ade3e68f49f3d3ff4ac801b002686306e0828824e6407b526907ca68df9d045eb8444aa4a353fdeb diff --git a/dev-lang/mrustc/mrustc-0.10.ebuild b/dev-lang/mrustc/mrustc-0.10.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Alternative rust compiler (re-implementation)" +HOMEPAGE="https://github.com/thepowersgang/mrustc" +SRC_URI="https://github.com/thepowersgang/mrustc/archive/refs/tags/v0.10.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +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 +} + +src_install() { + einstalldocs + dobin bin/mrustc +}