Remove LFS NINJAJOBS environment variable and add license
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: ninja
|
||||
description: The Ninja build system
|
||||
version: 1.11.1
|
||||
revision: 2
|
||||
revision: 3
|
||||
url: https://ninja-build.org/
|
||||
license: Apache2
|
||||
architecture: any
|
||||
|
||||
@@ -15,12 +15,6 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
sed -i '/int Guess/a \
|
||||
int j = 0;\
|
||||
char* jobs = getenv( "NINJAJOBS" );\
|
||||
if ( jobs != NULL ) j = atoi( jobs );\
|
||||
if ( j > 0 ) return j;\
|
||||
' src/ninja.cc
|
||||
python3 configure.py --bootstrap
|
||||
}
|
||||
|
||||
@@ -37,4 +31,6 @@ package() {
|
||||
install -vDm755 ninja "$BPM_OUTPUT"/usr/bin/ninja
|
||||
install -vDm644 misc/bash-completion "$BPM_OUTPUT"/usr/share/bash-completion/completions/ninja
|
||||
install -vDm644 misc/zsh-completion "$BPM_OUTPUT"/usr/share/zsh/site-functions/_ninja
|
||||
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/ninja/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user