48 lines
2.3 KiB
Ruby
48 lines
2.3 KiB
Ruby
class TokyoDystopia < Formula
|
|
desc "Lightweight full-text search system"
|
|
homepage "https://dbmx.net/tokyodystopia/"
|
|
url "https://dbmx.net/tokyodystopia/tokyodystopia-0.9.15.tar.gz"
|
|
sha256 "28b43c592a127d1c9168eac98f680aa49d1137b4c14b8d078389bbad1a81830a"
|
|
license "LGPL-2.1"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/href=.*?tokyodystopia[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_ventura: "b668547ea69b42bff8b084ec960fb1d1b0233179b2b8b2ea5bb83b013ab81f84"
|
|
sha256 cellar: :any, arm64_monterey: "6c120e05bb6ced87121536beab4895c0b03d0e94206fe6fafac4a96326bf2e32"
|
|
sha256 cellar: :any, arm64_big_sur: "9e0c8988268eec1f5fe33f5d7f494f636c64690f417e179e37a83f9b4880b315"
|
|
sha256 cellar: :any, ventura: "21e551f8a8e43d5c841619fa462b209aa25a18140cbe0ece3f923a14e3cab1fa"
|
|
sha256 cellar: :any, monterey: "60710bf05465d1a0d1b9820998971cbe2ba9387e4bb121bc6aeadc4aa00a2d91"
|
|
sha256 cellar: :any, big_sur: "f771602cfd9301739750f839295241f829528eee8ecfe02ac95b55fc24c3841e"
|
|
sha256 cellar: :any, catalina: "eb04133c9d459ee1ab9a4fe00b3f6b31621d9df2672a252784779a44a5991b77"
|
|
sha256 cellar: :any, mojave: "056aa0bfed85351c6296b0749dfa15a2e9471ef554796f726708438e312b5790"
|
|
sha256 cellar: :any, high_sierra: "3f00b619720603bd0712b52d01a355124604637c44cab5a3132fda942f195e2c"
|
|
sha256 cellar: :any, sierra: "0a7da80cf5e8892112986d9a51e8cd3804da2a7436b8a03b472f561b06c35890"
|
|
sha256 cellar: :any, el_capitan: "2a9e21b6f57781adb9e3dc673f2e466b817d4a00860b45fa49ded534d4cb0ed4"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "1babf4df457924711f3ad2fc7e8f9f797950f53de9f1b740290ec1c112ca83e8"
|
|
end
|
|
|
|
depends_on "tokyo-cabinet"
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.tsv").write <<~EOS
|
|
1\tUnited States
|
|
55\tBrazil
|
|
81\tJapan
|
|
EOS
|
|
|
|
system "#{bin}/dystmgr", "importtsv", "casket", "test.tsv"
|
|
system "#{bin}/dystmgr", "put", "casket", "83", "China"
|
|
system "#{bin}/dystmgr", "list", "-pv", "casket"
|
|
end
|
|
end
|