b66f5ad161
`needs` allows formulae to specify dependencies on cross-compiler dependencies, allowing multiple failures to be specified in a single statement. For instance, `needs :cxx11` adds seven compiler failures. Closes Homebrew/homebrew#22912.
25 lines
593 B
Ruby
25 lines
593 B
Ruby
require 'formula'
|
|
|
|
class Sdcv < Formula
|
|
homepage 'http://sdcv.sourceforge.net/'
|
|
url 'https://svn.code.sf.net/p/sdcv/code/trunk',
|
|
:using => UnsafeSubversionDownloadStrategy, :revision => '76'
|
|
version '0.5-2013-09-10'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'cmake' => :build
|
|
depends_on 'gettext'
|
|
depends_on 'glib'
|
|
depends_on 'readline'
|
|
|
|
# see: https://github.com/Homebrew/homebrew/issues/26321
|
|
needs :cxx11
|
|
|
|
def install
|
|
mkdir 'build' do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make", "lang"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
end
|