astyle stable port information

Package: astyle
Version: 1.15.3
Revision: 3
Architecture: powerpc
Distribution: 10.4
Source: mirror:sourceforge:%n/%n_%v.zip
Source-MD5: 4d8adbcd8703aea00fcd2670be090ddd
SourceDirectory: .
BuildDepends: gcc3.3
GCC: 3.3
SetCC: gcc-3.3
SetCXX: g++-3.3
Patch: %n.patch
PatchScript: <<
perl -pi -e 's|g\+\+|\$(CXX)|' Makefile
<<
CompileScript: <<
make
strip %n
<<
InstallScript: <<
mkdir -p %i/bin
cp astyle %i/bin/%n
<<
DocFiles: astyle.html astyle_release_notes.html license.html INSTALL.TXT
Description: Beautifier/Reformatter of C, C++, C# & Java
DescPackaging: <<
This version is compiled with g++-3.3, even in the 10.4 tree. If it is
ever updated to a more recent compiler, any packages which depend on
this one must be updated at the same time.
<<
DescDetail: <<
Artistic Style is a reindenter and reformatter of C, C++, C# and
Java source code.
When indenting source code, we as programmers have a tendency to use
both spaces and tab characters to create the wanted indentation.
Since the NUMBER of space characters showed on screen for each tab
character in the source code changes between editors, one of the
standard problems facing programmers when moving from one source code
editor to another is that code containing both spaces and tabs that was
up to now perfectly indented, suddently becomes a mess to look at when
changing to another editor.
To address this problem Tal Davidson has created Artistic Style - a
series of filters, written in C++, that automatically reindent &
reformat C/C++/C#/Java source files. These can be used from a command
line, or it can be incorporated as classes in another C++ program.
<<
DescUsage: <<
Read the options in %p/share/doc/astyle.html or astyle --help. Then
set your preferred astyle flags in .astylerc or the
ARTISTIC_STYLE_OPTIONS environment variable.

If you want to use the class in your own apps, extract the astyle source
from the %p/src dir.
<<
License: GPL
Maintainer: Ben Hines
Homepage: http://sourceforge.net/projects/astyle

astyle stable port .patch

diff -Nurd -x'*~' astyle.orig/astyle_main.cpp astyle/astyle_main.cpp
--- astyle.orig/astyle_main.cpp 2002-03-07 08:22:30.000000000 -0500
+++ astyle/astyle_main.cpp 2006-01-17 23:24:36.000000000 -0500
@@ -151,47 +151,6 @@



-template
-bool parseOptions(ASFormatter &formatter,
- const ITER &optionsBegin,
- const ITER &optionsEnd,
- const string &errorInfo)
-{
- ITER option;
- bool ok = true;
- string arg, subArg;
-
- for (option = optionsBegin; option != optionsEnd; ++option)
- {
- arg = *option; //string(*option);
-
- if (arg.COMPARE(0, 2, string("--")) == 0)
- ok &= parseOption(formatter, arg.substr(2), errorInfo);
- else if (arg[0] == '-')
- {
- int i;
-
- for (i=1; i < arg.length(); ++i)
- {
- if (isalpha(arg[i]) && i > 1)
- {
- ok &= parseOption(formatter, subArg, errorInfo);
- subArg = "";
- }
- subArg.append(1, arg[i]);
- }
- ok &= parseOption(formatter, subArg, errorInfo);
- subArg = "";
- }
- else
- {
- ok &= parseOption(formatter, arg, errorInfo);
- subArg = "";
- }
- }
-
- return ok;
-}

void manuallySetJavaStyle(ASFormatter &formatter)
{
@@ -425,6 +384,47 @@
return true; //o.k.
}

+template
+bool parseOptions(ASFormatter &formatter,
+ const ITER &optionsBegin,
+ const ITER &optionsEnd,
+ const string &errorInfo)
+{
+ ITER option;
+ bool ok = true;
+ string arg, subArg;
+
+ for (option = optionsBegin; option != optionsEnd; ++option)
+ {
+ arg = *option; //string(*option);
+
+ if (arg.COMPARE(0, 2, string("--")) == 0)
+ ok &= parseOption(formatter, arg.substr(2), errorInfo);
+ else if (arg[0] == '-')
+ {
+ int i;
+
+ for (i=1; i < arg.length(); ++i)
+ {
+ if (isalpha(arg[i]) && i > 1)
+ {
+ ok &= parseOption(formatter, subArg, errorInfo);
+ subArg = "";
+ }
+ subArg.append(1, arg[i]);
+ }
+ ok &= parseOption(formatter, subArg, errorInfo);
+ subArg = "";
+ }
+ else
+ {
+ ok &= parseOption(formatter, arg, errorInfo);
+ subArg = "";
+ }
+ }
+
+ return ok;
+}


void importOptions(istream &in, vector &optionsVector)

astyle _unstable_ port information

Package: astyle
Version: 1.15.3
Revision: 3
Architecture: powerpc
Distribution: 10.4
Source: mirror:sourceforge:%n/%n_%v.zip
Source-MD5: 4d8adbcd8703aea00fcd2670be090ddd
SourceDirectory: .
BuildDepends: gcc3.3
GCC: 3.3
SetCC: gcc-3.3
SetCXX: g++-3.3
Patch: %n.patch
PatchScript: <<
perl -pi -e 's|g\+\+|\$(CXX)|' Makefile
<<
CompileScript: <<
make
strip %n
<<
InstallScript: <<
mkdir -p %i/bin
cp astyle %i/bin/%n
<<
DocFiles: astyle.html astyle_release_notes.html license.html INSTALL.TXT
Description: Beautifier/Reformatter of C, C++, C# & Java
DescPackaging: <<
This version is compiled with g++-3.3, even in the 10.4 tree. If it is
ever updated to a more recent compiler, any packages which depend on
this one must be updated at the same time.
<<
DescDetail: <<
Artistic Style is a reindenter and reformatter of C, C++, C# and
Java source code.
When indenting source code, we as programmers have a tendency to use
both spaces and tab characters to create the wanted indentation.
Since the NUMBER of space characters showed on screen for each tab
character in the source code changes between editors, one of the
standard problems facing programmers when moving from one source code
editor to another is that code containing both spaces and tabs that was
up to now perfectly indented, suddently becomes a mess to look at when
changing to another editor.
To address this problem Tal Davidson has created Artistic Style - a
series of filters, written in C++, that automatically reindent &
reformat C/C++/C#/Java source files. These can be used from a command
line, or it can be incorporated as classes in another C++ program.
<<
DescUsage: <<
Read the options in %p/share/doc/astyle.html or astyle --help. Then
set your preferred astyle flags in .astylerc or the
ARTISTIC_STYLE_OPTIONS environment variable.

If you want to use the class in your own apps, extract the astyle source
from the %p/src dir.
<<
License: GPL
Maintainer: Ben Hines
Homepage: http://sourceforge.net/projects/astyle

astyle _unstable_ port .patch

diff -Nurd -x'*~' astyle.orig/astyle_main.cpp astyle/astyle_main.cpp
--- astyle.orig/astyle_main.cpp 2002-03-07 08:22:30.000000000 -0500
+++ astyle/astyle_main.cpp 2006-01-17 23:24:36.000000000 -0500
@@ -151,47 +151,6 @@



-template
-bool parseOptions(ASFormatter &formatter,
- const ITER &optionsBegin,
- const ITER &optionsEnd,
- const string &errorInfo)
-{
- ITER option;
- bool ok = true;
- string arg, subArg;
-
- for (option = optionsBegin; option != optionsEnd; ++option)
- {
- arg = *option; //string(*option);
-
- if (arg.COMPARE(0, 2, string("--")) == 0)
- ok &= parseOption(formatter, arg.substr(2), errorInfo);
- else if (arg[0] == '-')
- {
- int i;
-
- for (i=1; i < arg.length(); ++i)
- {
- if (isalpha(arg[i]) && i > 1)
- {
- ok &= parseOption(formatter, subArg, errorInfo);
- subArg = "";
- }
- subArg.append(1, arg[i]);
- }
- ok &= parseOption(formatter, subArg, errorInfo);
- subArg = "";
- }
- else
- {
- ok &= parseOption(formatter, arg, errorInfo);
- subArg = "";
- }
- }
-
- return ok;
-}

void manuallySetJavaStyle(ASFormatter &formatter)
{
@@ -425,6 +384,47 @@
return true; //o.k.
}

+template
+bool parseOptions(ASFormatter &formatter,
+ const ITER &optionsBegin,
+ const ITER &optionsEnd,
+ const string &errorInfo)
+{
+ ITER option;
+ bool ok = true;
+ string arg, subArg;
+
+ for (option = optionsBegin; option != optionsEnd; ++option)
+ {
+ arg = *option; //string(*option);
+
+ if (arg.COMPARE(0, 2, string("--")) == 0)
+ ok &= parseOption(formatter, arg.substr(2), errorInfo);
+ else if (arg[0] == '-')
+ {
+ int i;
+
+ for (i=1; i < arg.length(); ++i)
+ {
+ if (isalpha(arg[i]) && i > 1)
+ {
+ ok &= parseOption(formatter, subArg, errorInfo);
+ subArg = "";
+ }
+ subArg.append(1, arg[i]);
+ }
+ ok &= parseOption(formatter, subArg, errorInfo);
+ subArg = "";
+ }
+ else
+ {
+ ok &= parseOption(formatter, arg, errorInfo);
+ subArg = "";
+ }
+ }
+
+ return ok;
+}


void importOptions(istream &in, vector &optionsVector)