dev-util/binaryen: Downgrade to release. - parlay - yet another gentoo overlay
HTML git clone https://git.parazyd.org/parlay
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 08fdf20e9fb5663205a16ad3a7569efa8d24bc68
DIR parent 47714654851ab3225f690b1de3d5782c3df03d2e
HTML Author: parazyd <parazyd@dyne.org>
Date: Tue, 2 Feb 2021 10:45:45 +0100
dev-util/binaryen: Downgrade to release.
Diffstat:
A dev-util/binaryen/Manifest | 1 +
A dev-util/binaryen/binaryen-98.ebui… | 29 +++++++++++++++++++++++++++++
D dev-util/binaryen/binaryen-9999.eb… | 57 -------------------------------
3 files changed, 30 insertions(+), 57 deletions(-)
---
DIR diff --git a/dev-util/binaryen/Manifest b/dev-util/binaryen/Manifest
@@ -0,0 +1 @@
+DIST binaryen-98.tar.gz 3680217 BLAKE2B 9026183a39148f6e1727fa23d754a9f882af44bdd8c72edc832804cdf85c86cdf37af487155e51dc2da49d8a677074e725907a3d54b0e337e85dae8e5c97bee0 SHA512 b5678cd12a125f9a57add6ce3c220cd79226bbc71b8abb71951ef2095376549da8ba362cdf99e4d1a01211db91b63c1f5314fd5df68d56bfd36315e21368f8c0
DIR diff --git a/dev-util/binaryen/binaryen-98.ebuild b/dev-util/binaryen/binaryen-98.ebuild
@@ -0,0 +1,29 @@
+# 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"
+RESTRICT="test"
+
+S="${WORKDIR}/binaryen-version_${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_WERROR=no
+ -DBUILD_LLVM_DWARF=no
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ ./check.py || die
+}
DIR diff --git a/dev-util/binaryen/binaryen-9999.ebuild b/dev-util/binaryen/binaryen-9999.ebuild
@@ -1,57 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cmake-utils
-
-DESCRIPTION="Сompiler and toolchain infrastructure library for WebAssembly, written in C++"
-HOMEPAGE="https://github.com/WebAssembly/binaryen"
-
-if [[ ${PV} == 9999 ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/WebAssembly/${PN}.git"
- EGIT_SUBMODULES=()
- KEYWORDS=""
-else
- SRC_URI="https://github.com/WebAssembly/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
-
-CMAKE_MIN_VERSION="2.8.7"
-
-src_prepare() {
- sed -r -i \
- -e '/INSTALL.+src\/binaryen-c\.h/d' \
- CMakeLists.txt || die
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DBUILD_STATIC_LIB=OFF
- -DENABLE_WERROR=OFF
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- insinto "/usr/include/${PN}"
- doins "${S}"/src/*.h
-
- for hdir in asmjs emscripten-optimizer ir support; do
- insinto "/usr/include/${PN}/${hdir}"
- doins "${S}"/src/${hdir}/*.h
- done
-}