From 4163543d8f94bd4c52e6bf5d9d779c7448ad98a4 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 5 Sep 2017 07:21:23 -0400 Subject: [PATCH] zsh: install htmldoc Closes #17641. Signed-off-by: FX Coudert --- Formula/zsh.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Formula/zsh.rb b/Formula/zsh.rb index 02b5566eb8..b38ab1012a 100644 --- a/Formula/zsh.rb +++ b/Formula/zsh.rb @@ -1,9 +1,10 @@ class Zsh < Formula desc "UNIX shell (command interpreter)" homepage "https://www.zsh.org/" - url "https://www.zsh.org/pub/zsh-5.4.1.tar.xz" - mirror "https://downloads.sourceforge.net/project/zsh/zsh/5.4.1/zsh-5.4.1.tar.xz" + url "https://downloads.sourceforge.net/project/zsh/zsh/5.4.1/zsh-5.4.1.tar.xz" + mirror "https://www.zsh.org/pub/zsh-5.4.1.tar.xz" sha256 "94cbd57508287e8faa081424509738d496f5f41e32ed890e3a5498ce05d3633b" + revision 1 bottle do sha256 "9b02aa96d53e036e3fefe5c529afc8b2bd286a53494286002b1fc05fabe57204" => :sierra @@ -24,6 +25,12 @@ class Zsh < Formula depends_on "gdbm" depends_on "pcre" + resource "htmldoc" do + url "https://downloads.sourceforge.net/project/zsh/zsh-doc/5.4.1/zsh-5.4.1-doc.tar.xz" + mirror "https://www.zsh.org/pub/zsh-5.4.1-doc.tar.xz" + sha256 "b8b1a40aeec852806ad2b74b0a0c534320bf517e2fe2a087c0c9d39e75dc29f1" + end + def install system "Util/preconfig" if build.head? @@ -63,6 +70,10 @@ class Zsh < Formula else system "make", "install" system "make", "install.info" + + resource("htmldoc").stage do + (pkgshare/"htmldoc").install Dir["Doc/*.html"] + end end end