forked from objectundefined/homebrew-hyperdex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbusybee.rb
28 lines (23 loc) · 806 Bytes
/
busybee.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'
class Busybee < Formula
homepage 'http://hyperdex.org'
url 'http://hyperdex.org/src/busybee-0.4.0.tar.gz'
sha1 '5574a2cdfc196395604633fed584d99b892b53ea'
depends_on 'gcc48' => :build
depends_on 'autoconf'
depends_on 'autoconf-archive'
depends_on 'libtool'
depends_on 'automake'
depends_on 'libe'
def install
cxxstdlib_check :skip
ENV['CC']="#{HOMEBREW_PREFIX}/bin/gcc-4.8"
ENV['CXX']="#{HOMEBREW_PREFIX}/bin/g++-4.8"
ENV['LD']="#{HOMEBREW_PREFIX}/bin/gcc-4.8"
system "autoreconf -if"
system "./configure", "--prefix=#{prefix}", "PO6_LIBS=-L#{HOMEBREW_PREFIX}/lib",
"PO6_CFLAGS=-I#{HOMEBREW_PREFIX}/include", "E_LIBS=\"-L#{HOMEBREW_PREFIX}/lib -le\"",
"E_CFLAGS=-I#{HOMEBREW_PREFIX}/include"
system "make install"
end
end