2013-07-22 17:19:44 +00:00
|
|
|
class Gammu < Formula
|
2015-04-24 19:44:38 +00:00
|
|
|
homepage "http://wammu.eu/gammu/"
|
2015-04-25 11:20:40 +00:00
|
|
|
url "https://dl.cihar.com/gammu/releases/gammu-1.36.0.tar.xz"
|
2015-04-24 19:44:38 +00:00
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/g/gammu/gammu_1.36.0.orig.tar.xz"
|
|
|
|
sha256 "9c89fd204e190db5b301d28b793e8d0f2b05069a5b2b91fde451a6dae7f7d633"
|
2013-07-22 17:19:44 +00:00
|
|
|
|
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
|
|
|
|
sha256 "c5e3744176b3609902070f07ced499d02570a8dc0d5aa72e02383b8e9bcce5a4" => :yosemite
|
|
|
|
sha256 "106312958bcfb95929178a716ca5cd458ee37ba9e6ad6ca80ba3dbb0ac8c8b40" => :mavericks
|
|
|
|
sha256 "d1f54aae239138586fbc5693120a28b58eb709811461478b8dc976345b3de3df" => :mountain_lion
|
|
|
|
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
|
|
|
|
args = std_cmake_args
|
2015-04-24 19:44:38 +00:00
|
|
|
args << "-DINSTALL_BASH_COMPLETION=OFF"
|
2013-07-22 17:19:44 +00:00
|
|
|
args << "-DWITH_PYTHON=OFF"
|
|
|
|
|
2015-04-24 19:44:38 +00:00
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *args
|
|
|
|
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
|