From buchanon@mlss15.cl.msu.edu  Wed Nov  7 12:03:14 2001
Return-Path: <buchanon@mlss15.cl.msu.edu>
Received: from manetheren.cl.msu.edu (mlss15.cl.msu.edu [35.9.4.115])
	by hub.freebsd.org (Postfix) with ESMTP id 0D61F37B419
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 Nov 2001 12:03:14 -0800 (PST)
Received: from manetheren.cl.msu.edu (localhost.cl.msu.edu [127.0.0.1])
	by manetheren.cl.msu.edu (8.12.1/8.11.4) with ESMTP id fA7K3EBe070949
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Nov 2001 15:03:14 -0500 (EST)
	(envelope-from buchanon@mlss15.cl.msu.edu)
Received: (from buchanon@localhost)
	by manetheren.cl.msu.edu (8.12.1/8.12.1/Submit) id fA7K3Eo1070948;
	Wed, 7 Nov 2001 15:03:14 -0500 (EST)?g
	(envelope-from buchanon)
Message-Id: <200111072003.fA7K3Eo1070948@manetheren.cl.msu.edu>
Date: Wed, 7 Nov 2001 15:03:14 -0500 (EST)
From: Mike Buchanon <buchanon@mlss15.cl.msu.edu>
Reply-To: Mike Buchanon <buchanon@mlss15.cl.msu.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New Port: bcpp, an ident for c++
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31831
>Category:       ports
>Synopsis:       New Port: bcpp, an ident for c++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 12:10:00 PST 2001
>Closed-Date:    Sat Nov 17 19:33:52 PST 2001
>Last-Modified:  Sat Nov 17 19:34:01 PST 2001
>Originator:     Mike Buchanon
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD manetheren.cl.msu.edu 4.4-STABLE FreeBSD 4.4-STABLE #14: Mon Oct 8 11:05:55 EDT 2001 root@manetheren.cl.msu.edu:/usr/obj/usr/src/sys/MANETHEREN i386


>Description:
	New port: bcpp, a util to ident c++.  Similar to indent for c.
>How-To-Repeat:
	
>Fix:

# 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:
#
#	bcpp
#	bcpp/Makefile
#	bcpp/files
#	bcpp/files/patch-bcpp.cpp
#	bcpp/pkg-plist
#	bcpp/distinfo
#	bcpp/pkg-comment
#	bcpp/pkg-descr
#	bcpp/pkg-message
#
echo c - bcpp
mkdir -p bcpp > /dev/null 2>&1
echo x - bcpp/Makefile
sed 's/^X//' >bcpp/Makefile << 'END-of-bcpp/Makefile'
X# New ports collection makefile for:	bcpp
X# Date created:			07 November 2001
X# Whom:				Mike Buchanon <buchanon@msu.edu>
X#
X# $FreeBSD: ports/devel/bcpp/Makefile,v 1.1 2001/11/07 14:20:35 buchanon Exp $
X#
X
XPORTNAME=	bcpp
XPORTVERSION=	1.8
XCATEGORIES=	devel
XMASTER_SITES=	ftp://invisible-island.net/bcpp/
XDISTNAME=	bcpp-990810
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	buchanon@msu.edu
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/code
XMAKEFILE=	makefile
XALL_TARGET=	${PORTNAME}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \
X		${PREFIX}/etc/${PORTNAME}.cfg.sample
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
X	${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt \
X		${PREFIX}/share/doc/${PORTNAME}/
X	${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt \
X		${PREFIX}/share/doc/${PORTNAME}/
X.endif
X
Xpost-install:
X	@${ECHO} "************************************************************"
X	@${CAT} pkg-message
X	@${ECHO} "************************************************************"
X
X.include <bsd.port.mk>
END-of-bcpp/Makefile
echo c - bcpp/files
mkdir -p bcpp/files > /dev/null 2>&1
echo x - bcpp/files/patch-bcpp.cpp
sed 's/^X//' >bcpp/files/patch-bcpp.cpp << 'END-of-bcpp/files/patch-bcpp.cpp'
X--- bcpp.cpp.orig	Tue Aug 10 20:54:52 1999
X+++ bcpp.cpp	Wed Nov  7 10:48:27 2001
X@@ -2721,6 +2721,7 @@
X     char* pSPath      = getenv ("PATH");
X     char* pEPath      = NULL;
X     char* pNameMem    = NULL;
X+    char* tmpCfgName  = new char[ 16 + strlen(pCfgName) + 1];
X     char  sepChar     = NULLC;
X     const char* pathSepChar;
X     char  backUp;
X@@ -2729,6 +2730,13 @@
X     // test to see if file is in current directory first !
X     if ((pCfgFile = fopen(pCfgName, "r")) != NULL)
X         return;
X+
X+    // look to see if it's in /usr/local/etc
X+    tmpCfgName = strcat( tmpCfgName, "/usr/local/etc/" );
X+    tmpCfgName = strcat( tmpCfgName, pCfgName );
X+    if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL)
X+	    return;
X+
X 
X     // environment variable not found, lord knows what it is !
X     if (pSPath == NULL)
END-of-bcpp/files/patch-bcpp.cpp
echo x - bcpp/pkg-plist
sed 's/^X//' >bcpp/pkg-plist << 'END-of-bcpp/pkg-plist'
Xbin/bcpp
Xetc/bcpp.cfg.sample
X%%PORTDOCS%%share/doc/bcpp/hirachy.txt
X%%PORTDOCS%%share/doc/bcpp/manual.txt
X%%PORTDOCS%%@dirrm share/doc/bcpp
END-of-bcpp/pkg-plist
echo x - bcpp/distinfo
sed 's/^X//' >bcpp/distinfo << 'END-of-bcpp/distinfo'
XMD5 (bcpp-990810.tgz) = d7493e22040a66e693342f9422d34086
END-of-bcpp/distinfo
echo x - bcpp/pkg-comment
sed 's/^X//' >bcpp/pkg-comment << 'END-of-bcpp/pkg-comment'
XSimple utility to indent C++ code
END-of-bcpp/pkg-comment
echo x - bcpp/pkg-descr
sed 's/^X//' >bcpp/pkg-descr << 'END-of-bcpp/pkg-descr'
XA utility to similar to indent for C++ code
X
XWWW: http://invisible-island.net/bcpp/bcpp.html
END-of-bcpp/pkg-descr
echo x - bcpp/pkg-message
sed 's/^X//' >bcpp/pkg-message << 'END-of-bcpp/pkg-message'
XYou should modify /usr/local/etc/bcpp.cfg to your liking and 
Xcopy it to /usr/local/etc/bcpp.cfg
END-of-bcpp/pkg-message
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Sat Nov 17 19:33:52 PST 2001 
State-Changed-Why:  
committed, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31831 
>Unformatted:
