From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1440878-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 2682A158095
	for <garchives@archives.gentoo.org>; Fri, 30 Sep 2022 07:45:02 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 53A3B2BC087;
	Fri, 30 Sep 2022 07:45:01 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 36AD32BC087
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Sep 2022 07:45:01 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 37C283410A7
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Sep 2022 07:45:00 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 99566599
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Sep 2022 07:44:58 +0000 (UTC)
From: "Ronny Gutbrod" <gentoo@tastytea.de>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" <gentoo@tastytea.de>
Message-ID: <1664503718.407adcc94e3bb5b95c580d1e5021ec34f287dd44.tastytea@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/wabt/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-lang/wabt/Manifest dev-lang/wabt/metadata.xml dev-lang/wabt/wabt-1.0.29.ebuild
X-VCS-Directories: dev-lang/wabt/
X-VCS-Committer: tastytea
X-VCS-Committer-Name: Ronny Gutbrod
X-VCS-Revision: 407adcc94e3bb5b95c580d1e5021ec34f287dd44
X-VCS-Branch: master
Date: Fri, 30 Sep 2022 07:44:58 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: edb269ae-cfa8-4d90-8895-0b5d1a4d25e7
X-Archives-Hash: cee576a56f189b80ec37165e74458c0e

commit:     407adcc94e3bb5b95c580d1e5021ec34f287dd44
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Sep 30 02:08:27 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Sep 30 02:08:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=407adcc9

dev-lang/wabt: new package, add 1.0.29

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 dev-lang/wabt/Manifest           |  1 +
 dev-lang/wabt/metadata.xml       |  8 +++++++
 dev-lang/wabt/wabt-1.0.29.ebuild | 45 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/dev-lang/wabt/Manifest b/dev-lang/wabt/Manifest
new file mode 100644
index 000000000..34c549d92
--- /dev/null
+++ b/dev-lang/wabt/Manifest
@@ -0,0 +1 @@
+DIST wabt-1.0.29.tar.xz 1977856 BLAKE2B 08ad2cf96ba743dd094a05f51ab86341fb0403737b35ff8f4e5d5041dfd27994af0215565085f1a1818d847f4587c93e91cebc9f63df6b401f4f295101f6d760 SHA512 fa791c29ecc4e8795d5afa6ffd8fcb0b3e39b89f4b936611e86759aafcb77b91c7b02e899d07c8e9ee871ac66e40f44579ec788e2d18a87d4f48dbf795c6c045

diff --git a/dev-lang/wabt/metadata.xml b/dev-lang/wabt/metadata.xml
new file mode 100644
index 000000000..c698af234
--- /dev/null
+++ b/dev-lang/wabt/metadata.xml
@@ -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>

diff --git a/dev-lang/wabt/wabt-1.0.29.ebuild b/dev-lang/wabt/wabt-1.0.29.ebuild
new file mode 100644
index 000000000..18e045454
--- /dev/null
+++ b/dev-lang/wabt/wabt-1.0.29.ebuild
@@ -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
+}