2012-12-17 21:49:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class OmniorbBindings < Formula
|
|
|
|
homepage 'http://omniorb.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/omniorb/omniORBpy/omniORBpy-3.6/omniORBpy-3.6.tar.bz2'
|
2012-12-17 21:49:35 +00:00
|
|
|
sha1 '2def5ded7cd30e8d298113ed450b7bd09eaaf26f'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Omniorb < Formula
|
|
|
|
homepage 'http://omniorb.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/omniorb/omniORB/omniORB-4.1.6/omniORB-4.1.6.tar.bz2'
|
2012-12-17 21:49:35 +00:00
|
|
|
sha1 '383e3b3b605188fe6358316917576e0297c4e1a6'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :recommended
|
2012-12-17 21:49:35 +00:00
|
|
|
|
|
|
|
# http://www.omniorb-support.com/pipermail/omniorb-list/2012-February/031202.html
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2013-06-06 04:07:21 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-12-17 21:49:35 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
python do
|
2012-12-17 21:49:35 +00:00
|
|
|
OmniorbBindings.new.brew do
|
2013-06-06 04:07:21 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-12-17 21:49:35 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
2013-01-21 09:33:56 +00:00
|
|
|
python.standard_caveats if python
|
2012-12-17 21:49:35 +00:00
|
|
|
end
|
|
|
|
|
2013-03-25 18:35:20 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/omniidl", "-h"
|
2012-12-17 21:49:35 +00:00
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
if build.with? 'python'
|
|
|
|
system python, "-c", %(import omniORB; print 'omniORBpy', omniORB.__version__)
|
2013-03-25 18:35:20 +00:00
|
|
|
end
|
2012-12-17 21:49:35 +00:00
|
|
|
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
|
|
|
|
//
|