From 814255548714324a347bad26ee40974b360ccec2 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Fri, 3 Jan 2020 19:58:51 +0100 Subject: [PATCH] zim: delete Depends on deprecated pygtk and python 2 Closes #48460. Signed-off-by: Michka Popoff --- Formula/zim.rb | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 Formula/zim.rb diff --git a/Formula/zim.rb b/Formula/zim.rb deleted file mode 100644 index 36999c181c..0000000000 --- a/Formula/zim.rb +++ /dev/null @@ -1,48 +0,0 @@ -class Zim < Formula - desc "Graphical text editor used to maintain a collection of wiki pages" - homepage "https://zim-wiki.org/" - url "https://github.com/jaap-karssenberg/zim-desktop-wiki/archive/0.72.1.tar.gz" - sha256 "ba02e418b4fb1d7847f96b49ada8c917c881a28bb5fb55dcdca54be7b3fd196a" - head "https://github.com/jaap-karssenberg/zim-desktop-wiki.git" - - bottle do - cellar :any_skip_relocation - sha256 "91f15636c51398dc31f7c43d570a652cc1bddb8fc3571bdfc203d25231aa095d" => :catalina - sha256 "91f15636c51398dc31f7c43d570a652cc1bddb8fc3571bdfc203d25231aa095d" => :mojave - sha256 "91f15636c51398dc31f7c43d570a652cc1bddb8fc3571bdfc203d25231aa095d" => :high_sierra - end - - depends_on "pkg-config" => :build - depends_on "adwaita-icon-theme" - depends_on "graphviz" - depends_on "gtk+3" - depends_on "pygobject3" - depends_on "pygtk" - depends_on "pygtksourceview" - depends_on "python" - - resource "pyxdg" do - url "https://files.pythonhosted.org/packages/47/6e/311d5f22e2b76381719b5d0c6e9dc39cd33999adae67db71d7279a6d70f4/pyxdg-0.26.tar.gz" - sha256 "fe2928d3f532ed32b39c32a482b54136fe766d19936afc96c8f00645f9da1a06" - end - - def install - ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python3.7/site-packages" - resource("pyxdg").stage do - system "python", *Language::Python.setup_install_args(libexec/"vendor") - end - ENV["XDG_DATA_DIRS"] = libexec/"share" - ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python3.7/site-packages" - system "python3", "./setup.py", "install", "--prefix=#{libexec}" - bin.install Dir[libexec/"bin/*"] - bin.env_script_all_files libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"], :XDG_DATA_DIRS => libexec/"share" - pkgshare.install "zim" - end - - test do - ENV["LC_ALL"] = "en_US.UTF-8" - ENV["LANG"] = "en_US.UTF-8" - - system "#{bin}/zim", "--version" - end -end