aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sdcv.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-09 23:34:30 -0600
committerJack Nagel2013-11-09 23:34:30 -0600
commited0eaf0b318aa561cb5fd92f044eba7b14101fc5 (patch)
tree60e41a20e7008615df871be1e8ea8cca143bc330 /Library/Formula/sdcv.rb
parent254b82b32c448fde24875da7ba7472efc165aaf3 (diff)
downloadhomebrew-ed0eaf0b318aa561cb5fd92f044eba7b14101fc5.tar.bz2
sdcv: use newer svn revision to fix clang issues
Diffstat (limited to 'Library/Formula/sdcv.rb')
-rw-r--r--Library/Formula/sdcv.rb34
1 files changed, 8 insertions, 26 deletions
diff --git a/Library/Formula/sdcv.rb b/Library/Formula/sdcv.rb
index 8e81e199b..5696bf6c4 100644
--- a/Library/Formula/sdcv.rb
+++ b/Library/Formula/sdcv.rb
@@ -2,39 +2,21 @@ require 'formula'
class Sdcv < Formula
homepage 'http://sdcv.sourceforge.net/'
- # MacPorts uses this revision and version number
url 'https://svn.code.sf.net/p/sdcv/code/trunk',
- :using => UnsafeSubversionDownloadStrategy, :revision => '38'
- version '0.4.3'
+ :using => UnsafeSubversionDownloadStrategy, :revision => '76'
+ version '0.5-2013-09-10'
- # Always needs a newer autotools, even on Snow Leopard.
- depends_on 'automake' => :build
- depends_on 'autoconf' => :build
depends_on 'pkg-config' => :build
+ depends_on 'cmake' => :build
depends_on 'gettext'
depends_on 'glib'
depends_on 'readline'
- fails_with :clang do
- cause <<-EOS.undent
- In C++, clang supports variable length arrays in very limited
- circumstances, the element type of a variable length array must
- be a POD ("plain old data") type.
- More detail here: http://clang.llvm.org/compatibility.html
- EOS
- end
-
- def patches
- { :p0 =>
- "https://trac.macports.org/export/100327/trunk/dports/textproc/sdcv/files/patch-setlocale.diff"
- }
- end
-
def install
- # Compatibility with Automake 1.13+
- inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
- system "autoreconf -vfi"
- system "./configure", "--prefix=#{prefix}"
- system "make install"
+ mkdir 'build' do
+ system "cmake", "..", *std_cmake_args
+ system "make", "lang"
+ system "make", "install"
+ end
end
end