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>
26 lines
825 B
Ruby
26 lines
825 B
Ruby
require 'formula'
|
|
|
|
class Icu4c < Formula
|
|
url 'http://download.icu-project.org/files/icu4c/4.8.1.1/icu4c-4_8_1_1-src.tgz'
|
|
homepage 'http://site.icu-project.org/'
|
|
md5 'ea93970a0275be6b42f56953cd332c17'
|
|
version '4.8.1.1'
|
|
|
|
bottle do
|
|
url 'https://downloads.sf.net/project/machomebrew/Bottles/icu4c-4.8.1.1-bottle.tar.gz'
|
|
sha1 '51b6e6e735ea581a2736127414e600362846b7e1'
|
|
end
|
|
|
|
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
|
|
|
|
def install
|
|
ENV.append "LDFLAGS", "-headerpad_max_install_names"
|
|
config_flags = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"]
|
|
config_flags << "--with-library-bits=64" if MacOS.prefer_64_bit?
|
|
Dir.chdir "source" do
|
|
system "./configure", *config_flags
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|