From mat@aragorn.in.absolight.net  Fri Oct 18 14:32:37 2013
Return-Path: <mat@aragorn.in.absolight.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 26D87B90;
	Fri, 18 Oct 2013 14:32:37 +0000 (UTC)
	(envelope-from mat@aragorn.in.absolight.net)
Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 8ACEA267B;
	Fri, 18 Oct 2013 14:32:32 +0000 (UTC)
Received: from prod2.absolight.net (localhost [127.0.0.1])
	by prod2.absolight.net (Postfix) with ESMTP id BC402BDC5D;
	Fri, 18 Oct 2013 16:32:30 +0200 (CEST)
Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified))
	by prod2.absolight.net (Postfix) with ESMTPSA id 7AA00BDC25;
	Fri, 18 Oct 2013 16:32:30 +0200 (CEST)
Received: from aragorn.in.absolight.net (aragorn.in.absolight.net [79.143.241.225])
	by gw.in.absolight.net (Postfix) with ESMTP id 411A3613A;
	Fri, 18 Oct 2013 16:32:29 +0200 (CEST)
Received: by aragorn.in.absolight.net (Postfix, from userid 1000)
	id C8E7C14269C; Fri, 18 Oct 2013 16:32:27 +0200 (CEST)
Message-Id: <20131018143227.C8E7C14269C@aragorn.in.absolight.net>
Date: Fri, 18 Oct 2013 16:32:27 +0200 (CEST)
From: Mathieu Arnold <mat@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: garga@FreeBSD.org
Subject: [PATCH] change textproc/cdiff upstream to a new one.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         183084
>Category:       ports
>Synopsis:       [PATCH] change textproc/cdiff upstream to a new one.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mat
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 18 14:40:00 UTC 2013
>Closed-Date:    Fri Oct 18 19:23:40 UTC 2013
>Last-Modified:  Fri Oct 18 19:23:40 UTC 2013
>Originator:     Mathieu Arnold
>Release:        FreeBSD 9.1-RELEASE-p4 i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:38:17 UTC 2013
>Description:
This cdiff seems to work very nicely, and has a few new things like changing
the diff to be side by side, see https://github.com/ymattw/cdiff.

>How-To-Repeat:
>Fix:
Tested on redports.

--- cdiff-0.9.3,1.patch begins here ---
diff -ruN /usr/ports/textproc/cdiff/Makefile ./Makefile
--- /usr/ports/textproc/cdiff/Makefile	2013-09-21 01:17:30.000000000 +0200
+++ ./Makefile	2013-10-18 15:55:21.000000000 +0200
@@ -1,30 +1,20 @@
 # Created by: eivind
-# $FreeBSD: textproc/cdiff/Makefile 327773 2013-09-20 23:17:30Z bapt $
+# $FreeBSD: head/textproc/cdiff/Makefile 327773 2013-09-20 23:17:30Z bapt $
 
 PORTNAME=	cdiff
-PORTVERSION=	1.5
+PORTVERSION=	0.9.3
+PORTEPOCH=	1
 CATEGORIES=	textproc
-MASTER_SITES=	# none
-DISTFILES=	# none
 
 MAINTAINER=	garga@FreeBSD.org
 COMMENT=	Diff readability enhancer for color terminals
 
-NO_BUILD=	yes
-NO_WRKSUBDIR=	yes
-USES=		perl5
+USE_GITHUB=
+GH_ACCOUNT=	ymattw
+GH_TAGNAME=	0.9.3
+GH_COMMIT=	423551f
 
-SRC=		${.CURDIR}/src
-
-MAN1=		cdiff.1
-PLIST_FILES=	bin/cdiff
-
-NO_STAGE=	yes
-do-fetch:
-	@${DO_NADA}
-
-do-install:
-	@${INSTALL_SCRIPT} ${SRC}/cdiff.sh ${PREFIX}/bin/cdiff
-	@${INSTALL_MAN} ${SRC}/cdiff.1 ${PREFIX}/man/man1
+USE_PYTHON=
+USE_PYDISTUTILS=	yes
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/textproc/cdiff/distinfo ./distinfo
--- /usr/ports/textproc/cdiff/distinfo	1970-01-01 01:00:00.000000000 +0100
+++ ./distinfo	2013-10-18 15:44:55.000000000 +0200
@@ -0,0 +1,2 @@
+SHA256 (cdiff-0.9.3.tar.gz) = 3081c7fcd1eaacfda60614544b9db8930aa09945e44343e2435914c825dc8730
+SIZE (cdiff-0.9.3.tar.gz) = 29237
diff -ruN /usr/ports/textproc/cdiff/pkg-descr ./pkg-descr
--- /usr/ports/textproc/cdiff/pkg-descr	2012-07-14 16:29:18.000000000 +0200
+++ ./pkg-descr	2013-10-18 16:29:44.000000000 +0200
@@ -1,4 +1,5 @@
-cdiff is a readability enhancer for context diffs
-and unified diffs on color terminals.
+Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
+workspace or from stdin, with side by side and auto pager support. Requires
+python (>= 2.5.0) and less.
 
