homebrew-core/Formula/fox.rb
Misty De Meo 2f03f781da 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 Homebrew/homebrew#9735.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-25 21:45:19 -06:00

29 lines
863 B
Ruby

require 'formula'
class Fox < Formula
# Development and stable branches are incompatible
url 'ftp://ftp.fox-toolkit.org/pub/fox-1.6.44.tar.gz'
md5 '6ccc8cbcfa6e4c8b6e4deeeb39c36434'
homepage 'http://www.fox-toolkit.org/'
devel do
url 'http://ftp.fox-toolkit.org/pub/fox-1.7.30.tar.gz'
md5 '345df53f1e652bc99d1348444b4e3016'
end
fails_with_llvm "Inline asm errors during build" if ARGV.build_devel?
def install
ENV.x11
# Yep, won't find freetype unless this is all set.
ENV.append "CFLAGS", "-I/usr/X11/include/freetype2"
ENV.append "CPPFLAGS", "-I/usr/X11/include/freetype2"
ENV.append "CXXFLAGS", "-I/usr/X11/include/freetype2"
system "./configure", "--enable-release",
"--prefix=#{prefix}",
"--with-x", "--with-opengl"
system "make install"
end
end