dev-util/wabt - 1.0.39 (pentoo)

Search

Install

Install this version:

emerge -a =dev-util/wabt-1.0.39

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/wabt-1.0.39

Or alternatively:

emerge --autounmask-write -a =dev-util/wabt-1.0.39

Package Information

Description:
The WebAssembly Binary Toolkit
Homepage:
https://github.com/WebAssembly/wabt
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
1.0.39 8 ~amd64 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )

EGIT_COMMIT_TESTSUITE="d76759e746f3564a03f6106ae19679742f2a1831"
EGIT_COMMIT_WASM_C_API="b6dd1fb658a282c64b029867845bc50ae59e1497"

inherit cmake python-any-r1

DESCRIPTION="The WebAssembly Binary Toolkit"
HOMEPAGE="https://github.com/WebAssembly/wabt"
SRC_URI="
	https://github.com/WebAssembly/wabt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/WebAssembly/testsuite/archive/${EGIT_COMMIT_TESTSUITE}.tar.gz -> \
		WebAssembly-testsuite-${EGIT_COMMIT_TESTSUITE}.tar.gz
	https://github.com/WebAssembly/wasm-c-api/archive/${EGIT_COMMIT_WASM_C_API}.tar.gz -> \
		WebAssembly-wasm-c-api-${EGIT_COMMIT_WASM_C_API}.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RESTRICT="!test? ( test )"

RDEPEND="dev-libs/openssl:="
DEPEND="
	${RDEPEND}
	test? (
		dev-cpp/gtest
		dev-libs/simde
	)
"
BDEPEND="
	${PYTHON_DEPS}
	$(python_gen_any_dep 'dev-python/ply[${PYTHON_USEDEP}]')
"

PATCHES=(
	# Disable tests depending on third_party/wasm-c-api/example/*.wasm
	#"${FILESDIR}/wabt-1.0.30-wasm-blob-tests.patch"
)

python_check_deps() {
	python_has_version "dev-python/ply[${PYTHON_USEDEP}]"
}

src_prepare() {
	cmake_src_prepare

	rm -r third_party/testsuite || die
	mv "${WORKDIR}/testsuite-${EGIT_COMMIT_TESTSUITE}" third_party/testsuite || die

	rm -r third_party/wasm-c-api || die
	mv "${WORKDIR}/wasm-c-api-${EGIT_COMMIT_WASM_C_API}" third_party/wasm-c-api || die

	rm -v fuzz-in/wasm/stuff.wasm || die
	# wasm2c/examples/fac/fac.wasm || die

	use test || rm -v third_party/wasm-c-api/example/*.wasm || die

	sed -i 's;default_compiler =.*;default_compiler = os.getenv("CC", "cc");' test/run-spec-wasm2c.py || die

	# Broken tests
	rm test/wasm2c/spec/simd_lane.txt test/wasm2c/spec/simd_load.txt
}

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/wabt | euse -E <flag> -p dev-util/wabt | euse -D <flag> -p dev-util/wabt

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/openssl:=
	test? (
		dev-cpp/gtest
		dev-libs/simde
	)

RDEPEND

dev-libs/openssl:=

BDEPEND

	${PYTHON_DEPS}
	$(python_gen_any_dep 'dev-python/ply[${PYTHON_USEDEP}]')

Manifest for 1.0.39

Type File Size Source URLs
DIST WebAssembly-testsuite-d76759e746f3564a03f6106ae19679742f2a1831.tar.gz 802008 bytes https://github.com/WebAssembly/testsuite/archive/d76759e746f3564a03f6106ae19679742f2a1831.tar.gz
DIST WebAssembly-wasm-c-api-b6dd1fb658a282c64b029867845bc50ae59e1497.tar.gz 57078 bytes https://github.com/WebAssembly/wasm-c-api/archive/b6dd1fb658a282c64b029867845bc50ae59e1497.tar.gz
DIST wabt-1.0.39.tar.gz 1405906 bytes https://github.com/WebAssembly/wabt/archive/refs/tags/1.0.39.tar.gz