2012-10-31 12:16:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.14 2012/10/31 11:16:38 asau Exp $
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= astyle_1.13.6.1
|
|
|
|
PKGNAME= astyle-1.13.6.1
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2001-03-15 14:38:58 +01:00
|
|
|
CATEGORIES= textproc devel
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
HOMEPAGE= http://astyle.sourceforge.net/
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Reindenter and reformatter of C++, C and Java source code
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
|
|
|
|
HTMLDIR= ${PREFIX}/share/doc/html/astyle
|
2007-11-28 20:06:00 +01:00
|
|
|
INSTALLATION_DIRS= bin ${HTMLDIR}
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
|
2006-06-06 23:38:34 +02:00
|
|
|
USE_LANGUAGES= c++
|
|
|
|
|
2004-02-18 14:33:40 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
2003-11-05 16:27:41 +01:00
|
|
|
|
|
|
|
.if !empty(CC_VERSION:Mgcc-2*)
|
|
|
|
CFLAGS+= -DASTYLE_GCC2
|
|
|
|
.endif
|
|
|
|
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
post-install:
|
2004-06-12 04:28:46 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} astyle.html \
|
2007-11-28 20:06:00 +01:00
|
|
|
astyle_release_notes.html license.html ${DESTDIR}${HTMLDIR}
|
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>
2001-03-15 14:32:35 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|