From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch | 12 +++++++ dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch | 15 ++++++++ dev-tex/cpp2latex/files/cpp2latex-2.3.patch | 44 +++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch create mode 100644 dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch create mode 100644 dev-tex/cpp2latex/files/cpp2latex-2.3.patch (limited to 'dev-tex/cpp2latex/files') diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch new file mode 100644 index 000000000000..006560506676 --- /dev/null +++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-gcc43.patch @@ -0,0 +1,12 @@ +Index: cpp2latex-2.3/cpp2latex/main.cpp +=================================================================== +--- cpp2latex-2.3.orig/cpp2latex/main.cpp ++++ cpp2latex-2.3/cpp2latex/main.cpp +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch new file mode 100644 index 000000000000..621c43d28156 --- /dev/null +++ b/dev-tex/cpp2latex/files/cpp2latex-2.3-tests.patch @@ -0,0 +1,15 @@ +Index: cpp2latex-2.3/cpp2latex/getopttest.cpp +=================================================================== +--- cpp2latex-2.3.orig/cpp2latex/getopttest.cpp ++++ cpp2latex-2.3/cpp2latex/getopttest.cpp +@@ -2,7 +2,9 @@ + #include + #include + +-void main( int argc, char* argv[] ) ++using namespace std; ++ ++int main( int argc, char* argv[] ) + { + int optch=0, optc=1; + while( ( optch = getopt( argc,argv, "h:a:k" ) ) > 0 ) diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch new file mode 100644 index 000000000000..b72b870ba53b --- /dev/null +++ b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch @@ -0,0 +1,44 @@ +--- a/cpp2latex/main.cpp Thu Mar 6 08:15:36 2003 ++++ a/cpp2latex/main.cpp Tue Jan 24 21:47:17 2006 +@@ -27,12 +27,14 @@ + #include + #include + ++using namespace std; ++ + struct replace{ + std::string voraus; + std::string ersetzt; + }; + +-std::vector rules; ++std::vector rules; + std::string syntax( std::ifstream *src, char *c ); + void initReplace(); + bool satzzeichen( char c ); +@@ -162,9 +164,13 @@ + if( comment && !comment1 ) + { + file.get(c); +- if(c=='/') { out+="/}"; comment=false; } +- else { if(c=='\n') out+="\\\\"; } +- if( !( (c=='*')||(c=='/') )) out+=c; ++ if(c=='/') { ++ out+="/}"; ++ comment=false; ++ } else if (c=='\n') out+="\\\\"; ++ /* .alex. 1 line substitution*/ ++ else file.seekg(-1,ios::cur); ++ //if( !( (c=='*')||(c=='/') )) out+=c; + } + break; + +@@ -323,7 +329,7 @@ + /** initialize the replacementrules */ + void initReplace() + { +-replace dummy; ++ struct replace dummy; + dummy.voraus = "and"; dummy.ersetzt = "\\textbf{and}"; rules.push_back(dummy); + dummy.voraus = "and_eq"; dummy.ersetzt = "\\textbf{and\\underline\\ eq}"; rules.push_back(dummy); + dummy.voraus = "asm"; dummy.ersetzt = "\\textbf{asm}"; rules.push_back(dummy); -- cgit v1.2.3