ports/100604: [NEW PORT] textproc/uncrustify: Highly configurable source code beautifier

Dmitry Marakasov amdmi3 at mail.ru
Thu Jul 20 10:30:18 UTC 2006


>Number:         100604
>Category:       ports
>Synopsis:       [NEW PORT] textproc/uncrustify: Highly configurable source code beautifier
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 20 10:30:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu May 11 15:07:32 MSD 2006 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
The goals of this project are simple:
Create a highly configurable, easily modifiable source code beautifier.

What it does: 
* Ident code, aligning on parens, assignments, etc 
* Align on '=' and variable definitions 
* Align structure initializers 
* Align #define stuff 
* Align backslash-newline stuff 
* Reformat comments (a little bit) 
* Fix inter-character spacing 
* Add or remove parens on return statements 
* Add or remove braces on single-statement if/do/while/for statements 
* Highly configurable - 118 configurable options as of version 0.0.15 

WWW: http://uncrustify.sourceforge.net

>How-To-Repeat:
>Fix:

--- uncrustify-0.0.22.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	uncrustify
#	uncrustify/files
#	uncrustify/files/patch-src-uncrustify.cpp
#	uncrustify/Makefile
#	uncrustify/pkg-plist
#	uncrustify/pkg-descr
#	uncrustify/distinfo
#
echo c - uncrustify
mkdir -p uncrustify > /dev/null 2>&1
echo c - uncrustify/files
mkdir -p uncrustify/files > /dev/null 2>&1
echo x - uncrustify/files/patch-src-uncrustify.cpp
sed 's/^X//' >uncrustify/files/patch-src-uncrustify.cpp << 'END-of-uncrustify/files/patch-src-uncrustify.cpp'
X--- src/uncrustify.cpp.orig	Wed Jul 19 20:39:15 2006
X+++ src/uncrustify.cpp	Wed Jul 19 20:39:48 2006
X@@ -15,6 +15,7 @@
X #include "logger.h"
X #include "log_levels.h"
X 
X+#include <libgen.h>
X #include <cstdio>
X #include <cstdlib>
X #include <cstring>
END-of-uncrustify/files/patch-src-uncrustify.cpp
echo x - uncrustify/Makefile
sed 's/^X//' >uncrustify/Makefile << 'END-of-uncrustify/Makefile'
X# New ports collection makefile for:	uncrustify
X# Date created:		03 Jul 2006
X# Whom:			Dmitry Marakasov <amdmi3 at mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	uncrustify
XPORTVERSION=	0.0.22
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	amdmi3 at mail.ru
XCOMMENT=	Highly configurable source code beautifier
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
X.include <bsd.port.mk>
END-of-uncrustify/Makefile
echo x - uncrustify/pkg-plist
sed 's/^X//' >uncrustify/pkg-plist << 'END-of-uncrustify/pkg-plist'
Xbin/uncrustify
X%%DATADIR%%/ben.cfg
X%%DATADIR%%/d.cfg
X%%DATADIR%%/gnu-indent.cfg
X%%DATADIR%%/kr-indent.cfg
X%%DATADIR%%/linux-indent.cfg
X%%DATADIR%%/linux.cfg
X%%DATADIR%%/mono.cfg
X%%DATADIR%%/xsupplicant.cfg
X at dirrm %%DATADIR%%
END-of-uncrustify/pkg-plist
echo x - uncrustify/pkg-descr
sed 's/^X//' >uncrustify/pkg-descr << 'END-of-uncrustify/pkg-descr'
XThe goals of this project are simple:
XCreate a highly configurable, easily modifiable source code beautifier.
X
XWhat it does: 
X* Ident code, aligning on parens, assignments, etc 
X* Align on '=' and variable definitions 
X* Align structure initializers 
X* Align #define stuff 
X* Align backslash-newline stuff 
X* Reformat comments (a little bit) 
X* Fix inter-character spacing 
X* Add or remove parens on return statements 
X* Add or remove braces on single-statement if/do/while/for statements 
X* Highly configurable - 118 configurable options as of version 0.0.15 
X
XWWW: http://uncrustify.sourceforge.net
END-of-uncrustify/pkg-descr
echo x - uncrustify/distinfo
sed 's/^X//' >uncrustify/distinfo << 'END-of-uncrustify/distinfo'
XMD5 (uncrustify-0.0.22.tgz) = cc4f034d9c4e49a27c9496d90070172f
XSHA256 (uncrustify-0.0.22.tgz) = de0479c9e7868cd588d44f68cd167d91c8da89983509d2241684423bf8d77e22
XSIZE (uncrustify-0.0.22.tgz) = 347617
END-of-uncrustify/distinfo
exit
--- uncrustify-0.0.22.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list