From 8aae399bf6fd0c987f8d4cb6383990e01ec42805 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 2 Dec 2022 19:19:02 +0100 Subject: [PATCH] New package: justbuild-1.1.2. --- srcpkgs/justbuild/template | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 srcpkgs/justbuild/template diff --git a/srcpkgs/justbuild/template b/srcpkgs/justbuild/template new file mode 100644 index 00000000000..1ad8e334617 --- /dev/null +++ b/srcpkgs/justbuild/template @@ -0,0 +1,68 @@ +# Template file for 'justbuild' +pkgname=justbuild +version=1.1.2 +revision=1 +create_wrksrc=yes +hostmakedepends="jo pandoc pkg-config python3 tar unzip wget" +makedepends="abseil-cpp-devel c-ares-devel catch2 fmt-devel grpc-devel json-c++ + libarchive-devel libcurl-devel libgit2-devel openssl-devel re2-devel" +depends="python3" +short_desc="Generic build system supporting multi-repository builds" +maintainer="Leah Neukirchen " +license="Apache-2.0" +homepage="https://github.com/just-buildsystem/justbuild/" +changelog="https://github.com/just-buildsystem/justbuild/blob/master/CHANGELOG.md" +distfiles="https://github.com/just-buildsystem/justbuild/archive/v${version}.tar.gz" +checksum=50341bdf3742ad6dec20454b338770e8428b531d04c675ca976d1e410c5b33ba +conflicts="just>=0" +nocross="not supported by bootstrapping" + +do_build() { + mkdir -p just-work + export JUST_BUILD_CONF=$(jo \ + AR=/usr/bin/ar \ + COMPILER_FAMILY=gnu \ + CC=$CC \ + CXX=$CXX \ + CFLAGS=$(jo -a -- $CFLAGS) \ + CXXFLAGS=$(jo -a -- $CXXFLAGS) \ + LDFLAGS=$(jo -a -- $LDFLAGS) \ + SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH \ + VERSION_EXTRA_SUFFIX=-void + ) + export NON_LOCAL_DEPS=$(jo -a \ + bazel_remote_apis \ + cli11 \ + com_github_microsoft_gsl \ + google_apis \ + protobuf + ) + + PACKAGE=YES LOCALBASE=/usr python3 \ + justbuild-${version}/bin/bootstrap.py \ + justbuild-${version}/ $PWD/just-work + + ./just-work/src/out-boot/bin/just install \ + -C $PWD/just-work/repo-conf.json \ + -D "$JUST_BUILD_CONF" \ + -o $PWD/just-work/out \ + --local-build-root $PWD/just-work/.just \ + '' just-mr + + for m in justbuild-${version}/share/man/*.md; do + pandoc --standalone --to man -o ${m%.md}.man $m + done +} + +do_install() { + vbin just-work/out/bin/just + vbin just-work/out/src/other_tools/just_mr/just-mr + vbin just-work/src/bin/just-import-git.py just-import-git + + eval vcompletion justbuild-${version}/share/just_complete.bash bash + + for m in justbuild-${version}/share/man/*.man; do + echo $m + vman $m ${m%.man} + done +}