commit: 0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5 Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> AuthorDate: Wed Oct 19 15:34:20 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Oct 20 23:33:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fd7c39b
dev-lang/zig: use standard CMake procedure for building/installing Upstream PR https://github.com/ziglang/zig/pull/13036 Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27849 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/zig/zig-9999.ebuild | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild index cfc9d487b029..cc18f6e8a041 100644 --- a/dev-lang/zig/zig-9999.ebuild +++ b/dev-lang/zig/zig-9999.ebuild @@ -53,7 +53,6 @@ src_configure() { -DZIG_SHARED_LLVM=ON -DZIG_SINGLE_THREADED="$(usex !threads)" -DCMAKE_PREFIX_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT}) - -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}/stage3" ) cmake_src_configure @@ -61,13 +60,7 @@ src_configure() { src_test() { cd "${BUILD_DIR}" || die - ./stage3/bin/zig build test -Dstatic-llvm=false -Denable-llvm=true || die -} - -src_install() { - cd "${BUILD_DIR}" || die - DESTDIR="${D}" ./zig2 build install -Denable-stage1=true -Dstatic-llvm=false -Denable-llvm=true --prefix "${EPREFIX}"/usr || die - dodoc ../README.md + ./zig2 build test -Dstatic-llvm=false -Denable-llvm=true -Dskip-non-native=true || die } # see https://github.com/ziglang/zig/issues/3382
