aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornibbles 2bits2012-06-01 02:50:33 -0700
committerJack Nagel2012-06-01 13:51:21 -0500
commita8ddda5d2929294737a016b834ec7c4e9a802e49 (patch)
treeae1a873ecacf4d05855d69e1d23a31904fcef0b6
parent6af1e7e4ce7ab16a5da74e894ce56c3b49bb24d9 (diff)
downloadhomebrew-a8ddda5d2929294737a016b834ec7c4e9a802e49.tar.bz2
two-lame 0.3.13 + option to build cli
Upgrade twolame to version 0.3.13. Remove the unrecognized `--disable-debug` flag. Add a dependency on libsndfile if the user options it. Add a user option called `--frontend`. Twolame contains a well coded frontend cli named `twolame` that will automatically be created if libsndfile is present. Because some users may want that so they can convert audio file types, this commit adds that dependency as a user triggered option. The frontend can't be turned off by any configure switches. So there is no code in the formula for args here. This software passes all 77 tests from `make check` when the frontend is built, but that is also left out because it's not critical. Closes #12549. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/two-lame.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/two-lame.rb b/Library/Formula/two-lame.rb
index e385cf7bc..00d1271de 100644
--- a/Library/Formula/two-lame.rb
+++ b/Library/Formula/two-lame.rb
@@ -1,12 +1,18 @@
require 'formula'
class TwoLame < Formula
- url 'http://downloads.sourceforge.net/twolame/twolame-0.3.12.tar.gz'
homepage 'http://www.twolame.org/'
- md5 'd38c3ead5ac49b7425c1a9ef91126a35'
+ url 'http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz'
+ sha1 '3ca460472c2f6eeedad70291d8e37da88b64eb8b'
+
+ depends_on 'libsndfile' if ARGV.include? '--frontend'
+
+ def options
+ [['--frontend', 'Build the twolame frontend using libsndfile']]
+ end
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
- system "make install"
+ system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
+ system 'make install'
end
end