summaryrefslogtreecommitdiff
path: root/devel/astyle/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-03-15 13:32:35 +0000
committerhubertf <hubertf@pkgsrc.org>2001-03-15 13:32:35 +0000
commit006a613e63c81be2ba0d0fb22c71d15f808dc54d (patch)
treeab4f256f1f26b89c96fb498a7a82416008ee08d8 /devel/astyle/Makefile
parent6617e1518f16b602bdb4caa2c3bc805b954a595f (diff)
downloadpkgsrc-006a613e63c81be2ba0d0fb22c71d15f808dc54d.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/Makefile')
-rw-r--r--devel/astyle/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile
new file mode 100644
index 00000000000..2910bc54855
--- /dev/null
+++ b/devel/astyle/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/15 13:32:35 hubertf Exp $
+#
+
+DISTNAME= astyle_1.13.6.1
+PKGNAME= astyle-1.13.6.1
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://astyle.sourceforge.net/
+COMMENT= reindenter and reformatter of C++, C and Java source code
+
+HTMLDIR= ${PREFIX}/share/doc/html/astyle
+
+post-extract:
+ ${MV} -f ${WRKSRC}/makefile ${WRKSRC}/Makefile
+
+post-install:
+ ${INSTALL_DATA_DIR} ${HTMLDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} astyle.html astyle_release_notes.html\
+ license.html ${HTMLDIR}
+
+.include "../../mk/bsd.pkg.mk"