aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Cacau2013-07-22 14:19:44 -0300
committerAdam Vandenberg2013-10-26 11:08:48 -0700
commiteaa16dcb34fe84f122e72d3a9c94de5fae40a3d4 (patch)
treef1904a80ccc578bd903692ec5f9710c7d7bdc358
parentd94a6fff855a7d0bb98e39cd34f56ccb56fbd9bd (diff)
downloadhomebrew-eaa16dcb34fe84f122e72d3a9c94de5fae40a3d4.tar.bz2
gammu 1.33.0
Closes #21384. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/gammu.rb47
1 files changed, 47 insertions, 0 deletions
diff --git a/Library/Formula/gammu.rb b/Library/Formula/gammu.rb
new file mode 100644
index 000000000..11606f2c6
--- /dev/null
+++ b/Library/Formula/gammu.rb
@@ -0,0 +1,47 @@
+require 'formula'
+
+class Gammu < Formula
+ homepage 'http://wammu.eu/gammu/'
+ url 'http://downloads.sourceforge.net/project/gammu/gammu/1.33.0/gammu-1.33.0.tar.bz2'
+ sha1 'b7ee28e7398ea578290588d94d69c295491ff86a'
+
+ depends_on 'cmake' => :build
+ depends_on 'glib' => :recommended
+ depends_on 'gettext' => :optional
+ depends_on :python => :recommended
+
+ def patches
+ # Fixes issue https://github.com/gammu/gammu/issues/13
+ DATA
+ end
+
+ def install
+ args = std_cmake_args
+ args << '-DINSTALL_BASH_COMPLETION=OFF'
+ args << "-DWITH_PYTHON=OFF"
+
+ system 'cmake', *args
+ system 'make'
+ system 'make install'
+ python do
+ chdir 'python' do
+ system "#{python.binary} setup.py build_ext --gammu-libs=#{lib} --gammu-incs=#{include}/gammu install"
+ end
+ end
+ 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',
+ ])