summaryrefslogtreecommitdiff
path: root/textproc/py-martel
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-01-19 16:47:28 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-01-19 16:47:28 +0000
commitf54468923c7641a8aa4383e992dac40e595073f5 (patch)
tree96670c2e3d199d26f9039a6fe42ebf50ed928c96 /textproc/py-martel
parentComplete ucd-snmp's rename to net-snmp. (diff)
Fix formatting problem
PR: 24457 Submitted by: MAINTAINER
Diffstat (limited to 'textproc/py-martel')
-rw-r--r--textproc/py-martel/Makefile2
-rw-r--r--textproc/py-martel/files/patch-Generate.py18
2 files changed, 19 insertions, 1 deletions
diff --git a/textproc/py-martel/Makefile b/textproc/py-martel/Makefile
index 442a9ad6e373..a52ba3461d73 100644
--- a/textproc/py-martel/Makefile
+++ b/textproc/py-martel/Makefile
@@ -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 --git a/textproc/py-martel/files/patch-Generate.py b/textproc/py-martel/files/patch-Generate.py
new file mode 100644
index 000000000000..036c7508e416
--- /dev/null
+++ b/textproc/py-martel/files/patch-Generate.py
@@ -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