aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-03 17:29:23 +0100
committerJack Nagel2015-01-03 21:41:56 -0500
commit895a1c8fcb313fa7411d1cde9430c761cec61238 (patch)
tree551c2c2e9f9a1b94c1d1629e2018ded97d7a8261 /Library/Formula
parentaf1a8452af83c06c13304ac940929ed62826f464 (diff)
downloadhomebrew-895a1c8fcb313fa7411d1cde9430c761cec61238.tar.bz2
audiofile: head added
Closes #35514. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/audiofile.rb44
1 files changed, 28 insertions, 16 deletions
diff --git a/Library/Formula/audiofile.rb b/Library/Formula/audiofile.rb
index 46e82b115..c4bd3a077 100644
--- a/Library/Formula/audiofile.rb
+++ b/Library/Formula/audiofile.rb
@@ -1,27 +1,39 @@
-require 'formula'
-
class Audiofile < Formula
- homepage 'http://www.68k.org/~michael/audiofile/'
- url 'http://audiofile.68k.org/audiofile-0.3.6.tar.gz'
- sha1 '3aba3ef724b1b5f88cfc20ab9f8ce098e6c35a0e'
+ homepage "http://www.68k.org/~michael/audiofile/"
+ url "http://audiofile.68k.org/audiofile-0.3.6.tar.gz"
+ sha1 "3aba3ef724b1b5f88cfc20ab9f8ce098e6c35a0e"
+
+ head do
+ url "https://github.com/mpruett/audiofile.git"
+ depends_on "asciidoc" => :build
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
+ end
- option 'with-lcov', 'Enable Code Coverage support using lcov'
- option 'with-check', 'Run the test suite during install ~30sec'
+ option "with-lcov", "Enable Code Coverage support using lcov"
+ option "with-check", "Run the test suite during install ~30sec"
- depends_on 'lcov' => :optional
+ depends_on "lcov" => :optional
def install
+ if build.head?
+ inreplace "autogen.sh", "libtool", "glibtool"
+ ENV["XML_CATALOG_FILES"] = "#{HOMEBREW_PREFIX}/etc/xml/catalog"
+ end
+
+ configure = build.head? ? "./autogen.sh" : "./configure"
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
- args << '--enable-coverage' if build.with? 'lcov'
- system "./configure", *args
+ args << "--enable-coverage" if build.with? "lcov"
+ system configure, *args
system "make"
- system "make check" if build.with? 'check'
- system "make install"
+ system "make", "check" if build.with? "check"
+ system "make", "install"
end
test do
- inn = '/System/Library/Sounds/Glass.aiff'
- out = 'Glass.wav'
+ inn = "/System/Library/Sounds/Glass.aiff"
+ out = "Glass.wav"
conv_bin = "#{bin}/sfconvert"
info_bin = "#{bin}/sfinfo"
@@ -39,7 +51,7 @@ class Audiofile < Formula
return
end
- system conv_bin, inn, out, 'format', 'wave'
- system info_bin, '--short', '--reporterror', out
+ system conv_bin, inn, out, "format", "wave"
+ system info_bin, "--short", "--reporterror", out
end
end