ninja: bump version

This commit is contained in:
Jerome Duval
2022-09-25 17:03:07 +02:00
parent 7a31ba27e6
commit 248cdaf0c8
2 changed files with 19 additions and 15 deletions

View File

@@ -9,14 +9,19 @@ it can build LLVM, KDE, Blender, etc."
HOMEPAGE="https://ninja-build.org/"
COPYRIGHT="2012-2019 Google Inc."
LICENSE="Apache v2"
REVISION="5"
REVISION="1"
SOURCE_URI="https://github.com/ninja-build/ninja/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed"
CHECKSUM_SHA256="31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea"
PATCHES="ninja-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi
PROVIDES="
ninja$secondaryArchSuffix = $portVersion
cmd:ninja = $portVersion
@@ -47,7 +52,8 @@ REQUIRES_zsh="
BUILD()
{
cmake -DCMAKE_BUILD_TYPE="Release" -Bbuild $cmakeDirArgs .
cmake -DCMAKE_BUILD_TYPE="Release" -Bbuild $cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$commandBinDir .
cd build
make $jobArgs
}

View File

@@ -1,14 +1,14 @@
From 5563d3429087517d2e47d672bdb5c50d005946dc Mon Sep 17 00:00:00 2001
From eaf2054190c9841dc5bf27a0a508e7ad4d36e157 Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Sat, 16 Sep 2017 12:25:48 +0200
Subject: Add minimal Haiku support; based on Adrien's patch.
diff --git a/src/util.cc b/src/util.cc
index 4df2bb2..0f9ef18 100644
index ef5f103..a6471d7 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -496,7 +496,7 @@ int GetProcessorCount() {
@@ -727,7 +727,7 @@ int GetProcessorCount() {
#endif
}
@@ -18,22 +18,20 @@ index 4df2bb2..0f9ef18 100644
{
static uint64_t previous_idle_ticks = 0;
--
2.24.0
2.30.2
From a39e384e883055f1e8157ca7abfe993e8c06d7e2 Mon Sep 17 00:00:00 2001
From cd6610b3ba4981ee7a844a8148758940745ad9a8 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 16 Sep 2017 12:48:42 +0200
Subject: GetLoadAvg to be implemented for Haiku
diff --git a/src/util.cc b/src/util.cc
index 0f9ef18..0309516 100644
index a6471d7..55735f6 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -496,7 +496,7 @@ int GetProcessorCount() {
@@ -727,7 +727,7 @@ int GetProcessorCount() {
#endif
}
@@ -42,9 +40,9 @@ index 0f9ef18..0309516 100644
static double CalculateProcessorLoad(uint64_t idle_ticks, uint64_t total_ticks)
{
static uint64_t previous_idle_ticks = 0;
@@ -583,6 +583,10 @@ double GetLoadAverage() {
@@ -818,6 +818,10 @@ double GetLoadAverage() {
double GetLoadAverage() {
return -0.0f;
return 1.0 / (1 << SI_LOAD_SHIFT) * si.loads[0];
}
+#elif defined(__HAIKU__)
+double GetLoadAverage() {
@@ -54,5 +52,5 @@ index 0f9ef18..0309516 100644
double GetLoadAverage() {
double loadavg[3] = { 0.0f, 0.0f, 0.0f };
--
2.24.0
2.30.2