homebrew-core/Formula/sdcv.rb
2019-06-18 08:24:31 +02:00

33 lines
949 B
Ruby

class Sdcv < Formula
desc "StarDict Console Version"
homepage "https://dushistov.github.io/sdcv/"
url "https://github.com/Dushistov/sdcv/archive/v0.5.2.tar.gz"
sha256 "ec08dc084a0748d5a89df01a20bbf294f09b0366295cd418000f15d2e043c4f7"
revision 2
version_scheme 1
head "https://github.com/Dushistov/sdcv.git"
bottle do
sha256 "d40dc4d63326ca5268f5b1d75a8a64ecc0081fe6e35d6279ee937774b39cfb33" => :mojave
sha256 "322ec61f8ae7914f8a8f5da7fac01ef0ee69aa9f9844e1c876168f9fdf54887a" => :high_sierra
sha256 "e0aa6779b49ae274e5a9da62a12caceaf2149b587d96ce051bd5c7d735c81fa4" => :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