2013-07-22 17:19:44 +00:00
|
|
|
class Gammu < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line utility to control a phone"
|
2015-12-18 19:03:47 +00:00
|
|
|
homepage "https://wammu.eu/gammu/"
|
2016-02-08 11:13:15 +00:00
|
|
|
url "https://dl.cihar.com/gammu/releases/gammu-1.37.0.tar.xz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/g/gammu/gammu_1.37.0.orig.tar.xz"
|
|
|
|
sha256 "f0a597be5c5138691606b78a82a17c76769c6ed445b4b541fcc06520f3bea61f"
|
2015-04-24 19:44:38 +00:00
|
|
|
head "https://github.com/gammu/gammu.git"
|
2013-07-22 17:19:44 +00:00
|
|
|
|
2015-04-24 21:14:33 +00:00
|
|
|
bottle do
|
2016-02-08 11:30:15 +00:00
|
|
|
sha256 "d58b0d51e5994f6560376a05e2ccb66ffa0d14728ca6a305d5936bf83ecd2aa6" => :el_capitan
|
|
|
|
sha256 "8b9c699089f4545d3c18a7bb30a408f06e3677bfbe4b216ee8db6a48677c425e" => :yosemite
|
|
|
|
sha256 "9357d5c1785ec7670bb3e935b30d1ac5bc732ec0f5f9e20647f6a0b61a066e52" => :mavericks
|
2015-04-24 21:14:33 +00:00
|
|
|
end
|
|
|
|
|
2015-04-24 19:44:38 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "glib" => :recommended
|
|
|
|
depends_on "gettext" => :optional
|
|
|
|
depends_on "openssl"
|
2013-07-22 17:19:44 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-24 19:44:38 +00:00
|
|
|
mkdir "build" do
|
2015-09-06 22:56:19 +00:00
|
|
|
system "cmake", "..", "-DBASH_COMPLETION_COMPLETIONSDIR:PATH=#{bash_completion}", *std_cmake_args
|
2015-04-24 19:44:38 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
2013-07-22 17:19:44 +00:00
|
|
|
end
|
|
|
|
|
2015-04-24 19:44:38 +00:00
|
|
|
test do
|
|
|
|
system bin/"gammu", "--help"
|
|
|
|
end
|
2013-07-22 17:19:44 +00:00
|
|
|
end
|