Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2009 10:06:27 GMT
From:      Sofian Brabez <sbrabez@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136953: New port: devel/colorgcc : Perl script to colorize the terminal ouput of GCC
Message-ID:  <200907211006.n6LA6RCU060747@www.freebsd.org>
Resent-Message-ID: <200907211010.n6LAA1Fw011356@freefall.freebsd.org>

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

>Number:         136953
>Category:       ports
>Synopsis:       New port: devel/colorgcc : Perl script to colorize the terminal ouput of GCC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 21 10:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Sofian Brabez
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
FreeBSD freebsd.ifr.lan 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Jul  2 23:42:18 CEST 2009     root@freebsd.ifr.lan:/usr/obj/usr/src/sys/FREEBSD  i386
>Description:
Here the .shar file as attachement to add colorgcc to the port tree (devel category)

colorgcc is a Perl script written by Jamie Moyers to colorize the terminal
output of GCC so error messages can be found within longer compiler outputs.

WWW:    http://schlueters.de/colorgcc.html
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

===> Creating shar file
===> Viewing diff with more
# 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:
#
#	colorgcc
#	colorgcc/pkg-descr
#	colorgcc/Makefile
#	colorgcc/files
#	colorgcc/files/pkg-message.in
#	colorgcc/files/colorgccrc
#	colorgcc/distinfo
#
echo c - colorgcc
mkdir -p colorgcc > /dev/null 2>&1
echo x - colorgcc/pkg-descr
sed 's/^X//' >colorgcc/pkg-descr << '33286b6b58cc0e7244d8bf4eed33ccf0'
Xcolorgcc is a Perl script written by Jamie Moyers to colorize the terminal
Xoutput of GCC so error messages can be found within longer compiler outputs.
X
XWWW:	http://schlueters.de/colorgcc.html
33286b6b58cc0e7244d8bf4eed33ccf0
echo x - colorgcc/Makefile
sed 's/^X//' >colorgcc/Makefile << '72cd195b261af62b95288cb8c2efc140'
X# New ports collection makefile for:	colorgcc
X# Date created:		2009-07-21
X# Whom:			Sofian Brabez <sbrabez@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	colorgcc
XPORTVERSION=	1.3.2
XCATEGORIES=	devel misc
XMASTER_SITES=	http://schlueters.de/
XDISTNAME=	${PORTNAME}.${PORTVERSION}
XEXTRACT_SUFX=	.txt
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	sbrabez@gmail.com
XCOMMENT=	Perl script to colorize the terminal ouput of GCC
X
XRUN_DEPENDS=	${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor
XBUILD_DEPENDS=	${RUN_DEPENDS}
X
XPLIST_FILES=	bin/${PORTNAME} \
X		share/examples/${PORTNAME}/${PORTNAME}rc
XPLIST_DIRS=	share/examples/${PORTNAME}
XSUB_FILES=	pkg-message
X
XNO_BUILD=yes
X
Xdo-extract:
X	@${MKDIR} ${WRKSRC}
X	@${CP} ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKSRC}/${PORTNAME}
X
Xdo-install:
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
X	@${INSTALL_DATA} ${FILESDIR}/${PORTNAME}rc ${EXAMPLESDIR}/
X
Xpost-install:
X.if !defined(BATCH)
X	@${CAT} ${PKGMESSAGE}
X.endif
X
X.include <bsd.port.mk>
72cd195b261af62b95288cb8c2efc140
echo c - colorgcc/files
mkdir -p colorgcc/files > /dev/null 2>&1
echo x - colorgcc/files/pkg-message.in
sed 's/^X//' >colorgcc/files/pkg-message.in << 'f77d61b1c1cd654f78978a8e6bd8d8e1'
X-------------------------------------------------------------
Xcolorgcc is installed.
X
XFor a quick start:
X    - cp ${EXAMPLESDIR}/colorgccrc ${HOME}/.colorgcc
X    - export CC=${PREFIX}/bin/colorgcc
X-------------------------------------------------------------
f77d61b1c1cd654f78978a8e6bd8d8e1
echo x - colorgcc/files/colorgccrc
sed 's/^X//' >colorgcc/files/colorgccrc << '61111a3b6441f9a43abbaf0a843fd616'
X#
X# colorgcc configuration file
X#
X# $Id: colorgccrc,v 1.1.1.1 1999/04/25 15:24:03 jamoyers Exp $
X#
X# This file should be named $HOME/.colorgccrc
X#
X#
X# The following groups of attributes may be combined for a given color:
X#
X# clear         black      on_black   
X# reset	        red        on_red     
X# bold	        green      on_green   
X# underline     yellow     on_yellow  
X# underscore    blue       on_blue    
X# blink	        magenta    on_magenta 
X# reverse       cyan       on_cyan    
X# concealed     white      on_white   
X#
X# For example, srcColor: bold cyan on_yellow
X#
X
X# Define the paths to the actual location of the various compilers.
X# (Currently, colorgcc only understands these: g++ gcc c++ cc)
Xg++: /usr/bin/g++
Xgcc: /usr/bin/gcc
Xc++: /usr/bin/c++
Xcc:  /usr/bin/cc
X
X# Don't do color if our terminal type ($TERM) is one of these.
X# (List all terminal types on one line, seperated by whitespace.)
Xnocolor: dumb
X
X# Text between ` and ' is usually source code.
XsrcColor: bold cyan
X
X# Text other than a warning or error.
XintroColor: reset
X
X# Warnings and errors both have similar formats:
X#    filename:999:Message
X# Each field may be assigned a different color.
X
X# Warnings
XwarningFileNameColor: reset
XwarningNumberColor:   white
XwarningMessageColor:  yellow
X
X# Errors
XerrorFileNameColor: reset
XerrorNumberColor:   white
XerrorMessageColor:  bold red
X
X
61111a3b6441f9a43abbaf0a843fd616
echo x - colorgcc/distinfo
sed 's/^X//' >colorgcc/distinfo << 'a233302dd05cb81db3d34634cf9dc641'
XMD5 (colorgcc/colorgcc.1.3.2.txt) = c7d27acb765a283a98db53216edd36d1
XSHA256 (colorgcc/colorgcc.1.3.2.txt) = e27000ed289e8e935ab00b97d7912d3a7a92522bf001d767b432489790035325
XSIZE (colorgcc/colorgcc.1.3.2.txt) = 6688
a233302dd05cb81db3d34634cf9dc641
exit

===> Done


>Release-Note:
>Audit-Trail:
>Unformatted:



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