From a8caf3636c40537d5c8d358fce76a69abda291ff Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 6 Jun 2015 13:33:58 +0200 Subject: [PATCH] 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 --- share/doc/homebrew/Formula-Cookbook.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/doc/homebrew/Formula-Cookbook.md b/share/doc/homebrew/Formula-Cookbook.md index 3b74c263f0..4ea4400957 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: