aboutsummaryrefslogtreecommitdiff
path: root/devel/cccc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cccc')
-rw-r--r--devel/cccc/Makefile34
-rw-r--r--devel/cccc/distinfo1
-rw-r--r--devel/cccc/files/patch-aa47
-rw-r--r--devel/cccc/files/patch-ab17
-rw-r--r--devel/cccc/pkg-comment1
-rw-r--r--devel/cccc/pkg-descr4
-rw-r--r--devel/cccc/pkg-plist8
7 files changed, 112 insertions, 0 deletions
diff --git a/devel/cccc/Makefile b/devel/cccc/Makefile
new file mode 100644
index 000000000000..89e1aa7c3935
--- /dev/null
+++ b/devel/cccc/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: cccc
+# Version required: 2.1.1
+# Date created: 12 September 1997
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= cccc-2.1.1.src
+PKGNAME= cccc-2.1.1
+CATEGORIES= devel textproc www
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= devel/lang/c++
+
+MAINTAINER= andy@icc.surw.chel.su
+
+BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \
+ dlg:${PORTSDIR}/devel/pccts
+
+WRKSRC= ${WRKDIR}/usr/local/src/cccc-2.1.1
+USE_GMAKE= yes
+MAKEFILE= makefile
+MAKE_ENV+= OSTYPE=FreeBSD
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/cccc ${PREFIX}/bin
+ @ ${MKDIR} ${PREFIX}/share/cccc
+.for file in cccc_inf.dat cccc_met.dat cccc_tmt.dat cccc_ug.htm
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/cccc
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/doc/cccc
+ @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/cccc
+
+.include <bsd.port.mk>
diff --git a/devel/cccc/distinfo b/devel/cccc/distinfo
new file mode 100644
index 000000000000..523ee48e6ff7
--- /dev/null
+++ b/devel/cccc/distinfo
@@ -0,0 +1 @@
+MD5 (cccc-2.1.1.src.tar.gz) = 6a5fb32de6987db0e3e13e6d58733b79
diff --git a/devel/cccc/files/patch-aa b/devel/cccc/files/patch-aa
new file mode 100644
index 000000000000..ed4207c44a93
--- /dev/null
+++ b/devel/cccc/files/patch-aa
@@ -0,0 +1,47 @@
+*** makefile Sun Aug 10 16:52:24 1997
+--- /home/andy/tmp/wrk/makefile Sat Sep 13 18:42:12 1997
+***************
+*** 12,17 ****
+--- 12,21 ----
+ CONF=djgpp
+ endif
+
++ ifeq "$(OSTYPE)" "FreeBSD"
++ CONF=FreeBSD
++ endif
++
+ ifeq "$(OSTYPE)" "Linux"
+ CONF=linux
+ endif
+***************
+*** 53,58 ****
+--- 57,85 ----
+ CCCC_BIN = ## the name of the cccc binary
+ INSTALL_BINDIR = ## the location where the binary is to be installed
+ INSTALL_LIBDIR = ## the location where the .dat files are to be installed
++ endif
++
++ ifeq "$(CONF)" "FreeBSD"
++
++ ## preferred directories for FreeBSD is under /usr/local tree
++ ## we need pccts installed from package
++ PCCTS = $(PREFIX)
++ PCCTS_H = $(PCCTS)/include/pccts
++ PCCTS_BIN = $(PCCTS)/bin
++
++ ## using the GNU C++ compiler
++ ## we need working templates - I use version 2.7.2, I am not sure whether
++ ## versions earlier than 2.7 are OK
++ CCC=g++
++ LD=g++
++ CFLAGS+= -I/usr/include/g++-include -I. -I$(PCCTS_H)
++ CPPEXT=cpp
++
++ COPY = cp
++ CCCC_BIN = cccc
++ INSTALL_BINDIR = $(PREFIX)/bin
++ INSTALL_LIBDIR = $(PREFIX)/share/cccc
++
+ endif
+
+ ifeq "$(CONF)" "linux"
diff --git a/devel/cccc/files/patch-ab b/devel/cccc/files/patch-ab
new file mode 100644
index 000000000000..8e6e558831fb
--- /dev/null
+++ b/devel/cccc/files/patch-ab
@@ -0,0 +1,17 @@
+*** cccc.h Sun Aug 10 16:52:24 1997
+--- /home/andy/tmp/wrk/cccc.h Fri Sep 12 23:00:32 1997
+***************
+*** 21,27 ****
+--- 21,32 ----
+ #else
+
+ #define SIGNAL_HEADER <sys/signal.h>
++
++ #ifdef __FreeBSD__
++ #define DEFAULT_LIBDIR "/usr/local/share/cccc"
++ #else
+ #define DEFAULT_LIBDIR "/usr/local/lib/cccc"
++ #endif
+
+ #endif
+
diff --git a/devel/cccc/pkg-comment b/devel/cccc/pkg-comment
new file mode 100644
index 000000000000..3ade0dd63c68
--- /dev/null
+++ b/devel/cccc/pkg-comment
@@ -0,0 +1 @@
+CCCC C and C++ Code Counter
diff --git a/devel/cccc/pkg-descr b/devel/cccc/pkg-descr
new file mode 100644
index 000000000000..f186d9caf5d0
--- /dev/null
+++ b/devel/cccc/pkg-descr
@@ -0,0 +1,4 @@
+Source code metric analyser for C, C++, Java and Ada
+Presents a report in HTML with figures for
+Lines of Code, McCabes Complexity, Ratio of Comments
+to Lines of Code and McCabe, module Fan-In and Fan-Out
diff --git a/devel/cccc/pkg-plist b/devel/cccc/pkg-plist
new file mode 100644
index 000000000000..cdf006ab09ef
--- /dev/null
+++ b/devel/cccc/pkg-plist
@@ -0,0 +1,8 @@
+bin/cccc
+share/cccc/cccc_inf.dat
+share/cccc/cccc_met.dat
+share/cccc/cccc_tmt.dat
+share/cccc/cccc_ug.htm
+share/doc/cccc/readme.txt
+@dirrm share/cccc
+@dirrm share/doc/cccc