Skip to content

Commit

Permalink
bandage 0.9.0
Browse files Browse the repository at this point in the history
Use the AppDir.
  • Loading branch information
sjackman committed Jan 11, 2022
1 parent cf57299 commit c43a7b7
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions Formula/bandage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@ class Bandage < Formula
# cite Wick_2015: "https://doi.org/10.1093/bioinformatics/btv383"
desc "Bioinf App for Navigating De novo Assembly Graphs Easily"
homepage "https://rrwick.github.io/Bandage/"
url "https://github.com/rrwick/Bandage/releases/download/v0.8.1/Bandage_Ubuntu_dynamic_v0_8_1.zip"
sha256 "2e8332e59b95438040a1b0ad29b3730ac63d7c638c635aeddde4789bf7a3116c"
license "GPL-3.0"
url "https://github.com/rrwick/Bandage/releases/download/v0.9.0/Bandage_Ubuntu-x86-64_v0.9.0_AppDir.zip"
version "0.9.0"
sha256 "beccfe21aa775f309e18b2835e942405e439268b9082e06f7c1765f2d3ad39b6"
license "GPL-3.0-only"

bottle do
root_url "https://ghcr.io/v2/brewsci/bio"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2f9db41fa2cc366255bc4cf5d58db949f0765db087021adf6d701a44b4a2f6ab"
end

depends_on "patchelf" => :build
depends_on "fontconfig"
depends_on "freetype"
depends_on :linux
depends_on "qt"
depends_on "patchelf" => :build unless OS.mac?
depends_on "mesa"

uses_from_macos "zlib"

def install
bin.install "Bandage"
unless OS.mac?
system "patchelf",
"--set-interpreter", HOMEBREW_PREFIX/"lib/ld.so",
"--set-rpath", HOMEBREW_PREFIX/"lib:#{Formula["qt"].opt_lib}",
bin/"Bandage"
end
prefix.install "Bandage_Ubuntu-x86-64_v#{version}/usr"
bin.install_symlink prefix/"usr/bin/bandage"
pkgshare.install "sample_LastGraph"
doc.install "dependencies"
system "patchelf",
"--set-interpreter", HOMEBREW_PREFIX/"lib/ld.so",
"--set-rpath", "$ORIGIN/../lib:#{HOMEBREW_PREFIX}/lib",
bin/"bandage"
end

test do
assert_match "Usage", shell_output("#{bin}/Bandage --help")
assert_match "Usage", shell_output("#{bin}/bandage --help")
end
end

0 comments on commit c43a7b7

Please sign in to comment.