Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2001 15:02:36 +0200
From:      johann@egenetics.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24457: Port fix: textproc/py-martel (MAINTAINER)
Message-ID:  <E14JbBc-000MTR-00@fling.sanbi.ac.za>

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

>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" <dalke@acm.org>
+To: <biopython-dev@biopython.org>
+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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14JbBc-000MTR-00>