@@ -2,34 +2,35 @@ class Bandage < Formula
22 # cite Wick_2015: "https://doi.org/10.1093/bioinformatics/btv383"
33 desc "Bioinf App for Navigating De novo Assembly Graphs Easily"
44 homepage "https://rrwick.github.io/Bandage/"
5- url "https://github.com/rrwick/Bandage/releases/download/v0.8.1/Bandage_Ubuntu_dynamic_v0_8_1.zip"
6- sha256 "2e8332e59b95438040a1b0ad29b3730ac63d7c638c635aeddde4789bf7a3116c"
7- license "GPL-3.0"
5+ url "https://github.com/rrwick/Bandage/releases/download/v0.9.0/Bandage_Ubuntu-x86-64_v0.9.0_AppDir.zip"
6+ version "0.9.0"
7+ sha256 "beccfe21aa775f309e18b2835e942405e439268b9082e06f7c1765f2d3ad39b6"
8+ license "GPL-3.0-only"
89
910 bottle do
1011 root_url "https://ghcr.io/v2/brewsci/bio"
1112 sha256 cellar : :any_skip_relocation , x86_64_linux : "2f9db41fa2cc366255bc4cf5d58db949f0765db087021adf6d701a44b4a2f6ab"
1213 end
1314
15+ depends_on "patchelf" => :build
16+ depends_on "fontconfig"
17+ depends_on "freetype"
1418 depends_on :linux
15- depends_on "qt"
16- depends_on "patchelf" => :build unless OS . mac?
19+ depends_on "mesa"
1720
1821 uses_from_macos "zlib"
1922
2023 def install
21- bin . install "Bandage"
22- unless OS . mac?
23- system "patchelf" ,
24- "--set-interpreter" , HOMEBREW_PREFIX /"lib/ld.so" ,
25- "--set-rpath" , HOMEBREW_PREFIX /"lib:#{ Formula [ "qt" ] . opt_lib } " ,
26- bin /"Bandage"
27- end
24+ prefix . install "Bandage_Ubuntu-x86-64_v#{ version } /usr"
25+ bin . install_symlink prefix /"usr/bin/bandage"
2826 pkgshare . install "sample_LastGraph"
29- doc . install "dependencies"
27+ system "patchelf" ,
28+ "--set-interpreter" , HOMEBREW_PREFIX /"lib/ld.so" ,
29+ "--set-rpath" , "$ORIGIN/../lib:#{ HOMEBREW_PREFIX } /lib" ,
30+ bin /"bandage"
3031 end
3132
3233 test do
33- assert_match "Usage" , shell_output ( "#{ bin } /Bandage --help" )
34+ assert_match "Usage" , shell_output ( "#{ bin } /bandage --help" )
3435 end
3536end
0 commit comments