wabt-1.0.28.ebuild (788B)
1 # Copyright 2022 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=8 5 6 DESCRIPTION="The WebAssembly Binary Toolkit" 7 HOMEPAGE="https://github.com/WebAssembly/wabt" 8 SRC_URI="https://github.com/WebAssembly/${PN}/releases/download/${PV}/${P}.tar.xz" 9 10 inherit cmake 11 12 LICENSE="Apache-2.0" 13 SLOT="0" 14 KEYWORDS="~amd64" 15 IUSE="clang" 16 17 DEPEND="" 18 RDEPEND="${DEPEND}" 19 BDEPEND+=" clang? ( sys-devel/clang:13 )" 20 21 src_configure () { 22 local mycmakeargs=( 23 "-Wno-dev" 24 "-DCMAKE_BUILD_TYPE=Release" 25 ) 26 if use clang; then 27 mycmakeargs+=( 28 "-DCMAKE_C_COMPILER=clang" 29 "-DCMAKE_CXX_COMPILER=clang++" 30 ) 31 else 32 mycmakeargs+=( 33 "-DCMAKE_C_COMPILER=gcc" 34 "-DCMAKE_CXX_COMPILER=g++" 35 ) 36 fi 37 cmake_src_configure || die 38 } 39 40 src_test () { 41 test/run-tests.py || die 42 }