Skip to content

Commit

Permalink
bandage 0.9.0
Browse files Browse the repository at this point in the history
The AppImage includes Qt.
  • Loading branch information
sjackman committed Jan 11, 2022
1 parent cf57299 commit 4d428cd
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Formula/bandage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,28 @@ 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_AppImage.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 :linux
depends_on "qt"
depends_on "patchelf" => :build unless OS.mac?

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
bin.install "Bandage_Ubuntu-x86-64_v#{version}.AppImage" => "Bandage"
system "patchelf",
"--set-interpreter", HOMEBREW_PREFIX/"lib/ld.so",
"--set-rpath", HOMEBREW_PREFIX/"lib",
bin/"Bandage"
pkgshare.install "sample_LastGraph"
doc.install "dependencies"
end

test do
Expand Down

0 comments on commit 4d428cd

Please sign in to comment.