Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 15:03:14 -0500 (EST)
From:      Mike Buchanon <buchanon@mlss15.cl.msu.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31831: New Port: bcpp, an ident for c++
Message-ID:  <200111072003.fA7K3Eo1070948@manetheren.cl.msu.edu>

next in thread | raw e-mail | index | archive | help

>Number:         31831
>Category:       ports
>Synopsis:       New Port: bcpp, an ident for c++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 12:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111072003.fA7K3Eo1070948>