aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorstefanschmidt2013-06-24 00:28:10 +0200
committerAdam Vandenberg2013-08-02 10:45:01 -0700
commit70f671395a72fb82c95cc40ae6f6fdea16c0e213 (patch)
tree4d1b53d8e18da1bfa91304adb5ab6206b6f64323 /Library
parent48a11350dfcf1e58925fa7d853abc137e5d59548 (diff)
downloadhomebrew-70f671395a72fb82c95cc40ae6f6fdea16c0e213.tar.bz2
mimms 3.2.1
Closes #19726. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mimms.rb48
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/mimms.rb b/Library/Formula/mimms.rb
new file mode 100644
index 000000000..ee5386a6d
--- /dev/null
+++ b/Library/Formula/mimms.rb
@@ -0,0 +1,48 @@
+require 'formula'
+
+class Mimms < Formula
+ homepage 'http://savannah.nongnu.org/projects/mimms'
+ url 'https://launchpad.net/mimms/trunk/3.2.1/+download/mimms-3.2.1.tar.bz2'
+ sha1 '279eee76dd4032cd2c1dddf1d49292a952c57b80'
+
+ depends_on :python
+ depends_on 'libmms'
+
+ # Switch shared library loading to Mach-O naming convention (.dylib)
+ # Matching upstream bug report: http://savannah.nongnu.org/bugs/?29684
+ # Fix installation path for man page to $(brew --prefix)/share/man
+ def patches
+ DATA
+ end
+
+ def install
+ python do
+ system python, "setup.py", "install", "--prefix=#{prefix}"
+ end
+ end
+
+ def caveats
+ python.standard_caveats if python
+ end
+
+ test do
+ python do
+ system "#{bin}/mimms", "--version"
+ end
+ end
+end
+
+__END__
+diff --git a/libmimms/libmms.py b/libmimms/libmms.py
+index fb59207..ac42ba4 100644
+--- a/libmimms/libmms.py
++++ b/libmimms/libmms.py
+@@ -23,7 +23,7 @@ exposes the mmsx interface, since this one is the most flexible.
+
+ from ctypes import *
+
+-libmms = cdll.LoadLibrary("libmms.so.0")
++libmms = cdll.LoadLibrary("libmms.0.dylib")
+
+ # opening and closing the stream
+ libmms.mmsx_connect.argtypes = [c_void_p, c_void_p, c_char_p, c_int]