Skip to content

Instantly share code, notes, and snippets.

@markdillon
Forked from lxfontes/freeswitch.rb
Created February 27, 2012 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markdillon/1923198 to your computer and use it in GitHub Desktop.
Save markdillon/1923198 to your computer and use it in GitHub Desktop.
Homebrew formula for installing FreeSWITCH that I wrote tonight. Unsure of best way to automatically "test" FreeSWITCH. Thoughts?
require 'formula'
class Freeswitch < Formula
url 'http://files.freeswitch.org/freeswitch-snapshot.tar.gz'
homepage ''
md5 '786a1e1acf1c59d4d814bf717a426779'
version 'flite'
depends_on 'cmake'
depends_on 'jpeg'
depends_on 'spidermonkey'
def install
system "./bootstrap.sh"
system "./configure", "--enable-shared", "--enable-static",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--exec_prefix=#{prefix}"
system "make"
system "make install"
#system "make mod_xml_curl"
#system "make mod_xml_curl-install"
system "make cd-sounds-install"
system "make cd-moh-install"
end
def test
# this will fail we won't accept that, make it test the program works!
system "/usr/bin/false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment