diffoscope 67
Closes #8622. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
d29a2728d1
commit
a329954d88
1 changed files with 6 additions and 16 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue