summaryrefslogtreecommitdiff
path: root/devel/astyle/pkg
diff options
context:
space:
mode:
authorhubertf <hubertf>2001-03-15 13:32:35 +0000
committerhubertf <hubertf>2001-03-15 13:32:35 +0000
commit5606fd76595606577efe418e5c54dc5e7ecb860c (patch)
treeab4f256f1f26b89c96fb498a7a82416008ee08d8 /devel/astyle/pkg
parentd0beca0fbdfd6b47f5aa8460bbe48d015105d7ec (diff)
downloadpkgsrc-5606fd76595606577efe418e5c54dc5e7ecb860c.tar.gz
Add astyle-1.13.6.1: reindenter and reformatter of 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. Moreover, some editors by default insert spaces instead of tabs when pressing the tab key, and other editors (Emacs for example) have the ability to "pretty up" lines by automatically setting up the white space before the code on the line, possibly inserting spaces in a code that up to now used only tabs for indentation. Since the NUMBER of space characters showed on screen for each tab character in the source code changes between editors (until the user sets up the number to his liking...), 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. Even if you as a programmer take care to ONLY use spaces or tabs, looking at other peoples source code can still be problematic. To address this problem I have created Artistic Style - a series of filters, written in C++, that automatically reindent & reformat C/C++/Java source files. These can be used from a command line, or it can be incorporated as classes in another C++ program. Submitted in PR 12402 by Thomas Runge <runge@rostock.zgdv.de>
Diffstat (limited to 'devel/astyle/pkg')
-rw-r--r--devel/astyle/pkg/DESCR22
-rw-r--r--devel/astyle/pkg/PLIST6
2 files changed, 28 insertions, 0 deletions
diff --git a/devel/astyle/pkg/DESCR b/devel/astyle/pkg/DESCR
new file mode 100644
index 00000000000..ad4bb342019
--- /dev/null
+++ b/devel/astyle/pkg/DESCR
@@ -0,0 +1,22 @@
+When indenting source code, we as programmers have a tendency to
+use both spaces and tab characters to create the wanted indentation.
+Moreover, some editors by default insert spaces instead of tabs
+when pressing the tab key, and other editors (Emacs for example)
+have the ability to "pretty up" lines by automatically setting up
+the white space before the code on the line, possibly inserting
+spaces in a code that up to now used only tabs for indentation.
+
+Since the NUMBER of space characters showed on screen for each tab
+character in the source code changes between editors (until the
+user sets up the number to his liking...), 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. Even if you as a programmer take
+care to ONLY use spaces or tabs, looking at other peoples source
+code can still be problematic.
+
+To address this problem I have created Artistic Style - a series
+of filters, written in C++, that automatically reindent & reformat
+C/C++/Java source files. These can be used from a command line, or
+it can be incorporated as classes in another C++ program.
diff --git a/devel/astyle/pkg/PLIST b/devel/astyle/pkg/PLIST
new file mode 100644
index 00000000000..f6c68c0e938
--- /dev/null
+++ b/devel/astyle/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/15 13:32:35 hubertf Exp $
+bin/astyle
+share/doc/html/astyle/astyle.html
+share/doc/html/astyle/astyle_release_notes.html
+share/doc/html/astyle/license.html
+@dirrm share/doc/html/astyle