f6e80bdea2
New `depends_on :python` Dependency. New `depends_on :python3` Dependency. To avoid having multiple formulae with endings -py2 and -py3, we will handle support for different pythons (2.x vs. 3.x) in the same formula. Further brewed vs. external python will be transparently supported. The formula also gets a new object `python`, which is false if no Python is available or the user has disabled it. Otherwise it is defined and provides several support methods: python.site_packages # the site-packages in the formula's Cellar python.global_site_packages python.binary # the full path to the python binary python.prefix python.version python.version.major python.version.minor python.xy # => e.g. "python2.7" python.incdir # includes of python python.libdir # the python dylib library python.pkg_config_path # used internally by brew python.from_osx? python.framework? python.universal? python.pypy? python.standard_caveats # Text to set PYTHONPATH for python.from_osx? python.if3then3 # => "" for 2.x and to "3" for 3.x. Further, to avoid code duplication, `python` takes an optional block that is run twice if the formula defines depends_on :python AND :python3. python do system python, 'setup.py', "--prefix=#{prefix}" end Read more in the Homebrew wiki.
65 lines
1.4 KiB
Ruby
65 lines
1.4 KiB
Ruby
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'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on :python => :recommended
|
|
|
|
# http://www.omniorb-support.com/pipermail/omniorb-list/2012-February/031202.html
|
|
def patches
|
|
DATA
|
|
end
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}"]
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
|
|
python do
|
|
OmniorbBindings.new.brew do
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|
|
|
|
def caveats
|
|
python.standard_caveats if python
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/omniidl", "-h"
|
|
|
|
if build.with? '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
|
|
//
|