diff options
| author | Misty De Meo | 2012-01-22 22:32:15 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-01-25 21:45:19 -0600 |
| commit | aedacdf209815450204602ff403bb5c4510d6a3a (patch) | |
| tree | 27ecb795418341d3ea2e435c3eb415c7bfc37f91 /Library/Formula/scantailor.rb | |
| parent | 84a2e44db41ee4c45ad8735b96d9bb7a655efde3 (diff) | |
| download | homebrew-aedacdf209815450204602ff403bb5c4510d6a3a.tar.bz2 | |
Add `devel` to the DSL, + stable and bottle blocks
This commit adds a `devel` entry to the DSL, allowing formulae to
specify an unstable branch.
`devel` takes a block, which should contain standard `url` and `md5`
fields (and `version`, if necessary). This must come after the standard
DSL fields.
This commit also migrates over all formulae currently using `devel` to
the new syntax, as well as formulae which used `head` for non-VCS urls.
The new syntax is also available for `stable` and `bottle`. `stable` is
an option alongside the old syntax. `bottle` replaces the old syntax.
Note that the @stable ivar in Formula has been renamed to @standard,
and the @bottle ivar has been renamed to @bottle_url.
Closes #9735.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula/scantailor.rb')
| -rw-r--r-- | Library/Formula/scantailor.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Library/Formula/scantailor.rb b/Library/Formula/scantailor.rb index 64432d500..6553d6155 100644 --- a/Library/Formula/scantailor.rb +++ b/Library/Formula/scantailor.rb @@ -2,11 +2,10 @@ require 'formula' class Scantailor < Formula homepage 'http://scantailor.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.10/scantailor-0.9.10.tar.gz' + md5 'f962c93a2d63b449fa3f6612ade3b028' - unless ARGV.include? '--enhanced' - url 'http://downloads.sourceforge.net/project/scantailor/scantailor/0.9.10/scantailor-0.9.10.tar.gz' - md5 'f962c93a2d63b449fa3f6612ade3b028' - else + devel do url 'http://downloads.sourceforge.net/project/scantailor/scantailor-devel/enhanced/scantailor-enhanced-20110907.tar.gz' md5 '8ba5c23c611e7bdd7cdb40f991f6fd35' version 'enhanced-20110907' @@ -18,12 +17,6 @@ class Scantailor < Formula depends_on 'jpeg' depends_on 'libtiff' - def options - [ - ["--enhanced", "Build experimental \"enhanced\" branch, which includes extra features"] - ] - end - def install system "cmake . #{std_cmake_parameters} -DPNG_INCLUDE_DIR=/usr/X11/include" system "make install" |
