yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject yetus git commit: YETUS-244. make yetus available via homebrew
Date Wed, 29 Nov 2017 17:48:38 GMT
Repository: yetus
Updated Branches:
  refs/heads/master b2960a6b7 -> ef2b90a80


YETUS-244. make yetus available via homebrew

Signed-off-by: Sean Busbey <busbey@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/ef2b90a8
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/ef2b90a8
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/ef2b90a8

Branch: refs/heads/master
Commit: ef2b90a806e7b444af8612996024d8dc4c72a8b2
Parents: b2960a6
Author: Allen Wittenauer <aw@apache.org>
Authored: Tue Nov 14 09:17:18 2017 -0800
Committer: Sean Busbey <busbey@apache.org>
Committed: Wed Nov 29 11:42:48 2017 -0600

----------------------------------------------------------------------
 Formula/yetus.rb                           | 68 +++++++++++++++++++++++++
 asf-site-src/source/contribute/releases.md |  7 ++-
 asf-site-src/source/downloads.html.md.erb  |  8 +++
 3 files changed, 82 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/ef2b90a8/Formula/yetus.rb
----------------------------------------------------------------------
diff --git a/Formula/yetus.rb b/Formula/yetus.rb
new file mode 100644
index 0000000..5fa0421
--- /dev/null
+++ b/Formula/yetus.rb
@@ -0,0 +1,68 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Homebrew formula to install Apache Yetus
+class Yetus < Formula
+  desc 'Enable contribution and release processes for software projects'
+  homepage 'https://yetus.apache.org/'
+  url 'https://www.apache.org/dyn/closer.lua?path=/yetus/0.6.0/yetus-0.6.0-bin.tar.gz'
+  sha256 '3864b6f9bb8230e0b0dec4fa760b0e5492c431f22d042285444f3407d4e29792'
+
+  option 'with-all', 'Build with all dependencies. Note that some dependencies such as '\
+    'Perl::Critic, Pylint, RuboCop and ruby-lint still need to be installed manually.'
+
+  dependencies = [
+    # programming languages
+    :java,
+    'scala',
+
+    # build tools
+    'ant',
+    'autoconf',
+    'automake',
+    'cmake',
+    'libtool',
+    'gradle',
+    'maven',
+
+    # test tools
+    'findbugs',
+    'shellcheck'
+  ]
+
+  dependencies.each do |dependency|
+    if build.with?('all')
+      depends_on dependency
+    else
+      depends_on dependency => :optional
+    end
+  end
+
+  def install
+    rm Dir['bin/*.{bat,cmd,dll,exe}']
+    inreplace Dir['bin/*'], '$(dirname -- "${BASH_SOURCE-0}")/..', libexec
+    libexec.install Dir['*']
+    bin.install_symlink Dir["#{libexec}/bin/*"]
+  end
+
+  test do
+    system "#{bin}/qbt", '--version'
+    system "#{bin}/releasedocmaker", '-V'
+    system "#{bin}/shelldocs", '-V'
+    system "#{bin}/smart-apply-patch", '--version'
+    system "#{bin}/test-patch", '--version'
+  end
+end

http://git-wip-us.apache.org/repos/asf/yetus/blob/ef2b90a8/asf-site-src/source/contribute/releases.md
----------------------------------------------------------------------
diff --git a/asf-site-src/source/contribute/releases.md b/asf-site-src/source/contribute/releases.md
index eb54b67..516f7b7 100644
--- a/asf-site-src/source/contribute/releases.md
+++ b/asf-site-src/source/contribute/releases.md
@@ -488,7 +488,12 @@ It may take up to 24 hours for the artifacts to make their way to the
various mi
 1. Delete staging branch. Now that there is an immutable tag for the release, all commits
leading up to that release will be maintained by git. Should we need a future maintenance
release after this version, we can reestablish the branch based off of the release tag.
 
         $ git push origin :YETUS-XXX
-1. You should update the documentation in the git master branch for the new release. Due
to some limitations in our website rendering library, this currently involves some extra symlinks
(see YETUS-192).
+1. Update the Mac OS X Homebrew Formula:
+
+        $ vim Formula/yetus.rb
+        $ # change URL point to new version
+        $ # update the sha256. e.g., shasum -s 256 bin.gz
+1. Update the documentation in the git master branch for the new release. Due to some limitations
in our website rendering library, this currently involves some extra symlinks (see YETUS-192).
 
         $ cd asf-site-src
         $ # Add the release to the releases data file

http://git-wip-us.apache.org/repos/asf/yetus/blob/ef2b90a8/asf-site-src/source/downloads.html.md.erb
----------------------------------------------------------------------
diff --git a/asf-site-src/source/downloads.html.md.erb b/asf-site-src/source/downloads.html.md.erb
index 28846d7..e3c0f11 100644
--- a/asf-site-src/source/downloads.html.md.erb
+++ b/asf-site-src/source/downloads.html.md.erb
@@ -43,3 +43,11 @@ third-party repositories (e.g. Maven Central).
     * Binaries : [yetus-<%= release %>-bin.tar.gz](https://www.apache.org/dyn/closer.lua?path=/yetus/<%=
release %>/yetus-<%= release %>-bin.tar.gz) ([signature](https://www.apache.org/dist/yetus/<%=
release %>/yetus-<%= release %>-bin.tar.gz.asc), [hashes](https://www.apache.org/dist/yetus/<%=
release %>/yetus-<%= release %>-bin.tar.gz.mds))
 <%   end
    end %>
+
+The latest version of Apache Yetus is also available via Homebrew on Mac OS X:
+```shell
+brew tap apache/yetus https://github.com/apache/yetus
+brew install yetus
+```
+
+This will install many of the dependencies needed for the precommit functionality as well.
\ No newline at end of file


Mime
View raw message