2f03f781da
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 Homebrew/homebrew#9735. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
22 lines
520 B
Ruby
22 lines
520 B
Ruby
require 'formula'
|
|
|
|
class Fltk < Formula
|
|
url 'http://ftp2.easysw.com/pub/fltk/1.3.0/fltk-1.3.0-source.tar.gz'
|
|
homepage 'http://www.fltk.org/'
|
|
md5 '44d5d7ba06afdd36ea17da6b4b703ca3'
|
|
|
|
devel do
|
|
url 'http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-r9013.tar.bz2'
|
|
md5 '9c5eb9eb8642be56cb68e7c5b1c98611'
|
|
end
|
|
|
|
depends_on 'jpeg'
|
|
|
|
def install
|
|
ENV.libpng
|
|
system "autoconf" if ARGV.build_head?
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-threads"
|
|
system "make install"
|
|
end
|
|
end
|