aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-11-18 11:33:45 +0800
committerijliao <ijliao@FreeBSD.org>2001-11-18 11:33:45 +0800
commitb9edd66fc477e67a25c864fa50f0c25f697189cf (patch)
tree5e60435a1a4efabb63931724182c0ffbe3ba0ce5 /devel
parente533c6e0ddc417d3e9e95e3625309b84106c6ca3 (diff)
downloadfreebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.tar.gz
freebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.tar.zst
freebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.zip
add bcpp
Simple utility to indent C++ code PR: 31831 Submitted by: Mike Buchanon <buchanon@mlss15.cl.msu.edu>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/bcpp/Makefile36
-rw-r--r--devel/bcpp/distinfo1
-rw-r--r--devel/bcpp/files/patch-bcpp.cpp24
-rw-r--r--devel/bcpp/pkg-comment1
-rw-r--r--devel/bcpp/pkg-descr3
-rw-r--r--devel/bcpp/pkg-message2
-rw-r--r--devel/bcpp/pkg-plist5
8 files changed, 73 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 98977c3adb60..23d2bd33512d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -49,6 +49,7 @@
SUBDIR += avr-libc
SUBDIR += avrprog
SUBDIR += bcc
+ SUBDIR += bcpp
SUBDIR += bin86
SUBDIR += bison
SUBDIR += boaconstructor
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