summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Joldasov <bratishkaerik@getgoogleoff.me>2022-10-19 21:34:20 +0600
committerSam James <sam@gentoo.org>2022-10-21 00:33:31 +0100
commit0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5 (patch)
treed9bf5e9e060dec18969a0d970c45a16b7372a621
parentdev-python/attrs: Add cpe_uri for attrs package. (diff)
downloadgentoo-0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5.tar.gz
gentoo-0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5.tar.bz2
gentoo-0fd7c39bf9fca8c661b43d0cbd1a4bfba284bcb5.zip
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@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/27849 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-lang/zig/zig-9999.ebuild9
1 files changed, 1 insertions, 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