diff options
| author | Tino Wagner | 2014-04-25 13:46:36 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-05-05 13:49:27 +0100 |
| commit | 0c621b11b22ff063ccec670cb4983ad42a623113 (patch) | |
| tree | 3f869159c7f62f70c284fc1c008cb5d0fdacba9e /Library | |
| parent | 33efc983ba1fa48f939fbeae4b8a8413d3521b29 (diff) | |
| download | homebrew-0c621b11b22ff063ccec670cb4983ad42a623113.tar.bz2 | |
gwyddion: add python support
Add optional dependencies for Python support. Includes a patch that fixes
lazy loading Gwyddion libraries from the stand-alone gwy module.
Closes #28706.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gwyddion.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/gwyddion.rb b/Library/Formula/gwyddion.rb index 10495c249..44578c657 100644 --- a/Library/Formula/gwyddion.rb +++ b/Library/Formula/gwyddion.rb @@ -5,11 +5,19 @@ class Gwyddion < Formula url 'https://downloads.sourceforge.net/project/gwyddion/gwyddion/2.36/gwyddion-2.36.tar.xz' sha1 '0e81bbc3dbb0aadf5ab2ecb0606bd79a12681be2' + depends_on :x11 => :optional depends_on 'pkg-config' => :build depends_on 'gtk+' depends_on 'libxml2' depends_on 'fftw' depends_on 'gtkglext' + depends_on :python => :optional + depends_on 'pygtk' if build.with? 'python' + depends_on 'gtksourceview' if build.with? 'python' + + # Fixes the search path for the standalone Python module + # See: <http://sourceforge.net/p/gwyddion/mailman/message/32267170/> + patch :DATA def install system "./configure", "--disable-dependency-tracking", @@ -19,3 +27,16 @@ class Gwyddion < Formula system "make install" end end + +__END__ +--- a/modules/pygwy/gwy.c (revision 16160) ++++ b/modules/pygwy/gwy.c (working copy) +@@ -94,7 +94,7 @@ + guint i; + + for (i = 0; i < G_N_ELEMENTS(gwyddion_libs); i++) { +- gchar *filename = g_strconcat(gwyddion_libs[i], ".", G_MODULE_SUFFIX, ++ gchar *filename = g_strconcat(gwyddion_libs[i], ".dylib", + NULL); + GModule *modhandle = g_module_open(filename, G_MODULE_BIND_LAZY); + if (!modhandle) { |
