diff options
| author | Jack Nagel | 2012-04-28 17:27:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-28 17:27:49 -0500 |
| commit | fb7b567b0623e53a249cc0fc3005a4cd24c29417 (patch) | |
| tree | 087ce93b6b8835ad3c0ea364fe2d1c42d8c6ca2b /Library/Formula/mcpp.rb | |
| parent | 873d3e608952ee25776648f2c80ed6debce4de03 (diff) | |
| download | homebrew-fb7b567b0623e53a249cc0fc3005a4cd24c29417.tar.bz2 | |
mcpp: move patch inline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/mcpp.rb')
| -rw-r--r-- | Library/Formula/mcpp.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Library/Formula/mcpp.rb b/Library/Formula/mcpp.rb index 2e775489c..59bf0f18a 100644 --- a/Library/Formula/mcpp.rb +++ b/Library/Formula/mcpp.rb @@ -5,13 +5,25 @@ class Mcpp < Formula homepage 'http://mcpp.sourceforge.net/' md5 '512de48c87ab023a69250edc7a0c7b05' + # stpcpy is a macro on OS X; trying to define it as an extern is invalid. + def patches; DATA; end + def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--enable-mcpplib" system "make install" end - - def patches - "https://gist.github.com/raw/668341/e50827c8d9e8452befcab64bd8800b16d1f66d0e/mcpp-fix-stpcpy.patch" - end end + +__END__ +diff -ur mcpp-2.7.2-orig/src/internal.H mcpp-2.7.2/src/internal.H +--- mcpp-2.7.2-orig/src/internal.H 2008-08-27 08:01:16.000000000 -0500 ++++ mcpp-2.7.2/src/internal.H 2010-11-08 15:53:38.000000000 -0600 +@@ -557,6 +557,6 @@ + #endif + #endif + +-#if HOST_HAVE_STPCPY ++#if HOST_HAVE_STPCPY && !defined(stpcpy) + extern char * stpcpy( char * dest, const char * src); + #endif |
