From 1c09802fd645ef2bca0d048aaeb51faa1de38392 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 24 Apr 2021 16:26:30 -0400 Subject: dev-util/binaryen: new package --- dev-util/binaryen/binaryen-101.ebuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dev-util/binaryen/binaryen-101.ebuild (limited to 'dev-util/binaryen/binaryen-101.ebuild') diff --git a/dev-util/binaryen/binaryen-101.ebuild b/dev-util/binaryen/binaryen-101.ebuild new file mode 100644 index 0000000..e03a08d --- /dev/null +++ b/dev-util/binaryen/binaryen-101.ebuild @@ -0,0 +1,35 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Compiler and toolchain infrastructure library for WebAssembly" +HOMEPAGE="https://github.com/WebAssembly/binaryen" +SRC_URI="https://github.com/WebAssembly/binaryen/archive/version_${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +# broken +RESTRICT="test" + +S="${WORKDIR}/binaryen-version_${PV}" + +PATCHES=(${FILESDIR}/binaryen-undo-compile-flag-braindamage.patch) + +src_configure() { + local mycmakeargs=( + -DENABLE_WERROR=no + -DBUILD_LLVM_DWARF=no + ) + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}" || die + ${S}/check.py || die +} -- cgit v1.2.3-54-g00ecf