From owner-svn-ports-head@freebsd.org Tue Dec 6 19:25:25 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AEDEC6AD7E; Tue, 6 Dec 2016 19:25:25 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6579DB41; Tue, 6 Dec 2016 19:25:25 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB6JPOf3033990; Tue, 6 Dec 2016 19:25:24 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB6JPNp0033981; Tue, 6 Dec 2016 19:25:23 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201612061925.uB6JPNp0033981@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Tue, 6 Dec 2016 19:25:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427983 - in head/devel: . bazel bazel/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2016 19:25:25 -0000 Author: pi Date: Tue Dec 6 19:25:23 2016 New Revision: 427983 URL: https://svnweb.freebsd.org/changeset/ports/427983 Log: New port: devel/bazel Bazel is Google's own build tool, now publicly available in Beta. Bazel has built-in support for building both client and server software, including client applications for both Android and iOS platforms. It also provides an extensible framework that you can use to develop your own build rules. WWW: https://bazel.build/ PR: 204512 Submitted by: Yuri Victorovich , Klaus Aehlig Reviewed by: peterj Added: head/devel/bazel/ head/devel/bazel/Makefile (contents, props changed) head/devel/bazel/distinfo (contents, props changed) head/devel/bazel/files/ head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh (contents, props changed) head/devel/bazel/files/patch-src_main_cpp_blaze__util__freebsd.cc (contents, props changed) head/devel/bazel/files/patch-src_main_cpp_util_file__platform.h (contents, props changed) head/devel/bazel/files/patch-third__party_protobuf_3.0.0_BUILD (contents, props changed) head/devel/bazel/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Dec 6 18:59:59 2016 (r427982) +++ head/devel/Makefile Tue Dec 6 19:25:23 2016 (r427983) @@ -158,6 +158,7 @@ SUBDIR += b2 SUBDIR += babeltrace SUBDIR += bam + SUBDIR += bazel SUBDIR += bbfreeze SUBDIR += bbfreeze-loader SUBDIR += bcc Added: head/devel/bazel/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/Makefile Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,42 @@ +# Created by: Klaus Aehlig +# $FreeBSD$ + +PORTNAME= bazel +PORTVERSION= 0.4.2r # rc2 of 0.4.2 +CATEGORIES= devel java +MASTER_SITES= https://storage.googleapis.com/bazel/0.4.2/rc2/ +DISTNAME= bazel-0.4.2rc2-dist + +MAINTAINER= aehlig@linta.de +COMMENT= Fast and correct build system + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= bash:shells/bash \ + zip:archivers/zip + +BROKEN_FreeBSD_9= fails with static_assert expression error in src/main/cpp/util/numbers.cc + +NO_WRKSUBDIR= YES +USES= shebangfix zip +SHEBANG_FILES= ${WRKSRC}/tools/cpp/link_dynamic_library.sh +USE_JAVA= yes +JAVA_VENDOR= openjdk +JAVA_VERSION= 1.8 +JAVA_BUILD= yes +JAVA_RUN= yes + +PLIST_FILES= bin/bazel + +do-build: + @${MKDIR} ${WRKDIR}/bazel_tmp + (cd ${WRKSRC} && \ + ${SETENV} BAZEL_SH=${LOCALBASE}/bin/bash \ + TMPDIR=${WRKDIR}/bazel_tmp \ + ${LOCALBASE}/bin/bash ./compile.sh) + +do-install: + @${CP} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin + +.include Added: head/devel/bazel/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/distinfo Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,3 @@ +TIMESTAMP = 1480863971 +SHA256 (bazel-0.4.2rc2-dist.zip) = 8e6f41252abadcdb2cc7a07f910ec4b45fb12c46f0a578672c6a186c7efcdb36 +SIZE (bazel-0.4.2rc2-dist.zip) = 89321429 Added: head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/patch-scripts_bootstrap_bootstrap.sh Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,20 @@ +--- scripts/bootstrap/bootstrap.sh.orig 1979-12-31 23:00:00 UTC ++++ scripts/bootstrap/bootstrap.sh +@@ -39,7 +39,7 @@ if [ "${JAVA_VERSION}" = "1.7" ]; then + else + : ${BAZEL_ARGS:=--java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain \ + --host_java_toolchain=//src/java_tools/buildjar:bootstrap_toolchain \ +- --strategy=Javac=worker --worker_quit_after_build --ignore_unsupported_sandboxing \ ++ --strategy=Javac=standalone --ignore_unsupported_sandboxing \ + --compilation_mode=opt \ + "${EXTRA_BAZEL_ARGS:-}"} + fi +@@ -91,7 +91,7 @@ function bootstrap_test() { + local BAZEL_BIN=$1 + local BAZEL_SUM=$2 + local BAZEL_TARGET=${3:-src:bazel} +- local STRATEGY="--strategy=Javac=worker --worker_quit_after_build" ++ local STRATEGY="--strategy=Javac=standalone" + if [ "${JAVA_VERSION}" = "1.7" ]; then + STRATEGY= + fi Added: head/devel/bazel/files/patch-src_main_cpp_blaze__util__freebsd.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/patch-src_main_cpp_blaze__util__freebsd.cc Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,12 @@ +--- src/main/cpp/blaze_util_freebsd.cc.orig 1979-12-31 23:00:00 UTC ++++ src/main/cpp/blaze_util_freebsd.cc +@@ -145,6 +145,9 @@ bool IsSharedLibrary(const string &filen + + string GetDefaultHostJavabase() { + // if JAVA_HOME is defined, then use it as default. ++ if (getenv("JAVA_HOME") == nullptr) { ++ return "/usr/local/openjdk8"; ++ } + string javahome = getenv("JAVA_HOME"); + return !javahome.empty() ? javahome : "/usr/local/openjdk8"; + } Added: head/devel/bazel/files/patch-src_main_cpp_util_file__platform.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/patch-src_main_cpp_util_file__platform.h Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,10 @@ +--- src/main/cpp/util/file_platform.h.orig 2016-12-05 22:12:53 UTC ++++ src/main/cpp/util/file_platform.h +@@ -16,6 +16,7 @@ + #define BAZEL_SRC_MAIN_CPP_UTIL_FILE_PLATFORM_H_ + + #include ++#include + + #include + Added: head/devel/bazel/files/patch-third__party_protobuf_3.0.0_BUILD ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/files/patch-third__party_protobuf_3.0.0_BUILD Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,11 @@ +--- third_party/protobuf/3.0.0/BUILD.orig 1979-12-31 23:00:00 UTC ++++ third_party/protobuf/3.0.0/BUILD +@@ -87,7 +87,7 @@ COPTS = [ + "-Wno-error=unused-variable", + ] + +-LINK_OPTS = ["-lpthread"] ++LINK_OPTS = ["-lpthread", "-lm"] + + cc_library( + name = "protobuf_lite", Added: head/devel/bazel/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bazel/pkg-descr Tue Dec 6 19:25:23 2016 (r427983) @@ -0,0 +1,7 @@ +Bazel is Google's own build tool, now publicly available in Beta. +Bazel has built-in support for building both client and server +software, including client applications for both Android and iOS +platforms. It also provides an extensible framework that you can +use to develop your own build rules. + +WWW: https://bazel.build/