forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This requires allowing ports to override fetch() since tar.gz sha256sums from googlesource.com are not deterministic.
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env -S bash ../.port_include.sh | ||
port='gn' | ||
workdir='gn' | ||
version='2023.07.12' | ||
repository='https://gn.googlesource.com/gn' | ||
git_rev='fae280eabe5d31accc53100137459ece19a7a295' | ||
useconfigure='true' | ||
# FIXME: The files and auth_type are lies here. See #20004 | ||
files=('git') | ||
auth_type='sha256' | ||
depends=( | ||
'ninja' | ||
'python3' | ||
) | ||
|
||
fetch() { | ||
if [ ! -d ${workdir} ]; then | ||
git clone ${repository} ${workdir} | ||
fi | ||
run git checkout ${git_rev} | ||
} | ||
|
||
configure() { | ||
run python3 build/gen.py --platform='serenity' --allow-warnings | ||
} | ||
|
||
build() { | ||
run ninja -C out | ||
} | ||
|
||
install() { | ||
run mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin" | ||
run cp out/gn "${SERENITY_INSTALL_ROOT}/usr/local/bin" | ||
run cp out/gn_unittests "${SERENITY_INSTALL_ROOT}/usr/local/bin" | ||
} |