From owner-freebsd-ports Fri Jan 19 5:10:24 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 79A6C37B404 for ; Fri, 19 Jan 2001 05:10:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0JDA6w25418; Fri, 19 Jan 2001 05:10:06 -0800 (PST) (envelope-from gnats) Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119]) by hub.freebsd.org (Postfix) with ESMTP id 28C4037B402 for ; Fri, 19 Jan 2001 05:02:57 -0800 (PST) Received: from johann by fling.sanbi.ac.za with local (Exim 3.13 #4) id 14JbBc-000MTR-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 19 Jan 2001 15:02:36 +0200 Message-Id: Date: Fri, 19 Jan 2001 15:02:36 +0200 From: johann@egenetics.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/24457: Port fix: textproc/py-martel (MAINTAINER) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24457 >Category: ports >Synopsis: Port fix: textproc/py-martel (MAINTAINER) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 19 05:10:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Johann Visagie >Release: FreeBSD 5.0-CURRENT i386 >Organization: Electric Genetics >Environment: >Description: - Added a patch for a small formatting problem which occurs when using Martel at debug_level = 2, as suggested by Martel's author - File added: files/patch-Generate.py - Note: This patch is unrelated to the previous patch in the (now deleted) files/patch-Generate.py - Bumped PORTREVISION >How-To-Repeat: >Fix: diff -ruN py-martel.bak/Makefile py-martel/Makefile --- py-martel.bak/Makefile Fri Jan 19 14:55:52 2001 +++ py-martel/Makefile Fri Jan 19 14:55:34 2001 @@ -7,7 +7,7 @@ PORTNAME= martel PORTVERSION= 0.5 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= textproc biology python MASTER_SITES= http://www.biopython.org/~dalke/Martel/ diff -ruN py-martel.bak/files/patch-Generate.py py-martel/files/patch-Generate.py --- py-martel.bak/files/patch-Generate.py Thu Jan 1 02:00:00 1970 +++ py-martel/files/patch-Generate.py Fri Jan 19 14:58:08 2001 @@ -0,0 +1,18 @@ +From: "Andrew Dalke" +To: +Date: Tue, 16 Jan 2001 18:57:23 -0700 + +There's a small bug with the debug_level = 2 option +in Martel. When the debug position is within the +first 8 characters it does not show the match text. + +--- Generate.py.orig Fri Jan 19 14:50:01 2001 ++++ Generate.py Fri Jan 19 14:50:06 2001 +@@ -460,7 +460,7 @@ + s = s[:17] + " ... " + s[-17:] + self.msg = s + def __call__(self, text, x, end): +- print "Match %s (x=%d): %s" % (repr(text[x-8:x+8]), x, ++ print "Match %s (x=%d): %s" % (repr(text[max(0, x-8):x+8]), x, + repr(self.msg)) + return x >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message