forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemboss.rb
33 lines (27 loc) · 986 Bytes
/
emboss.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "formula"
class Emboss < Formula
homepage "http://emboss.sourceforge.net/"
url "ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-6.6.0.tar.gz"
mirror "ftp://ftp.ebi.ac.uk/pub/software/unix/EMBOSS/EMBOSS-6.6.0.tar.gz"
mirror "https://science-annex.org/pub/emboss/EMBOSS-6.6.0.tar.gz"
sha1 "93749ebd0a777efd3749974d2401c3a2a013a3fe"
option "with-embossupdate", "Run embossupdate after `make install`"
depends_on "pkg-config" => :build
depends_on "libharu" => :optional
depends_on "gd" => :optional
depends_on :libpng => :recommended
depends_on :x11 => :recommended
def install
inreplace "Makefile.in", "$(bindir)/embossupdate", "" if build.without? "embossupdate"
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--enable-64
--with-thread
]
args << "--without-x" if build.without? "x11"
system "./configure", *args
system "make", "install"
end
end