homebrew-core/Formula/io.rb

64 lines
1.6 KiB
Ruby
Raw Normal View History

2009-11-12 18:15:15 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Io < Formula
2012-02-22 04:48:36 +00:00
homepage 'http://iolanguage.com/'
url 'https://github.com/stevedekorte/io/tarball/2011.09.12'
sha1 '56720fe9b2c746ca817c15e48023b256363b3015'
2012-02-22 04:48:36 +00:00
head 'https://github.com/stevedekorte/io.git'
option 'without-addons', 'Build without addons'
option 'without-python', 'Build without python addon'
depends_on 'cmake' => :build
depends_on 'ossp-uuid'
depends_on 'libevent'
depends_on 'yajl'
depends_on 'libffi'
depends_on 'pcre'
# Fix recursive inline. See discussion in:
# https://github.com/stevedekorte/io/issues/135
def patches
DATA
end
2009-11-12 18:15:15 +00:00
def install
ENV.j1
if build.include? 'without-addons'
inreplace "CMakeLists.txt",
'add_subdirectory(addons)',
'#add_subdirectory(addons)'
end
if build.include? 'without-python'
inreplace "addons/CMakeLists.txt",
'add_subdirectory(Python)',
'#add_subdirectory(Python)'
end
2012-02-22 04:48:36 +00:00
mkdir 'buildroot' do
system "cmake", "..", *std_cmake_args
system 'make'
output = %x[./_build/binaries/io ../libs/iovm/tests/correctness/run.io]
if $?.exitstatus != 0
opoo "Test suite not 100% successful:\n#{output}"
else
ohai "Test suite ran successfully:\n#{output}"
end
system 'make install'
end
2009-11-12 18:15:15 +00:00
end
end
__END__
--- a/libs/basekit/source/Common_inline.h 2011-09-12 17:14:12.000000000 -0500
+++ b/libs/basekit/source/Common_inline.h 2011-12-17 00:46:02.000000000 -0600
@@ -52,7 +52,7 @@
#if defined(__APPLE__)
- #define NS_INLINE static __inline__ __attribute__((always_inline))
+ #define NS_INLINE static inline
#ifdef IO_IN_C_FILE
// in .c