Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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>
  • Loading branch information...
commit a8ddda5d2929294737a016b834ec7c4e9a802e49 1 parent 6af1e7e
2bits authored June 01, 2012 jacknagel committed June 01, 2012

Showing 1 changed file with 10 additions and 4 deletions. Show diff stats Hide diff stats

  1. 14  Library/Formula/two-lame.rb
14  Library/Formula/two-lame.rb
... ...
@@ -1,12 +1,18 @@
1 1
 require 'formula'
2 2
 
3 3
 class TwoLame < Formula
4  
-  url 'http://downloads.sourceforge.net/twolame/twolame-0.3.12.tar.gz'
5 4
   homepage 'http://www.twolame.org/'
6  
-  md5 'd38c3ead5ac49b7425c1a9ef91126a35'
  5
+  url 'http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz'
  6
+  sha1 '3ca460472c2f6eeedad70291d8e37da88b64eb8b'
  7
+
  8
+  depends_on 'libsndfile' if ARGV.include? '--frontend'
  9
+
  10
+  def options
  11
+    [['--frontend', 'Build the twolame frontend using libsndfile']]
  12
+  end
7 13
 
8 14
   def install
9  
-    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
10  
-    system "make install"
  15
+    system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
  16
+    system 'make install'
11 17
   end
12 18
 end

0 notes on commit a8ddda5

Please sign in to comment.
Something went wrong with that request. Please try again.