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>
24 lines
689 B
Ruby
24 lines
689 B
Ruby
require 'formula'
|
|
|
|
class Libmusicbrainz < Formula
|
|
homepage 'http://musicbrainz.org'
|
|
url 'http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-3.0.3.tar.gz'
|
|
md5 'f4824d0a75bdeeef1e45cc88de7bb58a'
|
|
|
|
devel do
|
|
url 'ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-4.0.0beta1.tar.gz'
|
|
md5 '7dffa8fa08e4c0bc8119b8f48a15da41'
|
|
version '4.0.0beta1'
|
|
end
|
|
|
|
depends_on 'neon'
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
neon = Formula.factory("neon")
|
|
neon_args = "-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib -DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon"
|
|
|
|
system "cmake . #{std_cmake_parameters} #{neon_args}"
|
|
system "make install"
|
|
end
|
|
end
|