From tbourke@triptrop.cse.unsw.EDU.AU  Wed Jul 26 07:28:55 2006
Return-Path: <tbourke@triptrop.cse.unsw.EDU.AU>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D871116A4E1
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Jul 2006 07:28:55 +0000 (UTC)
	(envelope-from tbourke@triptrop.cse.unsw.EDU.AU)
Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.24])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9D4A843D5D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Jul 2006 07:28:54 +0000 (GMT)
	(envelope-from tbourke@triptrop.cse.unsw.EDU.AU)
Received: From triptrop ([129.94.174.104] == triptrop.cse.unsw.EDU.AU)
	(for <FreeBSD-gnats-submit@freebsd.org>) By note With Smtp ;
	Wed, 26 Jul 2006 17:28:51 +1000 
Received: from triptrop.cse.unsw.EDU.AU (localhost [127.0.0.1])
	by triptrop (8.13.6/8.13.6) with ESMTP id k6Q7SL2x060227
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Jul 2006 17:28:22 +1000 (EST)
	(envelope-from tbourke@triptrop.cse.unsw.EDU.AU)
Received: (from tbourke@localhost)
	by triptrop.cse.unsw.EDU.AU (8.13.6/8.13.6/Submit) id k6Q7SLD6060226;
	Wed, 26 Jul 2006 17:28:21 +1000 (EST)
	(envelope-from tbourke)
Message-Id: <200607260728.k6Q7SLD6060226@triptrop.cse.unsw.EDU.AU>
Date: Wed, 26 Jul 2006 17:28:21 +1000 (EST)
From: Timothy Bourke <timbob@bigpond.com>
Reply-To: Timothy Bourke <timbob@bigpond.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: devel/cle Command Line Editor (based on readline)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         100855
>Category:       ports
>Synopsis:       New port: devel/cle Command Line Editor (based on readline)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 26 07:30:21 GMT 2006
>Closed-Date:    Wed Jul 26 11:32:36 GMT 2006
>Last-Modified:  Wed Jul 26 11:32:36 GMT 2006
>Originator:     Timothy Bourke
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD triptrop 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #3: Tue Jul 18 16:36:54 EST 2006 tbourke@triptrop:/usr/obj/usr/src/sys/TP_R52 i386
>Description:
Cle is a Command Line Editor. It provides the editing/history/completion
commands of the GNU readline package to any line-oriented Unix command. For
instance,

$ cle ftp foo.bar.org

adds editing/history/completion commands to the ftp command.

WWW: http://kaolin.unice.fr/Cle/

>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:
#
#	cle
#	cle/distinfo
#	cle/Makefile
#	cle/pkg-descr
#	cle/files
#	cle/files/patch-configure
#	cle/files/patch-src-cle.c
#
echo c - cle
mkdir -p cle > /dev/null 2>&1
echo x - cle/distinfo
sed 's/^X//' >cle/distinfo << 'END-of-cle/distinfo'
XMD5 (cle-0.4.tar.gz) = 53e316e6d8dacc22985c26c4818e28af
XSHA256 (cle-0.4.tar.gz) = 27fb52f7f1a09d880d7d7f39ba66c12474153df2cb1c57ab512a6e2d27e7b620
XSIZE (cle-0.4.tar.gz) = 374763
END-of-cle/distinfo
echo x - cle/Makefile
sed 's/^X//' >cle/Makefile << 'END-of-cle/Makefile'
X# New ports collection makefile for:   cle
X# Date created:		25 July 2006
X# Whom:			Timothy Bourke <timbob@bigpond.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cle
XPORTVERSION=	0.4
XCATEGORIES=	devel
XMASTER_SITES=	ftp://kaolin.unice.fr/pub/Cle/
X
XMAINTAINER=	timbob@bigpond.com
XCOMMENT=	Command Line Editor (based on readline)
X
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
XCONFIGURE_ARGS=	--prefix=\"${PREFIX}\"
X
XPLIST_FILES=	bin/cle
X
XMAN1=		cle.1
XMANCOMPRESSED=	no
X
Xpost-extract:
X	${CHMOD} ug+x ${WRKSRC}/missing
X
X.include <bsd.port.mk>
END-of-cle/Makefile
echo x - cle/pkg-descr
sed 's/^X//' >cle/pkg-descr << 'END-of-cle/pkg-descr'
XCle is a Command Line Editor. It provides the editing/history/completion
Xcommands of the GNU readline package to any line-oriented Unix command. For
Xinstance,
X
X$ cle ftp foo.bar.org
X
Xadds editing/history/completion commands to the ftp command.
X
XWWW: http://kaolin.unice.fr/Cle/
END-of-cle/pkg-descr
echo c - cle/files
mkdir -p cle/files > /dev/null 2>&1
echo x - cle/files/patch-configure
sed 's/^X//' >cle/files/patch-configure << 'END-of-cle/files/patch-configure'
X--- configure.orig	Fri Nov 19 01:24:25 1999
X+++ configure	Wed Jul 26 17:02:11 2006
X@@ -1328,7 +1328,7 @@
X 
X 
X 
X-(cd readline; configure $prefix $curses) 
X+(cd readline; ./configure --prefix="$prefix" $curses) 
X 
X 
X 
END-of-cle/files/patch-configure
echo x - cle/files/patch-src-cle.c
sed 's/^X//' >cle/files/patch-src-cle.c << 'END-of-cle/files/patch-src-cle.c'
X--- src/cle.c	Sat Dec  4 00:41:14 1999
X+++ src/cle.c	Fri Mar 24 15:46:07 2006
X@@ -147,8 +147,10 @@
X         rl_prep_terminal(_rl_meta_flag);	/* Place the terminal in raw mode */
X       } else {
X 	/* We are still in echo mode. Register the line in the history */
X-        add_history(s);
X         len= strlen(s);
X+		if (len > 0) {
X+        	add_history(s);
X+		  }
X         s[len]= '\n';
X         write(fd, s, len+1);
X       }
END-of-cle/files/patch-src-cle.c
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: garga 
Responsible-Changed-When: Wed Jul 26 11:12:07 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100855 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Wed Jul 26 11:32:35 UTC 2006 
State-Changed-Why:  
New port added, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100855 
>Unformatted:
