PageRenderTime 48ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/Library/Formula/liblo.rb

https://github.com/nix/homebrew
Ruby | 36 lines | 27 code | 9 blank | 0 comment | 4 complexity | 0f98b851a134e7b6852d4f0816e9aaa8 MD5 | raw file
  1. require 'formula'
  2. class Liblo < Formula
  3. homepage 'http://liblo.sourceforge.net/'
  4. url 'http://downloads.sourceforge.net/project/liblo/liblo/0.27/liblo-0.27.tar.gz'
  5. sha1 'bbd92eb9ab7316ee3f75b6b887b6f853b848c1e5'
  6. head do
  7. url 'git://liblo.git.sourceforge.net/gitroot/liblo/liblo'
  8. depends_on 'autoconf' => :build
  9. depends_on 'automake' => :build
  10. depends_on 'libtool' => :build
  11. end
  12. option "enable-ipv6", "Compile with support for ipv6"
  13. option :universal
  14. def install
  15. ENV.universal_binary if build.universal?
  16. args = %W[--disable-debug
  17. --disable-dependency-tracking
  18. --prefix=#{prefix}]
  19. args << "--enable-ipv6" if build.include? "enable-ipv6"
  20. if build.head?
  21. system "./autogen.sh", *args
  22. else
  23. system "./configure", *args
  24. end
  25. system "make install"
  26. end
  27. end