-It uses less(1) as a backend.
+WWW: https://github.com/ymattw/cdiff
diff -ruN /usr/ports/textproc/cdiff/pkg-plist ./pkg-plist
--- /usr/ports/textproc/cdiff/pkg-plist	1970-01-01 01:00:00.000000000 +0100
+++ ./pkg-plist	2013-10-18 16:01:14.000000000 +0200
@@ -0,0 +1,4 @@
+bin/cdiff
+%%PYTHON_SITELIBDIR%%/cdiff.py
+%%PYTHON_SITELIBDIR%%/cdiff.pyc
+%%PYTHON_SITELIBDIR%%/cdiff.pyo
diff -ruN /usr/ports/textproc/cdiff/src/cdiff.1 ./src/cdiff.1
--- /usr/ports/textproc/cdiff/src/cdiff.1	2012-07-14 16:29:18.000000000 +0200
+++ ./src/cdiff.1	1970-01-01 01:00:00.000000000 +0100
@@ -1,80 +0,0 @@
-.\"-
-.\" Copyright (c) 2000 Eivind Eklund
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\"    notice, this list of conditions and the following disclaimer
-.\"    in this position and unchanged.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\"    notice, this list of conditions and the following disclaimer in the
-.\"    documentation and/or other materials provided with the distribution.
-.\" 3. The name of the author may not be used to endorse or promote products
-.\"    derived from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.\"	$FreeBSD: textproc/cdiff/src/cdiff.1 300897 2012-07-14 14:29:18Z beat $
-.\"
-.Dd October 24, 2000
-.Dt CDIFF 1
-.Sh NAME
-.Nm cdiff
-.Nd show diffs with colors
-.Sh SYNOPSIS
-.Nm cdiff
-.Op Fl m
-.Op Ar diff ...
-.Sh DESCRIPTION
-.Nm
-reads a unidiff or context diff from stdin or a set of (optionally compressed)
-files and URLs, adds color codes, expands tabs to 8 spaces, and passes the
-results to
-.Xr less 1 .
-If used on a color terminal, it makes diffs much easier to read.
-There is also handling of "cvs annotate" in it.
-.Pp
-.Bl -tag -width Ds
-.It Fl m
-Use bold, reverse and underline codes (for monochrome terminals).
-.El
-.Bl -tag -width CDIFFCOLORS
-.It Ev CDIFFCOLORS
-The color codes used to add. Default is 1:34:31:35, for lines begin with "@", "-", "+" and "!".
-.El
-.Sh AUTHORS
-.Nm
-was written by
-.An Eivind Eklund Aq eivind@FreeBSD.org .
-based on a sed line somebody passed around.  The code is (much) smaller than
-this man page.
-.Sh SEE ALSO
-.Xr diff 1 ,
-.Xr less 1 ,
-.Xr cvs 1 .
-.Sh BUGS
-.Nm
-assumes standard ANSI color escape sequences (as used by xterm and most other
-commonly used terminals), rather than using
-.Xr curses 3 .
-.Pp
-.Nm
-should really be a large and complex C program based on
-.Xr less 1
-and a diff library.  This would allow a more informative display, including
-collapsing pure deletions/insertions inside a single line to one line with
-colors for deleted/added material, avoiding the line-wrap problems in less
-due to less not knowing the effects or lengths of the color escape codes,
-and correct handling of shifted tabs (instead of just expanding them to
-spaces.)
diff -ruN /usr/ports/textproc/cdiff/src/cdiff.sh ./src/cdiff.sh
--- /usr/ports/textproc/cdiff/src/cdiff.sh	2012-07-14 16:29:18.000000000 +0200
+++ ./src/cdiff.sh	1970-01-01 01:00:00.000000000 +0100
@@ -1,43 +0,0 @@
-#!/bin/sh
-if [ "$1" = "-m" ]; then
-	shift;
-	CODES="4:7:1:1"
-else
-	if [ "$CDIFFCOLORS" != "" ]; then
-		CODES=$CDIFFCOLORS
-	else
-		CODES="1:34:31:35"
-	fi
-fi
-(if [ "$1" != "" ]; then
-    while [ "$1" != "" ]; do
-    	case $1 in
-    	http:*|https:*|ftp:*|file:*)
-            fetch -q -o - $1
-	    ;;
-    	*)
-            zcat -f $1
-	    ;;
-        esac
-	shift;
-    done
-else
-	cat
-fi) | perl -p -mconstant=CODES,${CODES} -e '
-($at, $m, $p, $c) = split /:/, CODES;
-while (s/\t/" " x (8 - ((length($`)-1) % 8))/e) {}
-s/^(\+.*)$/\033[${p}m$1\033[0m/o;
-s/^(-.*)$/\033[${m}m$1\033[0m/o
-	if !s/^(--- \d+,\d+ ----.*)$/\033[1m$1\033[0m/o;
-s/^(\*\*\* \d+,\d+ *\*\*\*.*)$/\033[1m$1\033[0m/o;
-s/^(\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*)$/\033[1m$1\033[0m/o;
-s/^(!.*)$/\033[${c}m$1\033[0m/o;
-s/^(@@.*$)/\033[${at}m$1\033[0m/o;
-if (/^1.(\d+)(\s+\(\w+\s+\d{2}-\w{3}-\d{2}\):\s)(.*)/) {
-	$lastcol = $lastcol || 0;
-	$lastcol++ if defined($lastrev) && $lastrev != $1;
-	$lastrev = $1;
-	$lastcol %= 6;
-	$_ = "\033[3" . ($lastcol + 1) . "m1.$1$2\033[0m$3\n";
-}
-' | less -R
--- cdiff-0.9.3,1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 18 15:09:33 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183084 
Responsible-Changed-From-To: garga->mat 
Responsible-Changed-By: mat 
Responsible-Changed-When: Fri Oct 18 18:54:46 UTC 2013 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183084 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/183084: commit references a PR
Date: Fri, 18 Oct 2013 18:48:06 +0000 (UTC)

 Author: mat
 Date: Fri Oct 18 18:47:57 2013
 New Revision: 330766
 URL: http://svnweb.freebsd.org/changeset/ports/330766
 
 Log:
   Change upstream to a new shinier one.
   
   (And take maintainership.)
   
   PR:		ports/183084
   Submitted by:	mat
   Approved by:	garga (maintainer)
 
 Added:
   head/textproc/cdiff/distinfo   (contents, props changed)
   head/textproc/cdiff/pkg-plist   (contents, props changed)
 Deleted:
   head/textproc/cdiff/src/
 Modified:
   head/textproc/cdiff/Makefile
   head/textproc/cdiff/pkg-descr
 
 Modified: head/textproc/cdiff/Makefile
 ==============================================================================
 --- head/textproc/cdiff/Makefile	Fri Oct 18 18:36:59 2013	(r330765)
 +++ head/textproc/cdiff/Makefile	Fri Oct 18 18:47:57 2013	(r330766)
 @@ -2,29 +2,19 @@
  # $FreeBSD$
  
  PORTNAME=	cdiff
 -PORTVERSION=	1.5
 +PORTVERSION=	0.9.3
 +PORTEPOCH=	1
  CATEGORIES=	textproc
 -MASTER_SITES=	# none
 -DISTFILES=	# none
  
 -MAINTAINER=	garga@FreeBSD.org
 +MAINTAINER=	mat@FreeBSD.org
  COMMENT=	Diff readability enhancer for color terminals
  
 -NO_BUILD=	yes
 -NO_WRKSUBDIR=	yes
 -USES=		perl5
 +USE_GITHUB=
 +GH_ACCOUNT=	ymattw
 +GH_TAGNAME=	0.9.3
 +GH_COMMIT=	423551f
  
 -SRC=		${.CURDIR}/src
 -
 -MAN1=		cdiff.1
 -PLIST_FILES=	bin/cdiff
 -
 -NO_STAGE=	yes
 -do-fetch:
 -	@${DO_NADA}
 -
 -do-install:
 -	@${INSTALL_SCRIPT} ${SRC}/cdiff.sh ${PREFIX}/bin/cdiff
 -	@${INSTALL_MAN} ${SRC}/cdiff.1 ${PREFIX}/man/man1
 +USE_PYTHON=
 +USE_PYDISTUTILS=	yes
  
  .include <bsd.port.mk>
 
 Added: head/textproc/cdiff/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/cdiff/distinfo	Fri Oct 18 18:47:57 2013	(r330766)
 @@ -0,0 +1,2 @@
 +SHA256 (cdiff-0.9.3.tar.gz) = 3081c7fcd1eaacfda60614544b9db8930aa09945e44343e2435914c825dc8730
 +SIZE (cdiff-0.9.3.tar.gz) = 29237
 
 Modified: head/textproc/cdiff/pkg-descr
 ==============================================================================
 --- head/textproc/cdiff/pkg-descr	Fri Oct 18 18:36:59 2013	(r330765)
 +++ head/textproc/cdiff/pkg-descr	Fri Oct 18 18:47:57 2013	(r330766)
 @@ -1,4 +1,5 @@
 -cdiff is a readability enhancer for context diffs
 -and unified diffs on color terminals.
 +Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
 +workspace or from stdin, with side by side and auto pager support. Requires
 +python (>= 2.5.0) and less.
  
 -It uses less(1) as a backend.
 +WWW: https://github.com/ymattw/cdiff
 
 Added: head/textproc/cdiff/pkg-plist
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/cdiff/pkg-plist	Fri Oct 18 18:47:57 2013	(r330766)
 @@ -0,0 +1,4 @@
 +bin/cdiff
 +%%PYTHON_SITELIBDIR%%/cdiff.py
 +%%PYTHON_SITELIBDIR%%/cdiff.pyc
 +%%PYTHON_SITELIBDIR%%/cdiff.pyo
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: mat 
State-Changed-When: Fri Oct 18 19:23:40 UTC 2013 
State-Changed-Why:  
Committed, thanks! 

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