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>
34 lines
1 KiB
Ruby
34 lines
1 KiB
Ruby
require 'formula'
|
|
|
|
class Guile < Formula
|
|
homepage 'http://www.gnu.org/software/guile/'
|
|
url 'http://ftpmirror.gnu.org/guile/guile-1.8.7.tar.gz'
|
|
sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'
|
|
mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
|
|
|
|
devel do
|
|
url 'http://ftpmirror.gnu.org/guile/guile-2.0.2.tar.gz'
|
|
sha1 '1943fd22417ce1e51babbdcd7681e66a794a8da3'
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'libffi'
|
|
depends_on 'libunistring'
|
|
depends_on 'bdw-gc'
|
|
depends_on 'gmp'
|
|
|
|
# GNU Readline is required; libedit won't work.
|
|
depends_on 'readline'
|
|
|
|
fails_with_llvm "Segfaults during compilation.", :build => 2336
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
|
|
system "make install"
|
|
|
|
# A really messed up workaround required on OS X --mkhl
|
|
lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }}
|
|
end
|
|
end
|