PageRenderTime 25ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/liblo.rb

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