aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Dunn2015-04-24 12:44:38 -0700
committerMike McQuaid2015-04-25 10:54:12 +0100
commit3e5cc2960c64e610603b7df1474dd1b46402823f (patch)
treeedca409e82d32b4f80b2cb40699c9b2cc6d443a9
parent738f5b1166f63847286e760558fcb09bcea65f4f (diff)
downloadhomebrew-3e5cc2960c64e610603b7df1474dd1b46402823f.tar.bz2
gammu 1.36.0
Closes #39011. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/gammu.rb45
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',
- ])