2012-12-08 12:04:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sdcv < Formula
|
|
|
|
homepage 'http://sdcv.sourceforge.net/'
|
2013-10-05 04:56:10 +00:00
|
|
|
url 'https://svn.code.sf.net/p/sdcv/code/trunk',
|
2013-11-10 05:34:30 +00:00
|
|
|
:using => UnsafeSubversionDownloadStrategy, :revision => '76'
|
|
|
|
version '0.5-2013-09-10'
|
2012-12-08 12:04:13 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-11-10 05:34:30 +00:00
|
|
|
depends_on 'cmake' => :build
|
2012-12-08 12:04:13 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'readline'
|
|
|
|
|
2014-02-01 06:14:10 +00:00
|
|
|
# see: https://github.com/Homebrew/homebrew/issues/26321
|
|
|
|
fails_with :clang do
|
|
|
|
build 425
|
|
|
|
cause "clang 425 does not provide complete enough C++11 features"
|
|
|
|
end
|
|
|
|
|
|
|
|
fails_with :gcc
|
|
|
|
fails_with :llvm
|
|
|
|
fails_with :gcc_4_0
|
|
|
|
|
2012-12-08 12:04:13 +00:00
|
|
|
def install
|
2013-11-10 05:34:30 +00:00
|
|
|
mkdir 'build' do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make", "lang"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2012-12-08 12:04:13 +00:00
|
|
|
end
|
|
|
|
end
|