diff options
author | jmmv <jmmv@pkgsrc.org> | 2016-03-01 20:45:31 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2016-03-01 20:45:31 +0000 |
commit | 1285d1c6823a904bf974f9295a3e6a4b97be6ad4 (patch) | |
tree | d74d733a186e4fd10d37524e3dfda8008b741c38 | |
parent | 66cfc8f774dc651185e41052aed9f4e8a11cdb96 (diff) | |
download | pkgsrc-1285d1c6823a904bf974f9295a3e6a4b97be6ad4.tar.gz |
Initial addition of bazel-0.2.0:
Bazel is a build tool that builds code quickly and reliably. It is used to
build the majority of Google's software, and thus it has been designed to
handle build problems present in Google's development environment, including:
* A massive, shared code repository, in which all software is built from
source. Bazel has been built for speed, using both caching and parallelism
to achieve this. Bazel is critical to Google's ability to continue to scale
its software development practices as the company grows.
* An emphasis on automated testing and releases. Bazel has been built for
correctness and reproducibility, meaning that a build performed on a
continuous build machine or in a release pipeline will generate
bitwise-identical outputs to those generated on a developer's machine.
* Language and platform diversity. Bazel's architecture is general enough to
support many different programming languages within Google, and can be used
to build both client and server software targeting multiple architectures
from the same underlying codebase.
-rw-r--r-- | devel/bazel/DESCR | 18 | ||||
-rw-r--r-- | devel/bazel/Makefile | 49 | ||||
-rw-r--r-- | devel/bazel/PLIST | 2 | ||||
-rw-r--r-- | devel/bazel/distinfo | 7 | ||||
-rw-r--r-- | devel/bazel/patches/patch-src_tools_xcode_stdredirect_run_tests.sh | 15 |
5 files changed, 91 insertions, 0 deletions
diff --git a/devel/bazel/DESCR b/devel/bazel/DESCR new file mode 100644 index 00000000000..404ffed5e19 --- /dev/null +++ b/devel/bazel/DESCR @@ -0,0 +1,18 @@ +Bazel is a build tool that builds code quickly and reliably. It is used to +build the majority of Google's software, and thus it has been designed to +handle build problems present in Google's development environment, including: + +* A massive, shared code repository, in which all software is built from + source. Bazel has been built for speed, using both caching and parallelism + to achieve this. Bazel is critical to Google's ability to continue to scale + its software development practices as the company grows. + +* An emphasis on automated testing and releases. Bazel has been built for + correctness and reproducibility, meaning that a build performed on a + continuous build machine or in a release pipeline will generate + bitwise-identical outputs to those generated on a developer's machine. + +* Language and platform diversity. Bazel's architecture is general enough to + support many different programming languages within Google, and can be used + to build both client and server software targeting multiple architectures + from the same underlying codebase. diff --git a/devel/bazel/Makefile b/devel/bazel/Makefile new file mode 100644 index 00000000000..ba1da57f730 --- /dev/null +++ b/devel/bazel/Makefile @@ -0,0 +1,49 @@ +# $NetBSD: Makefile,v 1.1 2016/03/01 20:45:31 jmmv Exp $ + +DISTNAME= bazel-0.2.0 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=bazelbuild/} + +MAINTAINER= jmmv@NetBSD.org +HOMEPAGE= http://bazel.io/ +COMMENT= Google's own build tool +LICENSE= apache-2.0 + +DEPENDS+= unzip-[0-9]*:../../archivers/unzip +DEPENDS+= zip-[0-9]*:../../archivers/zip + +ONLY_FOR_PLATFORM= Darwin-*-* Linux-*-* + +USE_JAVA= yes +USE_LANGUAGES= c++ +USE_TOOLS= pkg-config +PKG_JVMS_ACCEPTED= openjdk7 openjdk8 sun-jdk7 oracle-jdk8 + +SUBST_CLASSES+= conf +SUBST_FILES.conf= src/main/cpp/blaze_startup_options.cc +SUBST_MESSAGE.conf= Set path to system-wide bazel.bazelrc +SUBST_STAGE.conf= pre-configure +SUBST_SED.conf= -e s,/etc/bazel.bazelrc,${PKG_SYSCONFDIR}/bazel.bazelrc,g + +SUBST_CLASSES+= tools +SUBST_FILES.tools= src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java +SUBST_FILES.tools+= src/main/java/com/google/devtools/build/lib/rules/objc/ReleaseBundlingSupport.java +SUBST_FILES.tools+= tools/build_defs/d/d.bzl +SUBST_FILES.tools+= tools/build_rules/py_rules.bzl +SUBST_FILES.tools+= tools/build_rules/rust/rust.bzl +SUBST_MESSAGE.tools= Set path to tools +SUBST_STAGE.tools= pre-configure +SUBST_SED.tools= -e s,/usr/bin/unzip,${PREFIX}/bin/unzip,g +SUBST_SED.tools+= -e s,/usr/bin/zip,${PREFIX}/bin/zip,g + +INSTALLATION_DIRS= bin + +do-build: + cd ${WRKSRC} && ./compile.sh + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/output/bazel ${DESTDIR}${PREFIX}/bin/bazel + +.include "../../devel/zlib/buildlink3.mk" +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/bazel/PLIST b/devel/bazel/PLIST new file mode 100644 index 00000000000..9a34d51e19f --- /dev/null +++ b/devel/bazel/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2016/03/01 20:45:31 jmmv Exp $ +bin/bazel diff --git a/devel/bazel/distinfo b/devel/bazel/distinfo new file mode 100644 index 00000000000..4192c372558 --- /dev/null +++ b/devel/bazel/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/03/01 20:45:31 jmmv Exp $ + +SHA1 (bazel-0.2.0.tar.gz) = 113e3aea653ea4738eb2befa3b7d9e892829c9ac +RMD160 (bazel-0.2.0.tar.gz) = 8cb4e15cd1701d7201c7a8b1142ae4ff572d9279 +SHA512 (bazel-0.2.0.tar.gz) = 6b337d06c5d8aa5133759e1b973739016490076caa4ed0e1652a50b2a3bac48af439a70cf27075f885c63e0d2199563242bef75aa3e715774381ca6a0a3673bb +Size (bazel-0.2.0.tar.gz) = 56734337 bytes +SHA1 (patch-src_tools_xcode_stdredirect_run_tests.sh) = 00b62b35f5cb7d3606a07f5061049a055ac8024d diff --git a/devel/bazel/patches/patch-src_tools_xcode_stdredirect_run_tests.sh b/devel/bazel/patches/patch-src_tools_xcode_stdredirect_run_tests.sh new file mode 100644 index 00000000000..a3cbd756897 --- /dev/null +++ b/devel/bazel/patches/patch-src_tools_xcode_stdredirect_run_tests.sh @@ -0,0 +1,15 @@ +$NetBSD: patch-src_tools_xcode_stdredirect_run_tests.sh,v 1.1 2016/03/01 20:45:31 jmmv Exp $ + +Fix equality operator to test for portability. + +--- src/tools/xcode/stdredirect/run_tests.sh.orig 2016-02-18 09:23:17.000000000 +0000 ++++ src/tools/xcode/stdredirect/run_tests.sh +@@ -66,7 +66,7 @@ while kill -0 "$IOS_PID" &>/dev/null; do + done + + # If the simulator wasn't running when we started, then we should clean it up. +-if [ SIMULATOR_RUNNING == "false" ]; then ++if [ SIMULATOR_RUNNING = "false" ]; then + osascript -e "tell application \"iOS Simulator\" to quit" + fi + |