diff options
| author | Steven Hahn | 2014-09-22 10:37:04 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-24 11:05:42 -0700 |
| commit | 1d9b84e2bda4b7c88081e869362eae6b9dcf5b02 (patch) | |
| tree | 787f529a1f7c60439c5af6a42814e27320dd1ef7 /Library | |
| parent | 85b6bad7c8d655a95a6fa0cb727cddf9b12f2ccf (diff) | |
| download | homebrew-1d9b84e2bda4b7c88081e869362eae6b9dcf5b02.tar.bz2 | |
muparser: add upstream patch.
Added patch to correct thousands separator behavior when built against
libc++ and changed the url to sourceforge because too google drive was
giving an error message about too many downloads.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/muparser.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/muparser.rb b/Library/Formula/muparser.rb index 12147f763..1633fd2f6 100644 --- a/Library/Formula/muparser.rb +++ b/Library/Formula/muparser.rb @@ -2,9 +2,8 @@ require 'formula' class Muparser < Formula homepage 'http://muparser.beltoforion.de/' - url 'https://docs.google.com/uc?export=download&confirm=no_antivirus&id=0BzuB-ydOOoduZjlFOEFRREZrT2s' + url 'https://downloads.sourceforge.net/project/muparser/muparser/Version%202.2.3/muparser_v2_2_3.zip' sha1 '3974898052dd9ef350df1860f8292755f78f59df' - version '2.2.3' bottle do cellar :any @@ -14,6 +13,11 @@ class Muparser < Formula end def install + # patch to correct thousands separator behavior when built against libc++. + # https://groups.google.com/d/topic/muparser-dev/l8pbPFnR46s/discussion + # https://code.google.com/p/muparser/source/detail?r=18 + inreplace 'include/muParserBase.h', 'std::string(1, m_nGroup)', 'std::string(1, (char)(m_cThousandsSep > 0 ? m_nGroup : CHAR_MAX))' + inreplace 'include/muParserInt.h', 'std::string(1, m_nGroup)', 'std::string(1, (char)(m_cThousandsSep > 0 ? m_nGroup : CHAR_MAX))' system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" |
