From 1d6e55aa370c9bb5d17070700038187272ce8d1c Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 9 Mar 2021 23:10:56 +0100 Subject: [PATCH] gn: missing recipe for version 1731 --- dev-util/gn/gn-0.1891.dfcbc6fe.recipe | 2 +- dev-util/gn/gn1731-0.1731.5ed3c9cc.recipe | 70 +++++++++++++++++++++++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 dev-util/gn/gn1731-0.1731.5ed3c9cc.recipe diff --git a/dev-util/gn/gn-0.1891.dfcbc6fe.recipe b/dev-util/gn/gn-0.1891.dfcbc6fe.recipe index 85b9d7a52..f433a1f11 100644 --- a/dev-util/gn/gn-0.1891.dfcbc6fe.recipe +++ b/dev-util/gn/gn-0.1891.dfcbc6fe.recipe @@ -49,7 +49,7 @@ BUILD() GN_COMMIT_VERSION_SHORT=`echo $srcGitRev | cut -c 1-7` sed -i \ - "s/(999999, 999999, \"091169b\")/(\"01891\", \"01891\", \"$GN_COMMIT_VERSION_SHORT\")/g" \ + "s/(999999, 999999, \"091169b\")/(\"1891\", \"1891\", \"$GN_COMMIT_VERSION_SHORT\")/g" \ build/gen.py python build/gen.py --host haiku --platform=haiku diff --git a/dev-util/gn/gn1731-0.1731.5ed3c9cc.recipe b/dev-util/gn/gn1731-0.1731.5ed3c9cc.recipe new file mode 100644 index 000000000..93b7c0539 --- /dev/null +++ b/dev-util/gn/gn1731-0.1731.5ed3c9cc.recipe @@ -0,0 +1,70 @@ +SUMMARY="A meta-build system that generates build files for Ninja" +DESCRIPTION="GN is a meta-build system that generates build files for Ninja" +HOMEPAGE="https://gn.googlesource.com/" +COPYRIGHT="2008-2019 The Chromium Authors." +LICENSE="BSD (3-clause)" +REVISION="1" +srcGitRev="5ed3c9cc67b090d5e311e4bd2aba072173e82db9" +SOURCE_URI="https://github.com/korli/gn/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="b018b5dbb484997dc0c0c693c4d7efbec76b8e26e845465c3cb7aba0e3d3db6c" +SOURCE_FILENAME="gn-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="gn-$srcGitRev" +PATCHES="gn-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +if [ "$targetArchitecture" = x86_gcc2 ]; then +SECONDARY_ARCHITECTURES="x86" +fi + +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandBinDir=$prefix/bin +fi + +PROVIDES=" + gn1731$secondaryArchSuffix = $portVersion + cmd:gn = 1731 compat >= 1731 + " +REQUIRES=" + haiku$secondaryArchSuffix + " +CONFLICTS=" + gn$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:g++$secondaryArchSuffix + cmd:ninja + cmd:python2 + cmd:sed + " + +BUILD() +{ + export CC=gcc + export CXX=g++ + + GN_COMMIT_VERSION_SHORT=`echo $srcGitRev | cut -c 1-7` + + sed -i \ + "s/(999999, 999999, \"091169b\")/(\"1731\", \"1731\", \"$GN_COMMIT_VERSION_SHORT\")/g" \ + build/gen.py + + python2 build/gen.py --host haiku --platform=haiku -d + ninja -C out $jobArgs +} + +INSTALL() +{ + mkdir -p $commandBinDir + cp out/gn $commandBinDir +} + +TEST() +{ + ./out/gn_unittests +}