36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
class Zebra < Formula
|
|
desc "Information management system"
|
|
homepage "https://www.indexdata.com/zebra"
|
|
url "http://ftp.indexdata.dk/pub/zebra/idzebra-2.0.61.tar.gz"
|
|
sha256 "e3e5d3c50500847c4d065c93108ab9fd0222a8dbddc12565090cfdd8a885cf6f"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "bcfbe5b360d8cc65c0851123bd8be65563128dfc3ca840f5c0a9b9b18e8f1a4d" => :el_capitan
|
|
sha256 "4723c0bc882ea66416ba7f3af54d227c055c9c940419da44a9c95b1567be4292" => :yosemite
|
|
sha256 "c83e5ca5feeb378ae0220842428fd99731d1b8005f78497b09b5d0342da7bb72" => :mavericks
|
|
end
|
|
|
|
depends_on "icu4c" => :recommended
|
|
depends_on "yaz"
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-mod-text",
|
|
"--enable-mod-grs-regx",
|
|
"--enable-mod-grs-marc",
|
|
"--enable-mod-grs-xml",
|
|
"--enable-mod-dom",
|
|
"--enable-mod-alvis",
|
|
"--enable-mod-safari"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
cd share/"idzebra-2.0-examples/oai-pmh/" do
|
|
system "zebraidx-2.0", "-c", "conf/zebra.cfg", "init"
|
|
system "zebraidx-2.0", "-c", "conf/zebra.cfg", "commit"
|
|
end
|
|
end
|
|
end
|