2009-11-10 23:14:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Emboss < Formula
|
2009-11-10 23:14:46 +00:00
|
|
|
homepage 'http://emboss.sourceforge.net/'
|
2012-08-04 20:58:30 +00:00
|
|
|
url 'ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-6.5.7.tar.gz'
|
|
|
|
sha1 '907231eafe07917ae0bf9c5da2e7cdc3e9bae03a'
|
|
|
|
|
2012-11-02 18:35:26 +00:00
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
|
2012-08-04 20:58:30 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-11-02 18:35:26 +00:00
|
|
|
depends_on 'libharu' => :optional
|
|
|
|
depends_on 'gd' => :optional
|
|
|
|
depends_on :libpng => :recommended
|
|
|
|
depends_on :x11 unless build.include? 'without-x'
|
2009-11-10 23:14:46 +00:00
|
|
|
|
|
|
|
def install
|
2012-11-02 18:35:26 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--enable-64
|
|
|
|
--with-thread
|
|
|
|
]
|
|
|
|
args << '--without-x' if build.include? 'without-x'
|
|
|
|
system './configure', *args
|
|
|
|
system 'make install'
|
2009-11-10 23:14:46 +00:00
|
|
|
end
|
|
|
|
end
|