diff options
| author | Hellbunny | 2012-12-08 20:04:13 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-14 20:05:10 -0800 |
| commit | 3eb5b50d747564cb607ab036267b1009f390f5a2 (patch) | |
| tree | 130014b3d1ea50185660fa9783a80602fef0dca3 /Library/Formula | |
| parent | 19c2e5ae8fa375982f3373a520529c74607065a8 (diff) | |
| download | homebrew-3eb5b50d747564cb607ab036267b1009f390f5a2.tar.bz2 | |
sdcv 0.4.3
Closes #16481.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdcv.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/sdcv.rb b/Library/Formula/sdcv.rb new file mode 100644 index 000000000..ed47a9b0a --- /dev/null +++ b/Library/Formula/sdcv.rb @@ -0,0 +1,40 @@ +require 'formula' + +class Sdcv < Formula + homepage 'http://sdcv.sourceforge.net/' + # MacPorts uses this revision and version number + url 'https://sdcv.svn.sourceforge.net/svnroot/sdcv/trunk', :revision => '38' + version '0.4.3' + + # Always needs a newer autotools, even on Snow Leopard. + depends_on 'automake' => :build + depends_on 'autoconf' => :build + depends_on 'pkg-config' => :build + depends_on 'gettext' + depends_on 'glib' + depends_on 'readline' + + fails_with :clang do + build 421 + 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" + end +end |
