diff options
| author | Alex Dunn | 2015-04-24 12:44:38 -0700 | 
|---|---|---|
| committer | Mike McQuaid | 2015-04-25 10:54:12 +0100 | 
| commit | 3e5cc2960c64e610603b7df1474dd1b46402823f (patch) | |
| tree | edca409e82d32b4f80b2cb40699c9b2cc6d443a9 | |
| parent | 738f5b1166f63847286e760558fcb09bcea65f4f (diff) | |
| download | homebrew-3e5cc2960c64e610603b7df1474dd1b46402823f.tar.bz2 | |
gammu 1.36.0
Closes #39011.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/gammu.rb | 45 | 
1 files changed, 17 insertions, 28 deletions
| diff --git a/Library/Formula/gammu.rb b/Library/Formula/gammu.rb index 940a9a389..459c5d94a 100644 --- a/Library/Formula/gammu.rb +++ b/Library/Formula/gammu.rb @@ -1,39 +1,28 @@ -require 'formula' -  class Gammu < Formula -  homepage 'http://wammu.eu/gammu/' -  url 'https://downloads.sourceforge.net/project/gammu/gammu/1.33.0/gammu-1.33.0.tar.bz2' -  sha1 'b7ee28e7398ea578290588d94d69c295491ff86a' +  homepage "http://wammu.eu/gammu/" +  url "http://dl.cihar.com/gammu/releases/gammu-1.36.0.tar.xz" +  mirror "https://mirrors.kernel.org/debian/pool/main/g/gammu/gammu_1.36.0.orig.tar.xz" +  sha256 "9c89fd204e190db5b301d28b793e8d0f2b05069a5b2b91fde451a6dae7f7d633" -  depends_on 'cmake' => :build -  depends_on 'glib' => :recommended -  depends_on 'gettext' => :optional +  head "https://github.com/gammu/gammu.git" -  # Fixes issue https://github.com/gammu/gammu/issues/13 -  patch :DATA +  depends_on "cmake" => :build +  depends_on "glib" => :recommended +  depends_on "gettext" => :optional +  depends_on "openssl"    def install      args = std_cmake_args -    args << '-DINSTALL_BASH_COMPLETION=OFF' +    args << "-DINSTALL_BASH_COMPLETION=OFF"      args << "-DWITH_PYTHON=OFF" -    system 'cmake', *args -    system 'make' -    system 'make install' +    mkdir "build" do +      system "cmake", "..", *args +      system "make", "install" +    end    end +  test do +    system bin/"gammu", "--help" +  end  end - -__END__ -diff --git a/python/setup.py b/python/setup.py -index feb66e8..0982927 100755 ---- a/python/setup.py -+++ b/python/setup.py -@@ -282,6 +282,7 @@ gammumodule = Extension('gammu._gammu', -         'gammu/src/convertors/file.c', -         'gammu/src/convertors/call.c', -         'gammu/src/convertors/wap.c', -+        'gammu/src/convertors/diverts.c', -         'gammu/src/gammu.c', -         'gammu/src/smsd.c', -         ]) | 
