aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGuilherme Brondani Torri2012-12-17 22:49:35 +0100
committerAdam Vandenberg2013-01-13 15:27:40 -0800
commit724cfbe01eab2b3fdb9de697c4883bf991db7969 (patch)
treea2c12983d45fd1759fe7f0af360ac6c151c87293 /Library
parenta2840225d80c042bacaf66bb66cc73c0ff01c667 (diff)
downloadhomebrew-724cfbe01eab2b3fdb9de697c4883bf991db7969.tar.bz2
omniORB 4.1.6
Closes #15119. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/omniorb.rb77
1 files changed, 77 insertions, 0 deletions
diff --git a/Library/Formula/omniorb.rb b/Library/Formula/omniorb.rb
new file mode 100644
index 000000000..f60cdfa6b
--- /dev/null
+++ b/Library/Formula/omniorb.rb
@@ -0,0 +1,77 @@
+require 'formula'
+
+class OmniorbBindings < Formula
+ homepage 'http://omniorb.sourceforge.net/'
+ url 'http://sourceforge.net/projects/omniorb/files/omniORBpy/omniORBpy-3.6/omniORBpy-3.6.tar.bz2'
+ sha1 '2def5ded7cd30e8d298113ed450b7bd09eaaf26f'
+end
+
+class Omniorb < Formula
+ homepage 'http://omniorb.sourceforge.net/'
+ url 'http://sourceforge.net/projects/omniorb/files/omniORB/omniORB-4.1.6/omniORB-4.1.6.tar.bz2'
+ sha1 '383e3b3b605188fe6358316917576e0297c4e1a6'
+
+ option 'python', 'Enable Python mappings'
+
+ depends_on 'pkg-config' => :build
+
+ # http://www.omniorb-support.com/pipermail/omniorb-list/2012-February/031202.html
+ def patches
+ DATA
+ end
+
+ def install
+ args = ["--prefix=#{prefix}", "PYTHON=#{which 'python'}"]
+ system "./configure", *args
+ system "make"
+ system "make install"
+
+ if build.include? 'python'
+ OmniorbBindings.new.brew do
+ system "./configure", *args
+ system "make install"
+ end
+ end
+ end
+
+ def caveats
+ s = ''
+ if build.include? 'python'
+ s += <<-EOS.undent
+ For non-homebrew Python, you need to amend your PYTHONPATH like so:
+ export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages:$PYTHONPATH
+ EOS
+ end
+ return s.empty? ? nil : s
+ end
+
+ def which_python
+ "python" + `python -c 'import sys;print(sys.version[:3])'`.strip
+ end
+
+ def test
+ system "omniidl", "-h"
+
+ if build.include? 'python'
+ system "python", "-c", %(import omniORB; print 'omniORBpy', omniORB.__version__)
+ end
+ end
+end
+
+__END__
+diff --git a/include/omniORB4/CORBA_sysdep.h b/include/omniORB4/CORBA_sysdep.h
+index 3ff1f22..e3b8d3c 100644
+--- a/include/omniORB4/CORBA_sysdep.h
++++ b/include/omniORB4/CORBA_sysdep.h
+@@ -231,6 +231,11 @@
+ #endif
+
+
++#if defined(__clang__)
++# define OMNI_NO_INLINE_FRIENDS
++#endif
++
++
+ //
+ // Windows DLL hell
+ //