aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Szakats2015-06-06 13:33:58 +0200
committerDominyk Tiller2015-06-06 19:18:42 +0100
commita8caf3636c40537d5c8d358fce76a69abda291ff (patch)
tree08b96d915e89e678b5ba82b40160dde7a4183ed9
parente5186c15418ecbed9ab7ed6f798a3bec59ea59de (diff)
downloadbrew-a8caf3636c40537d5c8d358fce76a69abda291ff.tar.bz2
Formula-Cookbook: update download strategy example
The new one uses sha256 instead of md5 and the urls still work and are all https, too. Closes Homebrew/homebrew#40455. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
-rw-r--r--share/doc/homebrew/Formula-Cookbook.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md
index 3b74c263f..4ea440095 100644
--- a/share/doc/homebrew/Formula-Cookbook.md
+++ b/share/doc/homebrew/Formula-Cookbook.md
@@ -619,11 +619,11 @@ end
To use one of Homebrew’s built-in download strategies, specify the `:using =>` flag on a `url` or `head`. For example:
```ruby
-class Sip < Formula
- url "http://www.riverbankcomputing.co.uk/hg/sip/archive/4.11"
- md5 "dbafd7101a4e7caee6f529912a1356e5"
- head "http://www.riverbankcomputing.co.uk/hg/sip", :using => :hg
- homepage "http://www.riverbankcomputing.co.uk/software/sip"
+class Python3 < Formula
+ homepage "https://www.python.org/"
+ url "https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz"
+ sha256 "b5b3963533768d5fc325a4d7a6bd6f666726002d696f1d399ec06b043ea996b8"
+ head "https://hg.python.org/cpython", :using => :hg
```
The downloaders offered by Homebrew are: