homebrew-core/Formula/sword.rb

46 lines
1.5 KiB
Ruby

class Sword < Formula
desc "Cross-platform tools to write Bible software"
homepage "https://www.crosswire.org/sword/index.jsp"
url "https://www.crosswire.org/ftpmirror/pub/sword/source/v1.9/sword-1.9.0.tar.gz"
sha256 "42409cf3de2faf1108523e2c5ac0745d21f9ed2a5c78ed878ee9dcc303426b8a"
license "GPL-2.0-only"
livecheck do
url "https://www.crosswire.org/ftpmirror/pub/sword/source/"
regex(%r{href=.*?sword[._-]v?(\d+(?:\.\d+)+)/?["' >]}i)
end
bottle do
rebuild 1
sha256 arm64_big_sur: "aa8af3684bf4475f2c4f193ce2eee82751525f99dfc718b49495ba58f1866662"
sha256 big_sur: "85fd915531e0d5afa3ca380be523b09dd6c7ef4085ac4c7e26fc09e81c945228"
sha256 catalina: "65d2da4bfbc5517b4fba2d4da6a4b57ff2429126041c59ee83ad29886df71d70"
sha256 mojave: "84420513bcd1215cfcee1737022551b86d80059a0dfb1de6fc82dcec050280a2"
sha256 high_sierra: "42b2dfd8162cd7b96efeba4da340df7dafae5f581be6c6bbb47f37a07bd9f66a"
end
uses_from_macos "zlib"
def install
args = %W[
--prefix=#{prefix}
--disable-debug
--disable-profile
--disable-tests
--with-curl
--without-icu
--without-clucene
]
system "./configure", *args
system "make", "install"
end
test do
# This will call sword's module manager to list remote sources.
# It should just demonstrate that the lib was correctly installed
# and can be used by frontends like installmgr.
system "#{bin}/installmgr", "-s"
end
end