newsbeuter 2.8 for mavericks
Closes Homebrew/homebrew#26494. Closes Homebrew/homebrew#23715. Closes Homebrew/homebrew#25115. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
b85a52e733
commit
88aec02aac
1 changed files with 36 additions and 0 deletions
|
@ -14,6 +14,42 @@ class Newsbeuter < Formula
|
|||
depends_on 'sqlite'
|
||||
|
||||
def install
|
||||
if MacOS.version > :mountain_lion and ENV.compiler == :clang
|
||||
# see https://github.com/akrennmair/newsbeuter/issues/108
|
||||
inreplace [
|
||||
'include/regexmanager.h',
|
||||
'include/rss.h',
|
||||
'rss/rsspp_internal.h'], '<tr1/', '<'
|
||||
|
||||
inreplace [
|
||||
'include/cache.h',
|
||||
'include/controller.h',
|
||||
'include/feedlist_formaction.h',
|
||||
'include/formaction.h',
|
||||
'include/itemlist_formaction.h',
|
||||
'include/itemview_formaction.h',
|
||||
'include/regexmanager.h',
|
||||
'include/rss.h',
|
||||
'include/rss_parser.h',
|
||||
'include/view.h',
|
||||
'rss/rsspp_internal.h',
|
||||
'rss/parser.cpp',
|
||||
'rss/parser_factory.cpp',
|
||||
'src/cache.cpp',
|
||||
'src/controller.cpp',
|
||||
'src/feedlist_formaction.cpp',
|
||||
'src/formaction.cpp',
|
||||
'src/itemlist_formaction.cpp',
|
||||
'src/itemview_formaction.cpp',
|
||||
'src/regexmanager.cpp',
|
||||
'src/rss.cpp',
|
||||
'src/rss_parser.cpp',
|
||||
'src/view.cpp',
|
||||
'test/test.cpp'], 'tr1::', ''
|
||||
|
||||
ENV.append 'CXXFLAGS', '--std=c++11'
|
||||
end
|
||||
|
||||
system "make"
|
||||
system "make", "install", "prefix=#{prefix}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue