blob: 7ac6cab0dad7f3c6c84cc279f1bd8a4b508cc7c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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 if MacOS.version <= :snow_leopard
depends_on 'libmms'
# Switch shared library loading to Mach-O naming convention (.dylib)
# Matching upstream bug report: http://savannah.nongnu.org/bugs/?29684
patch :DATA
def install
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
system "python", "setup.py", "install", "--prefix=#{prefix}"
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end
test do
system "#{bin}/mimms", "--version"
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]
|