logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: e337d05ff40387c0657d1f80d9220b5977026fa2
parent b8e4b564da0720fe51c5b951f6961cfaa9741353
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 21 Oct 2023 04:31:00 +0200

dev-lang/wasm3: new package, add 0.5.0

Diffstat:

Adev-lang/wasm3/Manifest1+
Adev-lang/wasm3/wasm3-0.5.0.ebuild36++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/dev-lang/wasm3/Manifest b/dev-lang/wasm3/Manifest @@ -0,0 +1 @@ +DIST wasm3-0.5.0.tar.gz 2582080 BLAKE2B 5ae9fd2aa295cec6a737fa6a56f35ce85a5443dc7b517b019a14bfc30110f3eec7a2421c31905c980694e5017ec6852450c7773e92d4f67fd7af4d41f1de84ed SHA512 87d29f942ef9a93faeb4085f1fc7ae8c274a7bd528ccaaf56a273815c524e43c96635acd6b59ee607d5d0c383c1d1358d09080a0d1a23cf1dcaedcab6c56d39e diff --git a/dev-lang/wasm3/wasm3-0.5.0.ebuild b/dev-lang/wasm3/wasm3-0.5.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A fast WebAssembly interpreter and the most universal WASM runtime" +HOMEPAGE="https://github.com/wasm3/wasm3" +SRC_URI="https://github.com/wasm3/wasm3/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +src_prepare() { + # WASM blobs formatted as C headers + rm source/extra/*.wasm.h || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_WASI=simple + ) + + cmake_src_configure +} + +src_install() { + einstalldocs + + dobin "${BUILD_DIR}/wasm3" + dolib.a "${BUILD_DIR}source/libm3.a" +}