Date: Wed, 11 Sep 2002 16:19:37 -0400 (EDT) From: Craig Rodrigues <rodrigc@attbi.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42667: Update cccc port to 3.pre63 Message-ID: <200209112019.g8BKJbDd009624@dibbler.ne.client2.attbi.com>
next in thread | raw e-mail | index | archive | help
>Number: 42667 >Category: ports >Synopsis: Update cccc port to 3.pre63 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Sep 11 13:20:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD dibbler.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Sep 8 09:39:46 EDT 2002 rodrigc@dibbler.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: The current port of cccc, version 2.1, does not compile with GCC 3.2. This updates the port to cccc 3.pre63, which does compile under the new compiler. >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: # # cccc # cccc/files # cccc/files/patch-aa # cccc/files/patch-ab # cccc/files/patch-ad # cccc/files/patch-ae # cccc/Makefile # cccc/distinfo # cccc/pkg-comment # cccc/pkg-descr # cccc/pkg-plist # echo c - cccc mkdir -p cccc > /dev/null 2>&1 echo c - cccc/files mkdir -p cccc/files > /dev/null 2>&1 echo x - cccc/files/patch-aa sed 's/^X//' >cccc/files/patch-aa << 'END-of-cccc/files/patch-aa' X--- makefile.orig Wed Apr 25 12:30:29 2001 X+++ makefile Wed Sep 11 15:11:35 2002 X@@ -8,17 +8,17 @@ X X .PHONY : pccts cccc test install X X-all : pccts cccc test install X+all : cccc test X X pccts : X- cd pccts ; make X+ cd pccts ; $(MAKE) X X cccc : X- cd cccc ; make -f posixgcc.mak X+ cd cccc ; $(MAKE) -f posixgcc.mak X X test : X- cd test ; make -f posix.mak X+ cd test ; $(MAKE) -f posix.mak X X install : X- cd install ; su root -c "make -f install.mak" X+ cd install ; su root -c "$(MAKE) -f install.mak" X END-of-cccc/files/patch-aa echo x - cccc/files/patch-ab sed 's/^X//' >cccc/files/patch-ab << 'END-of-cccc/files/patch-ab' X--- pccts/makefile.orig Wed Sep 11 14:48:17 2002 X+++ pccts/makefile Wed Sep 11 14:48:42 2002 X@@ -41,16 +41,16 @@ X # X if [ ! -d $(BINDIR) ] ; then mkdir $(BINDIR) ; fi X echo Making executables... X- (cd antlr; make -s) X+ (cd antlr; $(MAKE) -s) X echo antlr executable now in $(BINDIR) X- (cd dlg; make -s) X+ (cd dlg; $(MAKE) -s) X echo dlg executable now in $(BINDIR) X echo X echo " PCCTS 1.33MR20 installation complete" X X clean: X- (cd antlr; make -s clean) X- (cd dlg; make -s clean) X+ (cd antlr; $(MAKE) -s clean) X+ (cd dlg; $(MAKE) -s clean) X X X manpages: END-of-cccc/files/patch-ab echo x - cccc/files/patch-ad sed 's/^X//' >cccc/files/patch-ad << 'END-of-cccc/files/patch-ad' X--- cccc/rules.mak.orig Wed May 1 09:50:09 2002 X+++ cccc/rules.mak Wed Sep 11 15:41:05 2002 X@@ -31,16 +31,16 @@ X X # PCCTS is now packaged as part of the CCCC distribution. X PCCTS=..$(PATHSEP)pccts X-PCCTS_H=$(PCCTS)$(PATHSEP)h X-PCCTS_BIN=$(PCCTS)$(PATHSEP)bin X+PCCTS_H=/usr/local/include/pccts/ X+PCCTS_BIN=/usr/local/bin/ X # PCCTS_OBJDIR needs to be defined in the platform-specific makefile X # as some compilers put the obj file in $(PCCTS_H), others put it X # in the current directory. X X # locations and flags for antlr and dlg (don't change the flags unless you X # understand PCCTS) X-ANTLR = $(PCCTS_BIN)$(PATHSEP)antlr X-DLG = $(PCCTS_BIN)$(PATHSEP)dlg X+ANTLR = antlr X+DLG = dlg X # Flags for ANTLR: X # -CC = generate C++ output X # -k 2 = use at least 2 tokens of lookahead END-of-cccc/files/patch-ad echo x - cccc/files/patch-ae sed 's/^X//' >cccc/files/patch-ae << 'END-of-cccc/files/patch-ae' X--- cccc/posixgcc.mak.orig Sun Nov 11 10:09:38 2001 X+++ cccc/posixgcc.mak Wed Sep 11 15:27:29 2002 X@@ -18,7 +18,7 @@ X X CCC=g++ X LD=g++ X-CFLAGS=-c -I../pccts/h $(CFLAGS_DEBUG) -x c++ X+CFLAGS=-c -I/usr/local/include/pccts $(CFLAGS_DEBUG) -x c++ X C_OFLAG=-o X LDFLAGS=$(LDFLAGS_DEBUG) -static X LD_OFLAG=-o END-of-cccc/files/patch-ae echo x - cccc/Makefile sed 's/^X//' >cccc/Makefile << 'END-of-cccc/Makefile' X# ex:ts=8 X# New ports collection makefile for: cccc X# Date created: 12 September 1997 X# Whom: Andrey Zakhvatov X# X# $FreeBSD: ports/devel/cccc/Makefile,v 1.14 2002/05/08 21:25:19 obrien Exp $ X# X XPORTNAME= cccc XPORTVERSION= 3.pre63 XCATEGORIES= devel textproc www XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} XDISTNAME= ${PORTNAME}-${PORTVERSION} X XMAINTAINER= ports@FreeBSD.org X XBUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts \ X dlg:${PORTSDIR}/devel/pccts X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} XUSE_GMAKE= yes XMAKEFILE= makefile XMAKE_ENV= OSTYPE=FreeBSD X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/cccc/cccc ${PREFIX}/bin X @ ${MKDIR} ${PREFIX}/share/doc/cccc X @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/cccc X @ ${INSTALL_DATA} ${WRKSRC}/cccc/CCCC\ User\ Guide.html ${PREFIX}/share/doc/cccc X X.include <bsd.port.mk> END-of-cccc/Makefile echo x - cccc/distinfo sed 's/^X//' >cccc/distinfo << 'END-of-cccc/distinfo' XMD5 (cccc-3.pre63.tar.gz) = 379e0b93c080aa6cddba6d6378e6187f END-of-cccc/distinfo echo x - cccc/pkg-comment sed 's/^X//' >cccc/pkg-comment << 'END-of-cccc/pkg-comment' XC and C++ Code Counter END-of-cccc/pkg-comment echo x - cccc/pkg-descr sed 's/^X//' >cccc/pkg-descr << 'END-of-cccc/pkg-descr' XSource code metric analyser for C, C++, Java and Ada XPresents a report in HTML with figures for XLines of Code, McCabes Complexity, Ratio of Comments Xto Lines of Code and McCabe, module Fan-In and Fan-Out END-of-cccc/pkg-descr echo x - cccc/pkg-plist sed 's/^X//' >cccc/pkg-plist << 'END-of-cccc/pkg-plist' X@comment $FreeBSD: ports/devel/cccc/pkg-plist,v 1.2 2000/11/22 00:17:12 obrien Exp $ Xbin/cccc Xshare/doc/cccc/readme.txt Xshare/doc/cccc/CCCC User Guide.html X@dirrm share/doc/cccc END-of-cccc/pkg-plist 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?200209112019.g8BKJbDd009624>