[59141] trunk/dports/textproc/doclifter
blb at macports.org
blb at macports.org
Fri Oct 9 23:50:23 PDT 2009
Revision: 59141
http://trac.macports.org/changeset/59141
Author: blb at macports.org
Date: 2009-10-09 23:50:22 -0700 (Fri, 09 Oct 2009)
Log Message:
-----------
textproc/doclifter - switch to python 2.6, ticket #21724 (maintainer timeout)
Modified Paths:
--------------
trunk/dports/textproc/doclifter/Portfile
Added Paths:
-----------
trunk/dports/textproc/doclifter/files/
trunk/dports/textproc/doclifter/files/patch-doclifter.diff
Modified: trunk/dports/textproc/doclifter/Portfile
===================================================================
--- trunk/dports/textproc/doclifter/Portfile 2009-10-10 06:47:49 UTC (rev 59140)
+++ trunk/dports/textproc/doclifter/Portfile 2009-10-10 06:50:22 UTC (rev 59141)
@@ -4,6 +4,7 @@
name doclifter
version 2.3
+revision 1
categories textproc
platforms darwin
maintainers markd
@@ -14,10 +15,12 @@
master_sites http://catb.org/~esr/doclifter/
checksums md5 db0573381ac1abec627b4bb5025087ea
-depends_lib port:python24
+depends_lib port:python26
use_configure no
+patchfiles patch-doclifter.diff
+
destroot {
xinstall -m 755 -d ${destroot}${prefix}/bin
xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
@@ -30,4 +33,8 @@
foreach doc {BUGS COPYING README TODO} {
xinstall -m 644 ${worksrcpath}/${doc} ${destroot}${prefix}/share/doc/${name}
}
+ reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|" \
+ ${destroot}${prefix}/bin/doclifter
+ reinplace "s|#!/usr/bin/python|#!${prefix}/bin/python2.6|" \
+ ${destroot}${prefix}/bin/manlifter
}
Added: trunk/dports/textproc/doclifter/files/patch-doclifter.diff
===================================================================
--- trunk/dports/textproc/doclifter/files/patch-doclifter.diff (rev 0)
+++ trunk/dports/textproc/doclifter/files/patch-doclifter.diff 2009-10-10 06:50:22 UTC (rev 59141)
@@ -0,0 +1,33 @@
+--- doclifter.orig 2006-12-25 00:43:35.000000000 -0700
++++ doclifter 2009-09-30 15:11:17.000000000 -0600
+@@ -126,7 +126,7 @@
+ $Id: doclifter,v 1.1336 2006/12/22 14:41:03 esr Exp $
+ """
+ # Requires Python 2.2a
+-import sys, os, glob, re, sre, string, exceptions, copy, tempfile, time, pprint
++import sys, os, glob, re, string, exceptions, copy, tempfile, time, pprint
+
+ # This is a speed hack recommended by Armin Rigo. It cuts runtime by about 33%
+ # and makes it possible for psyco 1.2 to reduce runtime another 33%.
+@@ -385,8 +385,8 @@
+ if line.startswith('.\\" | '):
+ print line
+ # Someday we'll have more declarations
+- (mark, token, as, markup) = line[5:].split()
+- if mark != "mark" or as != "as":
++ (mark, token, asvalue, markup) = line[5:].split()
++ if mark != "mark" or asvalue != "as":
+ continue
+ self.post(token, markup)
+ def __repr__(self):
+@@ -6370,8 +6370,8 @@
+ return result
+ def styleargs(self, args, tag, attribute="", prefix=""):
+ return self.process_punct(args, lambda x: self.stylehook(x, tag, attribute, prefix), 1)
+- def replacemacro(self, args, with):
+- return self.process_punct(args, lambda x: [with] + x, 1)
++ def replacemacro(self, args, replacement):
++ return self.process_punct(args, lambda x: [replacement] + x, 1)
+ def eval(self, args):
+ "Evaluate a macro, returning a list."
+ if args[0][0] == '.':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091009/657a4809/attachment.html>
More information about the macports-changes
mailing list