initial import of astyle-1.13.6.1

--
Artistic Style is a 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.
This commit is contained in:
avsm 2001-03-24 02:25:05 +00:00
parent e1b305a16e
commit 8c0e622735
5 changed files with 81 additions and 0 deletions

31
devel/astyle/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/03/24 02:25:05 avsm Exp $
COMMENT= indenter and formatter of C/C++/Java source files
DISTNAME= astyle_1.13.6.1
PKGNAME= astyle-1.13.6.1
CATEGORIES= devel
NEED_VERSION= 1.363
HOMEPAGE= http://astyle.sourceforge.net/
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= astyle
EXTRACT_SUFX= .zip
USE_GMAKE= Yes
ALL_TARGET= astyle
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/astyle ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/astyle
.for i in astyle astyle_release_notes license
${INSTALL_DATA} ${WRKSRC}/$i.html ${PREFIX}/share/doc/astyle
.endfor
.include <bsd.port.mk>

3
devel/astyle/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (astyle_1.13.6.1.zip) = debeaab2f55879e0c24aaa4490d59184
RMD160 (astyle_1.13.6.1.zip) = 74030324515be84e0e7499edc2503d0e549673ba
SHA1 (astyle_1.13.6.1.zip) = 4e0172fe30986d68c61b4a7c1638a1fc42ea0675

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/03/24 02:25:06 avsm Exp $
--- Makefile.orig Fri Feb 11 12:02:10 2000
+++ Makefile Sat Mar 24 02:08:48 2001
@@ -1,13 +1,12 @@
# "Artistic Style" Makefile
-CPPFLAGS = -Wall -Wno-sign-compare -O2
OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o
astyle: $(OBJS)
- g++ $(CPPFLAGS) -o astyle $(OBJS)
+ ${CXX} $(CFLAGS) -o astyle $(OBJS)
.cpp.o:
- g++ $(CPPFLAGS) -c $<
+ ${CXX} $(CFLAGS) -c $<
.SUFFIXES: .cpp .c .o
clean:

22
devel/astyle/pkg/DESCR Normal file
View File

@ -0,0 +1,22 @@
Artistic Style is a 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.
WWW: ${HOMEPAGE}

6
devel/astyle/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/24 02:25:05 avsm Exp $
bin/astyle
share/doc/astyle/astyle.html
share/doc/astyle/astyle_release_notes.html
share/doc/astyle/license.html
@dirrm share/doc/astyle