commit 84644f589539025bd853eb7e1d3468d8c45f75b0 parent 1729e94ae6f772ad2f221542b3a265d0c7053223 Author: parazyd <parazyd@dyne.org> Date: Fri, 11 Mar 2022 18:49:24 +0100 dev-util/wabt: Add 1.0.27 Diffstat:
A | dev-util/wabt/Manifest | | | 1 | + |
A | dev-util/wabt/metadata.xml | | | 11 | +++++++++++ |
A | dev-util/wabt/wabt-1.0.27.ebuild | | | 42 | ++++++++++++++++++++++++++++++++++++++++++ |
3 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/dev-util/wabt/Manifest b/dev-util/wabt/Manifest @@ -0,0 +1 @@ +DIST wabt-1.0.27.tar.xz 1931104 BLAKE2B 41818cb4b951c92526853f79d8b962d45c11f3a77c4a81e768624758c1fb479b9e9ed2d33a60f67fefbf535f538b9ab5efef7906da3913259d330f0ceb512ff6 SHA512 d80cd837980eefc7346d63580291961a69e913e33dc94cc31e343814e178c42be321fc375a20b7c00d1aa5afeb1f6b8640822e5418d49cd4d20d803a60d7bac5 diff --git a/dev-util/wabt/metadata.xml b/dev-util/wabt/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pinicarus@protonmail.com</email> + <name>Pierre-Nicolas Clauss</name> + </maintainer> + <upstream> + <remote-id type="github">WebAssembly/wabt</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/wabt/wabt-1.0.27.ebuild b/dev-util/wabt/wabt-1.0.27.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="The WebAssembly Binary Toolkit" +HOMEPAGE="https://github.com/WebAssembly/wabt" +SRC_URI="https://github.com/WebAssembly/${PN}/releases/download/${PV}/${P}.tar.xz" + +inherit cmake + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="clang" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND+=" clang? ( sys-devel/clang:13 )" + +src_configure () { + local mycmakeargs=( + "-Wno-dev" + "-DCMAKE_BUILD_TYPE=Release" + ) + if use clang; then + mycmakeargs+=( + "-DCMAKE_C_COMPILER=clang" + "-DCMAKE_CXX_COMPILER=clang++" + ) + else + mycmakeargs+=( + "-DCMAKE_C_COMPILER=gcc" + "-DCMAKE_CXX_COMPILER=g++" + ) + fi + cmake_src_configure || die +} + +src_test () { + test/run-tests.py || die +}