From a329954d886b754e3eee17ad83e8eac39fe0cf36 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 8 Jan 2017 11:06:19 -0800 Subject: [PATCH] diffoscope 67 Closes #8622. Signed-off-by: ilovezfs --- Formula/diffoscope.rb | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/Formula/diffoscope.rb b/Formula/diffoscope.rb index f28d49ebda..7eda77920c 100644 --- a/Formula/diffoscope.rb +++ b/Formula/diffoscope.rb @@ -1,9 +1,8 @@ class Diffoscope < Formula desc "In-depth comparison of files, archives, and directories." homepage "https://diffoscope.org" - url "https://pypi.python.org/packages/source/d/diffoscope/diffoscope-42.tar.gz" - sha256 "c0241acf5de7eb0e9e209e43dbf389beca722ddfb8b5d5630fd40569f1f465e2" - revision 1 + url "https://files.pythonhosted.org/packages/29/6d/704f5ab9ed92aa82f0bd796d12973e4aa3c13323e5843206297aa923aefd/diffoscope-67.tar.gz" + sha256 "96f17de536f411e69d2944191a8860b5c8be22a7f5a6a5d4ea3d34cc94badbf7" bottle do cellar :any_skip_relocation @@ -17,26 +16,17 @@ class Diffoscope < Formula depends_on "gnu-tar" depends_on :python3 - patch do - # Patch for legacy diff(1) - # https://anonscm.debian.org/cgit/reproducible/diffoscope.git/patch/?id=261be7 - url "https://raw.githubusercontent.com/Homebrew/formula-patches/ebbff7b/diffoscope/patch-legacy-diff.diff" - sha256 "aeaffa34a774e05477c9ef78df35174b006670b2963b9064c9c4c13484825b0b" - end - resource "libarchive-c" do - url "https://pypi.python.org/packages/source/l/libarchive-c/libarchive-c-2.2.tar.gz" - sha256 "5d54aa6f6ab21e3bd12c2f8b6c4e80316b049c2b60ab0a4418cb34d8c63e997c" + url "https://files.pythonhosted.org/packages/1f/4a/7421e8db5c7509cf75e34b92a32b69c506f2b6f6392a909c2f87f3e94ad2/libarchive-c-2.7.tar.gz" + sha256 "56eadbc383c27ec9cf6aad3ead72265e70f80fa474b20944328db38bab762b04" end resource "python-magic" do - url "https://pypi.python.org/packages/source/p/python-magic/python-magic-0.4.10.tar.gz" - sha256 "79fd2865ec96074749825f9e9562953995d5bf12b6793f24d75c37479ad4a2c3" + url "https://files.pythonhosted.org/packages/d8/94/4b2930f2146c1318e6250c85d884c87720f3089085e4d4ba53fa0f8c620c/python-magic-0.4.12.tar.gz" + sha256 "a04b20900100884d4fce40a767182a16fcb9d10756c67cdc21f5fa610b7c9d3c" end def install - inreplace "diffoscope/comparators/tar.py", "'tar'", "'gtar'" - pyver = Language::Python.major_minor_version "python3" ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{pyver}/site-packages"