diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-18 03:33:45 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-18 03:33:45 +0000 |
commit | 5f6d9f9eb4df2fef8ee1bafb31ccbb792b81197a (patch) | |
tree | bf6cf613159beeb8941904361b72e17f98007535 /devel/bcpp | |
parent | add p5-Class-Delegation (diff) |
add bcpp
Simple utility to indent C++ code
PR: 31831
Submitted by: Mike Buchanon <buchanon@mlss15.cl.msu.edu>
Diffstat (limited to 'devel/bcpp')
-rw-r--r-- | devel/bcpp/Makefile | 36 | ||||
-rw-r--r-- | devel/bcpp/distinfo | 1 | ||||
-rw-r--r-- | devel/bcpp/files/patch-bcpp.cpp | 24 | ||||
-rw-r--r-- | devel/bcpp/pkg-comment | 1 | ||||
-rw-r--r-- | devel/bcpp/pkg-descr | 3 | ||||
-rw-r--r-- | devel/bcpp/pkg-message | 2 | ||||
-rw-r--r-- | devel/bcpp/pkg-plist | 5 |
7 files changed, 72 insertions, 0 deletions
diff --git a/devel/bcpp/Makefile b/devel/bcpp/Makefile new file mode 100644 index 000000000000..adc5aeee5947 --- /dev/null +++ b/devel/bcpp/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: bcpp +# Date created: 07 November 2001 +# Whom: Mike Buchanon <buchanon@msu.edu> +# +# $FreeBSD$ +# + +PORTNAME= bcpp +PORTVERSION= 1.8 +CATEGORIES= devel +MASTER_SITES= ftp://invisible-island.net/bcpp/ +DISTNAME= bcpp-990810 +EXTRACT_SUFX= .tgz + +MAINTAINER= buchanon@msu.edu + +WRKSRC= ${WRKDIR}/${DISTNAME}/code +MAKEFILE= makefile +ALL_TARGET= ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \ + ${PREFIX}/etc/${PORTNAME}.cfg.sample +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${DOCSDIR} + ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt ${DOCSDIR} +.endif + +post-install: + @${ECHO} "************************************************************" + @${CAT} ${PKGMESSAGE} + @${ECHO} "************************************************************" + +.include <bsd.port.mk> diff --git a/devel/bcpp/distinfo b/devel/bcpp/distinfo new file mode 100644 index 000000000000..3abc8dc90762 --- /dev/null +++ b/devel/bcpp/distinfo @@ -0,0 +1 @@ +MD5 (bcpp-990810.tgz) = d7493e22040a66e693342f9422d34086 diff --git a/devel/bcpp/files/patch-bcpp.cpp b/devel/bcpp/files/patch-bcpp.cpp new file mode 100644 index 000000000000..f270b0c8e252 --- /dev/null +++ b/devel/bcpp/files/patch-bcpp.cpp @@ -0,0 +1,24 @@ +--- bcpp.cpp.orig Tue Aug 10 20:54:52 1999 ++++ bcpp.cpp Wed Nov 7 10:48:27 2001 +@@ -2721,6 +2721,7 @@ + char* pSPath = getenv ("PATH"); + char* pEPath = NULL; + char* pNameMem = NULL; ++ char* tmpCfgName = new char[ 16 + strlen(pCfgName) + 1]; + char sepChar = NULLC; + const char* pathSepChar; + char backUp; +@@ -2729,6 +2730,13 @@ + // test to see if file is in current directory first ! + if ((pCfgFile = fopen(pCfgName, "r")) != NULL) + return; ++ ++ // look to see if it's in /usr/local/etc ++ tmpCfgName = strcat( tmpCfgName, "/usr/local/etc/" ); ++ tmpCfgName = strcat( tmpCfgName, pCfgName ); ++ if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL) ++ return; ++ + + // environment variable not found, lord knows what it is ! + if (pSPath == NULL) diff --git a/devel/bcpp/pkg-comment b/devel/bcpp/pkg-comment new file mode 100644 index 000000000000..1d2246ac7085 --- /dev/null +++ b/devel/bcpp/pkg-comment @@ -0,0 +1 @@ +Simple utility to indent C++ code diff --git a/devel/bcpp/pkg-descr b/devel/bcpp/pkg-descr new file mode 100644 index 000000000000..4fb0f18811be --- /dev/null +++ b/devel/bcpp/pkg-descr @@ -0,0 +1,3 @@ +A utility to similar to indent for C++ code + +WWW: http://invisible-island.net/bcpp/bcpp.html diff --git a/devel/bcpp/pkg-message b/devel/bcpp/pkg-message new file mode 100644 index 000000000000..95fb7a397d1e --- /dev/null +++ b/devel/bcpp/pkg-message @@ -0,0 +1,2 @@ +You should modify /usr/local/etc/bcpp.cfg to your liking and +copy it to /usr/local/etc/bcpp.cfg diff --git a/devel/bcpp/pkg-plist b/devel/bcpp/pkg-plist new file mode 100644 index 000000000000..bcb7d2f2519f --- /dev/null +++ b/devel/bcpp/pkg-plist @@ -0,0 +1,5 @@ +bin/bcpp +etc/bcpp.cfg.sample +%%PORTDOCS%%share/doc/bcpp/hirachy.txt +%%PORTDOCS%%share/doc/bcpp/manual.txt +%%PORTDOCS%%@dirrm share/doc/bcpp |