dev-lang/wabt: new package, add 1.0.29

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2022-09-30 04:08:27 +02:00
parent ede48e1b88
commit 407adcc94e
3 changed files with 54 additions and 0 deletions

1
dev-lang/wabt/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST wabt-1.0.29.tar.xz 1977856 BLAKE2B 08ad2cf96ba743dd094a05f51ab86341fb0403737b35ff8f4e5d5041dfd27994af0215565085f1a1818d847f4587c93e91cebc9f63df6b401f4f295101f6d760 SHA512 fa791c29ecc4e8795d5afa6ffd8fcb0b3e39b89f4b936611e86759aafcb77b91c7b02e899d07c8e9ee871ac66e40f44579ec788e2d18a87d4f48dbf795c6c045

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,45 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
inherit cmake python-any-r1
DESCRIPTION="The WebAssembly Binary Toolkit"
HOMEPAGE="https://github.com/WebAssembly/wabt"
SRC_URI="https://github.com/WebAssembly/wabt/releases/download/${PV}/${P}.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( dev-cpp/gtest )"
BDEPEND="${PYTHON_DEPS}"
src_prepare() {
cmake_src_prepare
# Submodules kept: third_party/testsuite third_party/wasm-c-api
rm -r third_party/gtest third_party/ply third_party/uvwasi || die
sed -i 's;default_compiler =.*;default_compiler = os.getenv("CC", "cc");' test/run-spec-wasm2c.py || die
}
src_configure() {
local mycmakeargs=(
-DUSE_SYSTEM_GTEST=ON
-DBUILD_LIBWASM=ON
-DWITH_WASI=OFF # Need to unbundle third_party/uvwasi
-DBUILD_TESTS=$(usex test)
)
cmake_src_configure
}
src_test() {
cmake_build check
}