class Emboss < Formula # cite Rice_2000: "https://doi.org/10.1016/S0168-9525(00)02024-2" desc "European Molecular Biology Open Software Suite" homepage "https://emboss.sourceforge.io/" url "ftp://emboss.open-bio.org/pub/EMBOSS/EMBOSS-6.6.0.tar.gz" mirror "http://mirrors.mit.edu/gentoo-distfiles/distfiles/EMBOSS-6.6.0.tar.gz" mirror "https://science-annex.org/pub/emboss/EMBOSS-6.6.0.tar.gz" sha256 "7184a763d39ad96bb598bfd531628a34aa53e474db9e7cac4416c2a40ab10c6e" license "GPL-2.0-or-later" revision 1 bottle do root_url "https://ghcr.io/v2/brewsci/bio" sha256 big_sur: "5009f9093ca395f5b905a5cc65a8173056f28bccba378cc1fcfdcdfc4458f4be" sha256 x86_64_linux: "2fd2530f68175c115e478a262323bdba8871b9407873723af2c164067c096e99" end depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build depends_on "pkg-config" => :build depends_on "gd" depends_on "libharu" depends_on "libpng" depends_on "mysql" => :optional depends_on "postgresql@14" => :optional uses_from_macos "zlib" def install # Regenerate configure to fix flat namespace errors on macOS 11+ system "autoreconf", "-fvi" args = %W[ --disable-debug --disable-dependency-tracking --prefix=#{prefix} --mandir=#{man} --docdir=#{doc} --enable-64 --with-thread ] args << "--without-x" args << "--with-mysql" if build.with? "mysql" args << "--with-postgresql" if build.with? "postgresql" system "./configure", *args system "make", "install" end test do assert_match "5\n", shell_output("#{bin}/seqcount -auto -filter #{share}/EMBOSS/test/data/tranalign.pep") end end