34 lines
967 B
Ruby
34 lines
967 B
Ruby
class Sdcv < Formula
|
|
desc "StarDict Console Version"
|
|
homepage "https://dushistov.github.io/sdcv/"
|
|
url "https://github.com/Dushistov/sdcv/archive/v0.5.3.tar.gz"
|
|
sha256 "75fb95b1607fdd2fb9f7795d3432d295904614150575ae539202f680499803c9"
|
|
license "GPL-2.0-or-later"
|
|
version_scheme 1
|
|
head "https://github.com/Dushistov/sdcv.git"
|
|
|
|
bottle do
|
|
sha256 "4831ddd61d8b9e9b7024cfc898d4e7e4c89207276ac2a4bc5b22911294d3e8b6" => :catalina
|
|
sha256 "98f5f41515dc5b1dbf8ca9bb7f47990c9c5852a8f5e56a93da303fcb024ef411" => :mojave
|
|
sha256 "9e95490034c0b964cf617e05361ac7128a5e5e886ea38dcc4f14b64468c328ac" => :high_sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "readline"
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make", "lang"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system bin/"sdcv", "-h"
|
|
end
|
|
end
|