<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c47cd8dc9e8f82dd310ec0e507add3ff54ff3edf">https://github.com/macports/macports-ports/commit/c47cd8dc9e8f82dd310ec0e507add3ff54ff3edf</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new c47cd8d bazel: Update to version 0.9.0
</span>c47cd8d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c47cd8dc9e8f82dd310ec0e507add3ff54ff3edf
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Feb 14 14:05:31 2018 -0800
<span style='display:block; white-space:pre;color:#404040;'> bazel: Update to version 0.9.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/55407
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/55731
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/55736
</span><span style='display:block; white-space:pre;color:#404040;'> see https://github.com/macports/macports-ports/pull/1098
</span>---
devel/bazel/Portfile | 54 ++++++++++++++++++++++++++--------------------------
1 file changed, 27 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/bazel/Portfile b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4341fc1..6027edd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@
</span> PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup bazelbuild bazel 0.5.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup bazelbuild bazel 0.9.0
</span> github.tarball_from releases
categories devel
maintainers {tfmnet.com:mohamed.issa @RootFunction} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,25 +23,6 @@ pre-fetch {
</span> error "The Java compiler was not detected on this machine. \
Please ensure JDK 8 or newer is properly installed."
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Get the Java compiler version and then extract the major + minor parts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set ver [exec -ignorestderr -- $cmdnm -version 2>@1]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set count [scan $ver "%s %d.%d." cmdnm mjver mnver]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$count != 3} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- error "The Java compiler version data could not be parsed."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check for major version incompatbility
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$mjver < 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- error "The installed JDK is too old, please upgrade to JDK 8 or newer."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check for minor version incompatbility
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$mjver == 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$mnver < 8} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- error "The installed JDK is too old, please upgrade to JDK 8 or newer."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
# Fetch Phase
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,8 +30,8 @@ distname ${distname}-dist
</span> dist_subdir ${name}
# Checksum Phase
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 5269d2fce917d3324dcb75ca06fe12089a4e24a1 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2418c619bdd44257a170b85b9d2ecb75def29e751b725e27186468ada2e009ea
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 5cb89e5598a2c27c8ce6c30bad9107f67d7547ee \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 efb28fed4ffcfaee653e0657f6500fc4cbac61e32104f4208da385676e76312a
</span>
# Extract Phase
use_zip yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -63,17 +44,36 @@ patch {}
</span> use_configure no
# Build Phase
<span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append bin:python:python27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append bin:bash:bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append bin:zip:zip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append bin:git:git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> build {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # The Bazel compilation script erroneously writes to the standard
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # error stream, so we'll just ignore it. If the build fails, then there
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # won't be a binary to copy and the destroot phase will fail.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr -- bash ${worksrcpath}/compile.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "./compile.sh"
</span>
# Put executable in main working folder
xinstall -m 755 -W ${worksrcpath}/output ${name} ${worksrcpath}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Get ready to build the bash completion script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force /var/tmp/_${name}_root
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build fails if it does not recognize this dir as a git repo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "git init"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "git add ."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "git commit -m GitRepo"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # note - at this point in the build, there can be a very long pause
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "*************************************************************"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "*************************************************************"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "There can be a long pause in the build during the next stage."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "This pause can last up to two hours."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "We suggest you do not cancel the build as it will eventually complete"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "*************************************************************"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "*************************************************************"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Build the bash completion script
<span style='display:block; white-space:pre;background:#ffe0e0;'>- exec -ignorestderr -- ${worksrcpath}/${name} build //scripts:${name}-complete.bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "./${name} build //scripts:${name}-complete.bash"
</span> }
# Test Phase
</pre><pre style='margin:0'>
</pre>